Mercurial > vim
diff src/ex_getln.c @ 571:0ae54f30d5bc
updated for version 7.0162
author | vimboss |
---|---|
date | Fri, 02 Dec 2005 00:46:37 +0000 |
parents | 2df7f3a5eb96 |
children | 25a70b1cd2da |
line wrap: on
line diff
--- a/src/ex_getln.c +++ b/src/ex_getln.c @@ -301,6 +301,10 @@ getcmdline(firstc, count, indent) ui_cursor_shape(); /* may show different cursor shape */ #endif + /* When inside an autocommand for writing "exiting" may be set and + * terminal mode set to cooked. Need to set raw mode here then. */ + settmode(TMODE_RAW); + #ifdef FEAT_CMDHIST init_history(); hiscnt = hislen; /* set hiscnt to impossible history value */ @@ -1050,7 +1054,7 @@ getcmdline(firstc, count, indent) case ESC: /* get here if p_wc != ESC or when ESC typed twice */ case Ctrl_C: - /* In exmode it doesn't make sense to return. Except when + /* In exmode it doesn't make sense to return. Except when * ":normal" runs out of characters. */ if (exmode_active #ifdef FEAT_EX_EXTRA