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:
@@ -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.
|
||||
|
Reference in New Issue
Block a user