diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2015-02-16 23:42:25 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2015-02-16 23:42:25 -0300 |
commit | 0429857689ba98356bc80d01ebd540fe861e8db2 (patch) | |
tree | b4d039dba9e18a041b00cfe31d954931a97241dd /src/nvim/misc1.c | |
parent | af46564dd6e7e709f269f041f749dc312d9c3773 (diff) | |
parent | 40b7990553997d9eabb21b746346356016b373c5 (diff) | |
download | rneovim-0429857689ba98356bc80d01ebd540fe861e8db2.tar.gz rneovim-0429857689ba98356bc80d01ebd540fe861e8db2.tar.bz2 rneovim-0429857689ba98356bc80d01ebd540fe861e8db2.zip |
Merge PR #1820 'Reimplement builtin terminal UI with termkey/unibilium'
Diffstat (limited to 'src/nvim/misc1.c')
-rw-r--r-- | src/nvim/misc1.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/nvim/misc1.c b/src/nvim/misc1.c index 383e2bf6a5..a7e471625b 100644 --- a/src/nvim/misc1.c +++ b/src/nvim/misc1.c @@ -2395,11 +2395,6 @@ int get_keystroke(void) } else if (len > 0) ++waited; /* keep track of the waiting time */ - /* Incomplete termcode and not timed out yet: get more characters */ - if ((n = check_termcode(1, buf, buflen, &len)) < 0 - && (!p_ttimeout || waited * 100L < (p_ttm < 0 ? p_tm : p_ttm))) - continue; - if (n == KEYLEN_REMOVED) { /* key code removed */ if (must_redraw != 0 && !need_wait_return && (State & CMDLINE) == 0) { /* Redrawing was postponed, do it now. */ @@ -3301,28 +3296,6 @@ home_replace_save ( return dst; } -void prepare_to_exit(void) -{ -#if defined(SIGHUP) && defined(SIG_IGN) - /* Ignore SIGHUP, because a dropped connection causes a read error, which - * makes Vim exit and then handling SIGHUP causes various reentrance - * problems. */ - signal(SIGHUP, SIG_IGN); -#endif - - { - windgoto((int)Rows - 1, 0); - - /* - * Switch terminal mode back now, so messages end up on the "normal" - * screen (if there are two screens). - */ - settmode(TMODE_COOK); - stoptermcap(); - out_flush(); - } -} - /* * Preserve files and exit. * When called IObuff must contain a message. @@ -3340,9 +3313,6 @@ void preserve_exit(void) } really_exiting = true; - - prepare_to_exit(); - out_str(IObuff); screen_start(); // don't know where cursor is now out_flush(); |