1
0
forked from aniani/vim

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)
This commit is contained in:
Bram Moolenaar
2021-02-20 08:16:51 +01:00
parent 10b9421f3b
commit ada1d870b4
4 changed files with 15 additions and 1 deletions

View File

@@ -8330,6 +8330,7 @@ compile_def_function(
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.