aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_getln.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2023-02-28 19:38:38 +0100
committerGitHub <noreply@github.com>2023-02-28 19:38:38 +0100
commit8bd0a9c360e94b2702cbccbde838a2a7e4f8ccf1 (patch)
tree1c64f63f86eabb86e4fd63984408aad4ef578808 /src/nvim/ex_getln.c
parentf289fc4abb8e7c02acfd2dfc834cc6447193a67e (diff)
parentcf07f2baabd3a1a072102e0cacb6d70509ada044 (diff)
downloadrneovim-8bd0a9c360e94b2702cbccbde838a2a7e4f8ccf1.tar.gz
rneovim-8bd0a9c360e94b2702cbccbde838a2a7e4f8ccf1.tar.bz2
rneovim-8bd0a9c360e94b2702cbccbde838a2a7e4f8ccf1.zip
Merge pull request #22429 from bfredl/hkmap
feat(edit)!: remove old c implementation of hebrew keymap
Diffstat (limited to 'src/nvim/ex_getln.c')
-rw-r--r--src/nvim/ex_getln.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c
index a3e0e650fa..4b56dfdd3f 100644
--- a/src/nvim/ex_getln.c
+++ b/src/nvim/ex_getln.c
@@ -189,8 +189,6 @@ static int cedit_key = -1; ///< key value of 'cedit' option
static handle_T cmdpreview_bufnr = 0;
static long cmdpreview_ns = 0;
-static int cmd_hkmap = 0; // Hebrew mapping during command line
-
static void save_viewstate(win_T *wp, viewstate_T *vs)
FUNC_ATTR_NONNULL_ALL
{
@@ -680,11 +678,6 @@ static uint8_t *command_line_enter(int firstc, long count, int indent, bool clea
s->break_ctrl_c = true;
}
- // start without Hebrew mapping for a command line
- if (s->firstc == ':' || s->firstc == '=' || s->firstc == '>') {
- cmd_hkmap = 0;
- }
-
init_ccline(s->firstc, s->indent);
ccline.prompt_id = last_prompt_id++;
ccline.level = cmdline_level;
@@ -1166,9 +1159,6 @@ static int command_line_execute(VimState *state, int key)
if (KeyTyped) {
s->some_key_typed = true;
- if (cmd_hkmap) {
- s->c = hkmap(s->c);
- }
if (cmdmsg_rl && !KeyStuffed) {
// Invert horizontal movements and operations. Only when
@@ -2101,7 +2091,6 @@ static int command_line_handle_key(CommandLineState *s)
if (!p_ari) {
break;
}
- cmd_hkmap = !cmd_hkmap;
return command_line_not_changed(s);
default: