diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2014-09-10 13:54:56 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2014-09-10 13:54:56 +0200 |
| commit | 17a71a69823e93fc4ef8495e6efb93cfdcdf66e1 (patch) | |
| tree | 6594d48b41149692ee441f6160e6e02121c6247a /config.def.h | |
| parent | c419009f28dc89d8a556b1196de644a3536769e9 (diff) | |
| download | vis-17a71a69823e93fc4ef8495e6efb93cfdcdf66e1.tar.gz vis-17a71a69823e93fc4ef8495e6efb93cfdcdf66e1.tar.xz | |
Keep window focused indication while prompt is shown
Diffstat (limited to 'config.def.h')
| -rw-r--r-- | config.def.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/config.def.h b/config.def.h index 7ae374d..1377707 100644 --- a/config.def.h +++ b/config.def.h @@ -64,8 +64,9 @@ static Command cmds[] = { /* draw a statubar, do whatever you want with win->statuswin curses window */ static void statusbar(EditorWin *win) { size_t line, col; + bool focused = vis->win == win || vis->prompt->editor == win; window_cursor_getxy(win->win, &line, &col); - wattrset(win->statuswin, vis->win == win ? A_REVERSE|A_BOLD : A_REVERSE); + wattrset(win->statuswin, focused ? A_REVERSE|A_BOLD : A_REVERSE); mvwhline(win->statuswin, 0, 0, ' ', win->width); mvwprintw(win->statuswin, 0, 0, "%s %s", text_filename(win->text), text_modified(win->text) ? "[+]" : ""); |
