Mercurial > vim
comparison src/ex_cmds.c @ 20113:2c23053c654a v8.2.0612
patch 8.2.0612: Vim9: no check for space before #comment
Commit: https://github.com/vim/vim/commit/2c5ed4e3300378ce76c8d9c3818d6f73e5119f68
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Apr 20 19:42:10 2020 +0200
patch 8.2.0612: Vim9: no check for space before #comment
Problem: Vim9: no check for space before #comment.
Solution: Add space checks.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 20 Apr 2020 19:45:03 +0200 |
parents | 5feb426d2ea1 |
children | b790d00d5ccb |
comparison
equal
deleted
inserted
replaced
20112:b209e0dd46a4 | 20113:2c23053c654a |
---|---|
449 eap->nextcmd = check_nextcmd(p); | 449 eap->nextcmd = check_nextcmd(p); |
450 break; | 450 break; |
451 } | 451 } |
452 else if (!ASCII_ISALPHA(*p) && regmatch.regprog == NULL) | 452 else if (!ASCII_ISALPHA(*p) && regmatch.regprog == NULL) |
453 { | 453 { |
454 s = skip_regexp(p + 1, *p, TRUE); | 454 s = skip_regexp_err(p + 1, *p, TRUE); |
455 if (*s != *p) | 455 if (s == NULL) |
456 { | |
457 emsg(_(e_invalpat)); | |
458 goto sortend; | 456 goto sortend; |
459 } | |
460 *s = NUL; | 457 *s = NUL; |
461 // Use last search pattern if sort pattern is empty. | 458 // Use last search pattern if sort pattern is empty. |
462 if (s == p + 1) | 459 if (s == p + 1) |
463 { | 460 { |
464 if (last_search_pat() == NULL) | 461 if (last_search_pat() == NULL) |