diff options
Diffstat (limited to 'linenoise')
-rw-r--r-- | linenoise/linenoise.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/linenoise/linenoise.c b/linenoise/linenoise.c index afc4e187..a7335aae 100644 --- a/linenoise/linenoise.c +++ b/linenoise/linenoise.c @@ -1275,6 +1275,9 @@ static void move_cursor_multiline(lino_t *l, int npos) static void move_cursor(lino_t *l, int npos) { + if (npos == l->dpos) + return; + if (l->mlmode) { move_cursor_multiline(l, npos); } else { |