mirror of
https://github.com/EnumeratedDev/typer.git
synced 2026-10-31 11:31:48 +00:00
Hide buffer info message when screen is too small
This commit is contained in:
1 parent
6cbe0e8ab2
commit
8d24988057
1 file changed
+3
-1
+3
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user