Mercurial > vim
comparison src/ex_cmds.c @ 15850:a6ca8cf07a98 v8.1.0932
patch 8.1.0932: Farsi support is outdated and unused
commit https://github.com/vim/vim/commit/14184a3133b9a6ee5f711d493c04e41ba4fa7c2f
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Feb 16 15:10:30 2019 +0100
patch 8.1.0932: Farsi support is outdated and unused
Problem: Farsi support is outdated and unused.
Solution: Delete the Farsi support.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 16 Feb 2019 15:15:07 +0100 |
parents | 0d8291665b59 |
children | 7fad90423bd2 |
comparison
equal
deleted
inserted
replaced
15849:c478f5603556 | 15850:a6ca8cf07a98 |
---|---|
4909 pat = (char_u *)""; /* empty search pattern */ | 4909 pat = (char_u *)""; /* empty search pattern */ |
4910 delimiter = *cmd++; /* remember delimiter character */ | 4910 delimiter = *cmd++; /* remember delimiter character */ |
4911 } | 4911 } |
4912 else /* find the end of the regexp */ | 4912 else /* find the end of the regexp */ |
4913 { | 4913 { |
4914 #ifdef FEAT_FKMAP /* reverse the flow of the Farsi characters */ | |
4915 if (p_altkeymap && curwin->w_p_rl) | |
4916 lrF_sub(cmd); | |
4917 #endif | |
4918 which_pat = RE_LAST; /* use last used regexp */ | 4914 which_pat = RE_LAST; /* use last used regexp */ |
4919 delimiter = *cmd++; /* remember delimiter character */ | 4915 delimiter = *cmd++; /* remember delimiter character */ |
4920 pat = cmd; /* remember start of search pat */ | 4916 pat = cmd; /* remember start of search pat */ |
4921 cmd = skip_regexp(cmd, delimiter, p_magic, &eap->arg); | 4917 cmd = skip_regexp(cmd, delimiter, p_magic, &eap->arg); |
4922 if (cmd[0] == delimiter) /* end delimiter found */ | 4918 if (cmd[0] == delimiter) /* end delimiter found */ |
6068 cmd = skip_regexp(cmd, delim, p_magic, &eap->arg); | 6064 cmd = skip_regexp(cmd, delim, p_magic, &eap->arg); |
6069 if (cmd[0] == delim) /* end delimiter found */ | 6065 if (cmd[0] == delim) /* end delimiter found */ |
6070 *cmd++ = NUL; /* replace it with a NUL */ | 6066 *cmd++ = NUL; /* replace it with a NUL */ |
6071 } | 6067 } |
6072 | 6068 |
6073 #ifdef FEAT_FKMAP /* when in Farsi mode, reverse the character flow */ | |
6074 if (p_altkeymap && curwin->w_p_rl) | |
6075 lrFswap(pat,0); | |
6076 #endif | |
6077 | |
6078 if (search_regcomp(pat, RE_BOTH, which_pat, SEARCH_HIS, ®match) == FAIL) | 6069 if (search_regcomp(pat, RE_BOTH, which_pat, SEARCH_HIS, ®match) == FAIL) |
6079 { | 6070 { |
6080 emsg(_(e_invcmd)); | 6071 emsg(_(e_invcmd)); |
6081 return; | 6072 return; |
6082 } | 6073 } |