commit | ada1d870b4a818151cfba1c18962af2369b88df9 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sat Feb 20 08:16:51 2021 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Sat Feb 20 08:16:51 2021 +0100 |
tree | ce40e89dd6dfee82bd64473dc20d1e633ac62695 | |
parent | 10b9421f3bb7ac971fa63bd025c4c603c98f4a49 [diff] [blame] |
patch 8.2.2532: Vim9: confusing error if :k is used with a range Problem: Vim9: confusing error if :k is used with a range. Solution: Give an error about the range. (issue #7874)
diff --git a/src/vim9compile.c b/src/vim9compile.c index c75ead9..b12d887 100644 --- a/src/vim9compile.c +++ b/src/vim9compile.c
@@ -8330,6 +8330,7 @@ semsg(_(e_colon_required_before_range_str), cmd); goto erret; } + ea.addr_count = 1; if (ends_excmd2(line, ea.cmd)) { // A range without a command: jump to the line.