mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.2.0585: Vim9: # comment not recognized after :vim9script
Problem: Vim9: # comment not recognized after :vim9script. Solution: Check script type. Make comment after ":echo" work. And in several other places.
This commit is contained in:
@@ -6061,7 +6061,7 @@ ex_echo(exarg_T *eap)
|
||||
|
||||
if (eap->skip)
|
||||
++emsg_skip;
|
||||
while (*arg != NUL && *arg != '|' && *arg != '\n' && !got_int)
|
||||
while ((!ends_excmd2(eap->cmd, arg) || *arg == '"') && !got_int)
|
||||
{
|
||||
// If eval1() causes an error message the text from the command may
|
||||
// still need to be cleared. E.g., "echo 22,44".
|
||||
|
Reference in New Issue
Block a user