patch 8.1.0932: Farsi support is outdated and unused
Problem: Farsi support is outdated and unused.
Solution: Delete the Farsi support.
diff --git a/src/charset.c b/src/charset.c
index 5b091ec..1d66d61 100644
--- a/src/charset.c
+++ b/src/charset.c
@@ -98,13 +98,6 @@
while (c <= '~')
#endif
g_chartab[c++] = 1 + CT_PRINT_CHAR;
-#ifdef FEAT_FKMAP
- if (p_altkeymap)
- {
- while (c < YE)
- g_chartab[c++] = 1 + CT_PRINT_CHAR;
- }
-#endif
while (c < 256)
{
/* UTF-8: bytes 0xa0 - 0xff are printable (latin1) */
@@ -218,11 +211,7 @@
/* Use the MB_ functions here, because isalpha() doesn't
* work properly when 'encoding' is "latin1" and the locale is
* "C". */
- if (!do_isalpha || MB_ISLOWER(c) || MB_ISUPPER(c)
-#ifdef FEAT_FKMAP
- || (p_altkeymap && (F_isalpha(c) || F_isdigit(c)))
-#endif
- )
+ if (!do_isalpha || MB_ISLOWER(c) || MB_ISUPPER(c))
{
if (i == 0) /* (re)set ID flag */
{
@@ -237,10 +226,6 @@
#ifndef EBCDIC
|| c > '~'
#endif
-#ifdef FEAT_FKMAP
- || (p_altkeymap
- && (F_isalpha(c) || F_isdigit(c)))
-#endif
// For double-byte we keep the cell width, so
// that we can detect it from the first byte.
) && !(enc_dbcs && MB_BYTE2LEN(c) == 2))
@@ -540,9 +525,6 @@
#else
(c >= ' ' && c <= '~')
#endif
-#ifdef FEAT_FKMAP
- || (p_altkeymap && F_ischar(c))
-#endif
)) || (c < 256 && vim_isprintc_strict(c)))
{
/* printable character */