aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval.c
diff options
context:
space:
mode:
authorRui Abreu Ferreira <raf-ep@gmx.com>2014-10-08 14:04:27 +0100
committerThiago de Arruda <tpadilha84@gmail.com>2014-11-27 08:33:53 -0300
commite644369f6e67b6520e9c55026f8671985d70c166 (patch)
tree173cea6bcb535f2d75c51c1bca9ca8747abeb59d /src/nvim/eval.c
parenta6b7b924311eafd80f5983fdbea67842b0e169b4 (diff)
downloadrneovim-e644369f6e67b6520e9c55026f8671985d70c166.tar.gz
rneovim-e644369f6e67b6520e9c55026f8671985d70c166.tar.bz2
rneovim-e644369f6e67b6520e9c55026f8671985d70c166.zip
Add Boolean argument escape_csi to vim_feedkeys
- By default vim_feedkeys escaped all input for CSI/K_SPECIAL bytes before using it. However since vim_replace_termcodes() also escapes the input string chaining these functions together escapes input twice - vim_feedkeys() now takes a third Boolean argument to enable/disable escaping - Breaks API compatibility
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r--src/nvim/eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c
index 5975777261..4a77bcd3c5 100644
--- a/src/nvim/eval.c
+++ b/src/nvim/eval.c
@@ -8414,7 +8414,7 @@ static void f_feedkeys(typval_T *argvars, typval_T *rettv)
}
vim_feedkeys(cstr_as_string((char *)keys),
- cstr_as_string((char *)flags));
+ cstr_as_string((char *)flags), true);
}
}