1
0
forked from aniani/vim

updated for version 7.3.1127

Problem:    No error for using empty \%[].
Solution:   Give error message.
This commit is contained in:
Bram Moolenaar
2013-06-05 21:30:37 +02:00
parent c19b4b50a8
commit 2976c028ca
3 changed files with 7 additions and 2 deletions

View File

@@ -977,6 +977,9 @@ nfa_regatom()
reg_magic == MAGIC_ALL);
EMIT(c);
}
if (n == 0)
EMSG2_RET_FAIL(_(e_empty_sb),
reg_magic == MAGIC_ALL);
EMIT(NFA_OPT_CHARS);
EMIT(n);
break;