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/search.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/search.c')
-rw-r--r-- | src/search.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/search.c b/src/search.c index df7067b08f..9a47ed4608 100644 --- a/src/search.c +++ b/src/search.c @@ -1477,12 +1477,8 @@ do_search( } } -#ifdef FEAT_FKMAP /* when in Farsi mode, reverse the character flow */ - if (p_altkeymap && curwin->w_p_rl) - lrFswap(searchstr,0); -#endif - - c = searchit(curwin, curbuf, &pos, NULL, dirc == '/' ? FORWARD : BACKWARD, + c = searchit(curwin, curbuf, &pos, NULL, + dirc == '/' ? FORWARD : BACKWARD, searchstr, count, spats[0].off.end + (options & (SEARCH_KEEP + SEARCH_PEEK + SEARCH_HIS + SEARCH_MSG + SEARCH_START @@ -2976,10 +2972,6 @@ cls(void) int c; c = gchar_cursor(); -#ifdef FEAT_FKMAP /* when 'akm' (Farsi mode), take care of Farsi blank */ - if (p_altkeymap && c == F_BLANK) - return 0; -#endif if (c == ' ' || c == '\t' || c == NUL) return 0; if (enc_dbcs != 0 && c > 0xFF) |