From 13e12b8a3c0fec29017f2dbdc6f57e372f8a7efd Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Fri, 24 Jul 2020 18:47:22 +0200 Subject: patch 8.2.1288: Vim9: cannot use mark in range Problem: Vim9: cannot use mark in range. Solution: Use the flag that a colon was seen. (closes #6528) --- src/ex_docmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ex_docmd.c') diff --git a/src/ex_docmd.c b/src/ex_docmd.c index 85747d5f4c..5459cfd7b8 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -1773,7 +1773,7 @@ do_one_cmd( */ cmd = ea.cmd; #ifdef FEAT_EVAL - starts_with_quote = vim9script && *ea.cmd == '\''; + starts_with_quote = vim9script && !starts_with_colon && *ea.cmd == '\''; if (!starts_with_quote) #endif ea.cmd = skip_range(ea.cmd, NULL); -- cgit v1.2.3