1
0
forked from aniani/vim

patch 8.1.0588: cannot define a sign with space in the text

Problem:    Cannot define a sign with space in the text.
Solution:   Allow for escaping characters. (Ben Jackson, closes #2967)
This commit is contained in:
Bram Moolenaar
2018-12-14 19:37:08 +01:00
parent 06d4c4c818
commit 06b056e110
3 changed files with 37 additions and 0 deletions

View File

@@ -7779,6 +7779,14 @@ ex_sign(exarg_T *eap)
int len;
arg += 5;
for (s = arg; s + 1 < p; ++s)
if (*s == '\\')
{
// Remove a backslash, so that it is possible
// to use a space.
STRMOVE(s, s + 1);
--p;
}
# ifdef FEAT_MBYTE
/* Count cells and check for non-printable chars */
if (has_mbyte)