diff options
author | ZyX <kp-pav@yandex.ru> | 2017-07-02 19:37:21 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2017-07-02 19:37:21 +0300 |
commit | 24f0056ca5cb392f1e1bf38d648a6037acf1f1ef (patch) | |
tree | e536bbe8ca471672a7fc82fc383c99495007b8df /src/nvim/eval.c | |
parent | a1fee487ba5199ff672a87c5830732c224fa59eb (diff) | |
download | rneovim-24f0056ca5cb392f1e1bf38d648a6037acf1f1ef.tar.gz rneovim-24f0056ca5cb392f1e1bf38d648a6037acf1f1ef.tar.bz2 rneovim-24f0056ca5cb392f1e1bf38d648a6037acf1f1ef.zip |
message: Add support for replacing `<` to str2special
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r-- | src/nvim/eval.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 8ea0969dd5..662270e788 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -12120,7 +12120,7 @@ static void get_maparg(typval_T *argvars, typval_T *rettv, int exact) // Return a string. if (rhs != NULL) { rettv->vval.v_string = (char_u *)str2special_save( - (const char *)rhs, false); + (const char *)rhs, false, false); } } else { @@ -12157,7 +12157,7 @@ void mapblock_fill_dict(dict_T *const dict, FUNC_ATTR_NONNULL_ALL { char *const lhs = str2special_save((const char *)mp->m_keys, - compatible ? true : false); + compatible, !compatible); char *const mapmode = map_mode_to_chars(mp->m_mode); varnumber_T noremap_value; @@ -12175,7 +12175,8 @@ void mapblock_fill_dict(dict_T *const dict, tv_dict_add_str(dict, S_LEN("rhs"), (const char *)mp->m_orig_str); } else { tv_dict_add_allocated_str(dict, S_LEN("rhs"), - str2special_save((const char *)mp->m_str, false)); + str2special_save((const char *)mp->m_str, false, + true)); } tv_dict_add_allocated_str(dict, S_LEN("lhs"), lhs); tv_dict_add_nr(dict, S_LEN("noremap"), noremap_value); |