From 17a71a69823e93fc4ef8495e6efb93cfdcdf66e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Wed, 10 Sep 2014 13:54:56 +0200 Subject: Keep window focused indication while prompt is shown --- config.def.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'config.def.h') 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) ? "[+]" : ""); -- cgit v1.2.3