]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 8.2.4338: an error from an expression mapping messes up the display v8.2.4338
authorBram Moolenaar <Bram@vim.org>
Thu, 10 Feb 2022 14:07:41 +0000 (14:07 +0000)
committerBram Moolenaar <Bram@vim.org>
Thu, 10 Feb 2022 14:07:41 +0000 (14:07 +0000)
commit74a0a5b26d0180f3ea89e9495dff6a26f0df23cb
treed991dcc0a35f17657c6f591d51b46dcff9a167b3
parent9da17d7c57071c306565da6a35c3704db1916b78
patch 8.2.4338: an error from an expression mapping messes up the display

Problem:    An error from an expression mapping messes up the display.
Solution:   When the expression results in an empty string return K_IGNORE.
            In cmdline mode redraw the command line. (closes #9726)
src/getchar.c
src/testdir/dumps/Test_map_expr_2.dump [new file with mode: 0644]
src/testdir/dumps/Test_map_expr_3.dump [new file with mode: 0644]
src/testdir/dumps/Test_map_expr_4.dump [new file with mode: 0644]
src/testdir/test_mapping.vim
src/version.c