diff options
author | KillTheMule <KillTheMule@users.noreply.github.com> | 2017-09-30 22:20:47 +0200 |
---|---|---|
committer | KillTheMule <KillTheMule@users.noreply.github.com> | 2017-10-01 11:47:31 +0200 |
commit | 4543fc1612183da659a9ca10f826ae59e2186f22 (patch) | |
tree | c36cf46643cc4d7f104041af65473f9c190cd8f9 /src | |
parent | c580ef68e873745ae02a577f11cbabb5e43271e4 (diff) | |
download | rneovim-4543fc1612183da659a9ca10f826ae59e2186f22.tar.gz rneovim-4543fc1612183da659a9ca10f826ae59e2186f22.tar.bz2 rneovim-4543fc1612183da659a9ca10f826ae59e2186f22.zip |
menu_get: prettyprint special chars
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/menu.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nvim/menu.c b/src/nvim/menu.c index 0db250d111..69700e34fd 100644 --- a/src/nvim/menu.c +++ b/src/nvim/menu.c @@ -698,7 +698,9 @@ static dict_T *menu_get_recursive(const vimmenu_T *menu, int modes) if (*menu->strings[bit] == NUL) { tv_dict_add_str(impl, S_LEN("rhs"), (char *)"<Nop>"); } else { - tv_dict_add_str(impl, S_LEN("rhs"), (char *)menu->strings[bit]); + tv_dict_add_allocated_str(impl, S_LEN("rhs"), + str2special_save((char *)menu->strings[bit], + false, false)); } tv_dict_add_nr(impl, S_LEN("silent"), menu->silent[bit]); tv_dict_add_nr(impl, S_LEN("enabled"), |