Problem: Vim9: cannot use mark in range.
Solution: Use the flag that a colon was seen. (closes #6528)
*/
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);
("some")->MyFunc()
assert_equal('some', var)
+ # line starting with single quote is not a mark
'asdfasdf'->MyFunc()
assert_equal('asdfasdf', var)
UseString()
assert_equal('xyork', var)
+ # prepending a colon makes it a mark
+ new
+ setline(1, ['aaa', 'bbb', 'ccc'])
+ normal! 3Gmt1G
+ :'t
+ assert_equal(3, getcurpos()[1])
+ bwipe!
+
MyFunc(
'continued'
)
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1288,
/**/
1287,
/**/