about summary refs log tree commit diff stats
path: root/src/lua.c
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-12-18 09:32:37 -0800
committerKartik K. Agaram <vc@akkartik.com>2021-12-18 09:32:37 -0800
commitd818efb7c824ffcfe7e62384cd70ef1b7aa098a8 (patch)
tree5a6dc4e5051c40d9b60caf1f72b161b37b677282 /src/lua.c
parent9fe884c03aafdbe9888115a64843327b926c0974 (diff)
downloadteliva-d818efb7c824ffcfe7e62384cd70ef1b7aa098a8.tar.gz
pay more attention to where we display the cursor
It's still just in app control; I'm resisting the urge to introduce
"smarts".
Diffstat (limited to 'src/lua.c')
-rw-r--r--src/lua.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lua.c b/src/lua.c
index d40c716..c46f9c4 100644
--- a/src/lua.c
+++ b/src/lua.c
@@ -1042,7 +1042,8 @@ void developer_mode (lua_State *L) {
   init_pair(COLOR_PAIR_LUA_CONSTANT, COLOR_LUA_CONSTANT, COLOR_BACKGROUND);
   init_pair(COLOR_PAIR_MATCH, COLOR_MATCH_FOREGROUND, COLOR_MATCH_BACKGROUND);
   init_pair(COLOR_PAIR_ERROR, COLOR_ERROR_FOREGROUND, COLOR_ERROR_BACKGROUND);
-  nodelay(stdscr, 0);  /* make getch() block */
+  nodelay(stdscr, 0);  /* always make getch() block in developer mode */
+  curs_set(1);  /* always display cursor in developer mode */
   int switch_to_big_picture_view = 1;
   if (editor_view_in_progress(L))
     switch_to_big_picture_view = restore_editor_view(L);