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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user