Mercurial > vim
comparison src/main.c @ 11684:1ce1376fbbf8 v8.0.0725
patch 8.0.0725: a terminal window does not handle keyboard input
commit https://github.com/vim/vim/commit/938783d0ab5678c259ceb62b15be72abe69362fa
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jul 16 20:13:26 2017 +0200
patch 8.0.0725: a terminal window does not handle keyboard input
Problem: A terminal window does not handle keyboard input.
Solution: Add terminal_loop(). ":term bash -i" sort of works now.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 16 Jul 2017 20:15:03 +0200 |
parents | 5cd9ba96561d |
children | be40c8a9240d |
comparison
equal
deleted
inserted
replaced
11683:0cc8e85e29d4 | 11684:1ce1376fbbf8 |
---|---|
1352 if (noexmode) /* End of ":global/path/visual" commands */ | 1352 if (noexmode) /* End of ":global/path/visual" commands */ |
1353 return; | 1353 return; |
1354 do_exmode(exmode_active == EXMODE_VIM); | 1354 do_exmode(exmode_active == EXMODE_VIM); |
1355 } | 1355 } |
1356 else | 1356 else |
1357 { | |
1358 #ifdef FEAT_TERMINAL | |
1359 if (curbuf->b_term != NULL && oa.op_type == OP_NOP | |
1360 && oa.regname == NUL) | |
1361 terminal_loop(); | |
1362 #endif | |
1357 normal_cmd(&oa, TRUE); | 1363 normal_cmd(&oa, TRUE); |
1364 } | |
1358 } | 1365 } |
1359 } | 1366 } |
1360 | 1367 |
1361 | 1368 |
1362 #if defined(USE_XSMP) || defined(FEAT_GUI) || defined(PROTO) | 1369 #if defined(USE_XSMP) || defined(FEAT_GUI) || defined(PROTO) |