use reverse attribute for preview messages
This commit is contained in:
1 parent
4d2a628550
commit
f44ec4f5bd
3 files changed
+9
-4
No files matched your search
@@ -182,7 +182,7 @@ func (win *win) printReg(reg *reg) {
|
||||
fg, bg := termbox.ColorDefault, termbox.ColorDefault
|
||||
|
||||
if reg.loading {
|
||||
fg = termbox.AttrBold
|
||||
fg = termbox.AttrReverse
|
||||
win.print(2, 0, fg, bg, "loading...")
|
||||
return
|
||||
}
|
||||
@@ -249,13 +249,13 @@ func (win *win) printDir(dir *dir, selections map[string]int, saves map[string]b
|
||||
fg, bg := termbox.ColorDefault, termbox.ColorDefault
|
||||
|
||||
if dir.loading {
|
||||
fg = termbox.AttrBold
|
||||
fg = termbox.AttrReverse
|
||||
win.print(2, 0, fg, bg, "loading...")
|
||||
return
|
||||
}
|
||||
|
||||
if len(dir.files) == 0 {
|
||||
fg = termbox.AttrBold
|
||||
fg = termbox.AttrReverse
|
||||
win.print(2, 0, fg, bg, "empty")
|
||||
return
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user