mirror of
https://github.com/EnumeratedDev/Typer.git
synced 2025-07-01 07:48:20 +00:00
Hide buffer info message when screen is too small
This commit is contained in:
parent
6cbe0e8ab2
commit
8d24988057
@ -123,7 +123,9 @@ func drawTopMenu(window *Window) {
|
||||
|
||||
// Draw buffer info
|
||||
bufferInfoMsg := getBufferInfoMsg(window)
|
||||
drawText(screen, sizeX-len(bufferInfoMsg)-1, 0, sizeX-1, 0, topMenuStyle, bufferInfoMsg)
|
||||
if sizeX-len(bufferInfoMsg)-1 > currentX+2 {
|
||||
drawText(screen, sizeX-len(bufferInfoMsg)-1, 0, sizeX-1, 0, topMenuStyle, bufferInfoMsg)
|
||||
}
|
||||
}
|
||||
|
||||
func getBufferInfoMsg(window *Window) string {
|
||||
|
Loading…
x
Reference in New Issue
Block a user