Mercurial > vim
comparison src/normal.c @ 11866:be40c8a9240d v8.0.0813
patch 8.0.0813: cannot use a terminal window while the job is running
commit https://github.com/vim/vim/commit/423802d1a282df35078539970eabf559186e1ec8
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jul 30 16:52:24 2017 +0200
patch 8.0.0813: cannot use a terminal window while the job is running
Problem: Cannot use Vim commands in a terminal window while the job is
running.
Solution: Implement Terminal Normal mode.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 30 Jul 2017 17:00:04 +0200 |
parents | 1ce1376fbbf8 |
children | 50ad151a7482 |
comparison
equal
deleted
inserted
replaced
11865:6bdac11ae12a | 11866:be40c8a9240d |
---|---|
9035 * Also handle K_PS, start bracketed paste. | 9035 * Also handle K_PS, start bracketed paste. |
9036 */ | 9036 */ |
9037 static void | 9037 static void |
9038 nv_edit(cmdarg_T *cap) | 9038 nv_edit(cmdarg_T *cap) |
9039 { | 9039 { |
9040 #ifdef FEAT_TERMINAL | |
9041 if (term_in_terminal_mode()) | |
9042 { | |
9043 term_leave_terminal_mode(); | |
9044 return; | |
9045 } | |
9046 #endif | |
9047 | |
9040 /* <Insert> is equal to "i" */ | 9048 /* <Insert> is equal to "i" */ |
9041 if (cap->cmdchar == K_INS || cap->cmdchar == K_KINS) | 9049 if (cap->cmdchar == K_INS || cap->cmdchar == K_KINS) |
9042 cap->cmdchar = 'i'; | 9050 cap->cmdchar = 'i'; |
9043 | 9051 |
9044 /* in Visual mode "A" and "I" are an operator */ | 9052 /* in Visual mode "A" and "I" are an operator */ |