about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/kilo.c10
-rw-r--r--src/lcurseslib.c8
2 files changed, 9 insertions, 9 deletions
diff --git a/src/kilo.c b/src/kilo.c
index 4016d75..e07c3f2 100644
--- a/src/kilo.c
+++ b/src/kilo.c
@@ -925,13 +925,13 @@ void editorRefreshScreen(void) {
 
     /* Create a two rows status. First row: */
     abAppend(&ab,"\x1b[0K",4);
-    abAppend(&ab,"  \x1b[7m ^e \x1b[0m run ",19);
-    int len =     2  +     4  +       5;
+    abAppend(&ab,"\x1b[7m  \x1b[0m ^e \x1b[7m run ",23);
+    int len =            2  +     4  +       5;
     if (Previous_error != NULL) {
-      abAppend(&ab,"\x1b[7m ^c \x1b[0m\x1b[1m abort \x1b[0m",27);
-      len +=               4  +       7;
+      abAppend(&ab,"\x1b[0m ^c \x1b[7m\x1b[0m\x1b[1m abort ",27);
+      len +=               4  +                     7;
     }
-    abAppend(&ab,"\x1b[7m ^s \x1b[0m search ",20);
+    abAppend(&ab,"\x1b[0m ^s \x1b[7m search ",20);
     len +=               4  +       8;
     char rstatus[80];
     int rlen = snprintf(rstatus, sizeof(rstatus),
diff --git a/src/lcurseslib.c b/src/lcurseslib.c
index 0d9f604..f1a5849 100644
--- a/src/lcurseslib.c
+++ b/src/lcurseslib.c
@@ -29,14 +29,14 @@ void draw_string_on_menu(const char* s) {
   ++menu_column;
 }
 void draw_menu_item(const char* key, const char* name) {
-  attron(A_REVERSE);
-  draw_string_on_menu(key);
   attroff(A_REVERSE);
+  draw_string_on_menu(key);
+  attron(A_REVERSE);
   draw_string_on_menu(name);
 }
 
 void draw_menu (lua_State *L) {
-  attron(A_BOLD);
+  attron(A_BOLD|A_REVERSE);
   for (int x = 0; x < COLS; ++x)
     mvaddch(LINES-1, x, ' ');
   menu_column = 2;
@@ -51,7 +51,7 @@ void draw_menu (lua_State *L) {
       draw_menu_item(lua_tostring(L, -2), lua_tostring(L, -1));
 
   lua_pop(L, 1);
-  attroff(A_BOLD);
+  attroff(A_BOLD|A_REVERSE);
 }