summaryrefslogtreecommitdiff
path: root/src/ui.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2004-12-09 21:34:53 +0000
committerBram Moolenaar <Bram@vim.org>2004-12-09 21:34:53 +0000
commit293ee4d421cd55f4a3c014c1c26edf02f718cc83 (patch)
treeae4856e718b752ea0c6c807912bfbb51967fae80 /src/ui.c
parent741b07e0092eb6d7b81c9cbe149196c6cf9d5bbe (diff)
downloadvim-git-293ee4d421cd55f4a3c014c1c26edf02f718cc83.tar.gz
updated for version 7.0021v7.0021
Diffstat (limited to 'src/ui.c')
-rw-r--r--src/ui.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ui.c b/src/ui.c
index 47ff80ec6..3963bd545 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -176,7 +176,13 @@ ui_inchar(buf, maxlen, wtime, tb_change_cnt)
# ifdef FEAT_GUI
else
# endif
+ {
+ if (wtime == -1)
+ handle_sighup(SIGHUP_UNBLOCK); /* allow SIGHUP to kill us */
retval = mch_inchar(buf, maxlen, wtime, tb_change_cnt);
+ if (wtime == -1)
+ handle_sighup(SIGHUP_BLOCK); /* block SIGHUP */
+ }
#endif
ctrl_c_interrupts = TRUE;
@@ -1852,7 +1858,10 @@ ui_cursor_shape()
# ifdef FEAT_GUI
if (gui.in_use)
gui_update_cursor_later();
+ else
# endif
+ term_cursor_shape();
+
# ifdef MCH_CURSOR_SHAPE
mch_update_cursor();
# endif