diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-02-16 15:10:30 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-02-16 15:10:30 +0100 |
commit | 14184a3133b9a6ee5f711d493c04e41ba4fa7c2f (patch) | |
tree | 2fefdfea751bfbfdbbec793f880073bd8387bb4f /src/edit.c | |
parent | 6902c0eb27a3e4479445badfef31443f2227fe60 (diff) |
patch 8.1.0932: Farsi support is outdated and unusedv8.1.0932
Problem: Farsi support is outdated and unused.
Solution: Delete the Farsi support.
Diffstat (limited to 'src/edit.c')
-rw-r--r-- | src/edit.c | 51 |
1 files changed, 3 insertions, 48 deletions
diff --git a/src/edit.c b/src/edit.c index 042826a872..62ff03d962 100644 --- a/src/edit.c +++ b/src/edit.c @@ -467,15 +467,6 @@ edit( if (cmdchar == 'R') { -#ifdef FEAT_FKMAP - if (p_fkmap && p_ri) - { - beep_flush(); - emsg(farsi_text_3); /* encoded in Farsi */ - State = INSERT; - } - else -#endif State = REPLACE; } else if (cmdchar == 'V' || cmdchar == 'v') @@ -812,10 +803,6 @@ edit( if (p_hkmap && KeyTyped) c = hkmap(c); /* Hebrew mode mapping */ #endif -#ifdef FEAT_FKMAP - if (p_fkmap && KeyTyped) - c = fkmap(c); /* Farsi mode mapping */ -#endif #ifdef FEAT_INS_EXPAND /* @@ -6281,9 +6268,6 @@ insertchar( && !ISSPECIAL(c) && (!has_mbyte || MB_BYTE2LEN_CHECK(c) == 1) && i < INPUT_BUFLEN -# ifdef FEAT_FKMAP - && !(p_fkmap && KeyTyped) /* Farsi mode mapping moves cursor */ -# endif && (textwidth == 0 || (virtcol += byte2cells(buf[i - 1])) < (colnr_T)textwidth) && !(!no_abbr && !vim_iswordc(c) && vim_iswordc(buf[i - 1]))) @@ -8406,23 +8390,7 @@ ins_ctrl_(void) } else revins_scol = -1; -#ifdef FEAT_FKMAP - if (p_altkeymap) - { - /* - * to be consistent also for redo command, using '.' - * set arrow_used to true and stop it - causing to redo - * characters entered in one mode (normal/reverse insert). - */ - arrow_used = TRUE; - (void)stop_arrow(); - p_fkmap = curwin->w_p_rl ^ p_ri; - if (p_fkmap && p_ri) - State = INSERT; - } - else -#endif - p_hkmap = curwin->w_p_rl ^ p_ri; /* be consistent! */ + p_hkmap = curwin->w_p_rl ^ p_ri; // be consistent! showmode(); } #endif @@ -8488,21 +8456,12 @@ ins_start_select(int c) static void ins_insert(int replaceState) { -#ifdef FEAT_FKMAP - if (p_fkmap && p_ri) - { - beep_flush(); - emsg(farsi_text_3); /* encoded in Farsi */ - return; - } -#endif - -# ifdef FEAT_EVAL +#ifdef FEAT_EVAL set_vim_var_string(VV_INSERTMODE, (char_u *)((State & REPLACE_FLAG) ? "i" : replaceState == VREPLACE ? "v" : "r"), 1); -# endif +#endif ins_apply_autocmds(EVENT_INSERTCHANGE); if (State & REPLACE_FLAG) State = INSERT | (State & LANGMAP); @@ -9916,10 +9875,6 @@ ins_eol(int c) coladvance(getviscol()); #ifdef FEAT_RIGHTLEFT -# ifdef FEAT_FKMAP - if (p_altkeymap && p_fkmap) - fkmap(NL); -# endif /* NL in reverse insert will always start in the end of * current line. */ if (revins_on) |