aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_cmds.c
diff options
context:
space:
mode:
authorJan Edmund Lazo <janedmundlazo@hotmail.com>2018-12-14 22:46:22 -0500
committerJan Edmund Lazo <janedmundlazo@hotmail.com>2018-12-14 22:51:12 -0500
commit845973c9fed0da7a0d471f5b57ab361961a3de93 (patch)
treef1de851a3030aa7998a17a3a9aff3839e9815345 /src/nvim/ex_cmds.c
parentbcc9b9335ceddf1f3ff11ae7bb2821c4f55c301b (diff)
downloadrneovim-845973c9fed0da7a0d471f5b57ab361961a3de93.tar.gz
rneovim-845973c9fed0da7a0d471f5b57ab361961a3de93.tar.bz2
rneovim-845973c9fed0da7a0d471f5b57ab361961a3de93.zip
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 vim/vim#2967) https://github.com/vim/vim/commit/06b056e110005ce0dd97b8c6333405afd06c36fc
Diffstat (limited to 'src/nvim/ex_cmds.c')
-rw-r--r--src/nvim/ex_cmds.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c
index 0a9b6ecc57..36c4e333cf 100644
--- a/src/nvim/ex_cmds.c
+++ b/src/nvim/ex_cmds.c
@@ -5685,6 +5685,14 @@ void 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--;
+ }
+ }
// Count cells and check for non-printable chars
cells = 0;