summaryrefslogtreecommitdiffstats
path: root/src/ex_getln.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-02-06 20:58:09 +0000
committerBram Moolenaar <Bram@vim.org>2023-02-06 20:58:09 +0000
commitaf9e28a5b8f888b79459393ddb26fffe613c3f3c (patch)
treeb77d03b44b1bdf09e72d3102483d731528b08799 /src/ex_getln.c
parent43e234e8b48caf59d6895a31628dad0bba4fd5c8 (diff)
patch 9.0.1290: CTRL-N and -P on cmdline don't trigger CmdlineChangedv9.0.1290
Problem: CTRL-N and -P on cmdline don't trigger CmdlineChanged. Solution: Jump to cmdline_changed instead of cmdline_not_changed. (closes #11956)
Diffstat (limited to 'src/ex_getln.c')
-rw-r--r--src/ex_getln.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c
index 2407bceb16..6d0b3c5db6 100644
--- a/src/ex_getln.c
+++ b/src/ex_getln.c
@@ -2293,7 +2293,7 @@ getcmdline_int(
wild_type = (c == Ctrl_P) ? WILD_PREV : WILD_NEXT;
if (nextwild(&xpc, wild_type, 0, firstc != '@') == FAIL)
break;
- goto cmdline_not_changed;
+ goto cmdline_changed;
}
// FALLTHROUGH
case K_UP:
@@ -2315,7 +2315,7 @@ getcmdline_int(
wild_type = WILD_PAGEDOWN;
if (nextwild(&xpc, wild_type, 0, firstc != '@') == FAIL)
break;
- goto cmdline_not_changed;
+ goto cmdline_changed;
}
else
{