mirror of
https://github.com/neovim/neovim.git
synced 2025-09-17 08:48:16 +00:00
vim-patch:7.4.1876 (#5848)
Problem: Typing "k" at the hit-enter prompt has no effect.
Solution: Don't assume recursive use of the prompt if a character was typed.
(Hirohito Higashi)
a0055ad3a7
This commit is contained in:

committed by
Justin M. Keyes

parent
c6a50ca82c
commit
aa35cd9af0
@@ -2030,8 +2030,9 @@ static int do_more_prompt(int typed_char)
|
|||||||
int i;
|
int i;
|
||||||
|
|
||||||
// We get called recursively when a timer callback outputs a message. In
|
// We get called recursively when a timer callback outputs a message. In
|
||||||
// that case don't show another prompt. Also when at the hit-Enter prompt.
|
// that case don't show another prompt. Also when at the hit-Enter prompt
|
||||||
if (entered || State == HITRETURN) {
|
// and nothing was typed.
|
||||||
|
if (entered || (State == HITRETURN && typed_char == 0)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
entered = true;
|
entered = true;
|
||||||
|
@@ -564,7 +564,7 @@ static int included_patches[] = {
|
|||||||
// 1879 NA
|
// 1879 NA
|
||||||
// 1878 NA
|
// 1878 NA
|
||||||
// 1877 NA
|
// 1877 NA
|
||||||
// 1876,
|
1876,
|
||||||
1875,
|
1875,
|
||||||
// 1874 NA
|
// 1874 NA
|
||||||
// 1873 NA
|
// 1873 NA
|
||||||
|
Reference in New Issue
Block a user