mirror of
https://github.com/neovim/neovim.git
synced 2024-12-23 20:55:18 -07:00
Remove FEAT_MBYTE
Multi-byte character handling.
This commit is contained in:
parent
6f38fe39c4
commit
4e0fc575d7
@ -133,7 +133,6 @@
|
||||
#define FEAT_LISP
|
||||
#define FEAT_LISTCMDS
|
||||
#define FEAT_LOCALMAP
|
||||
#define FEAT_MBYTE
|
||||
#define FEAT_MENU
|
||||
#define FEAT_MODIFY_FNAME
|
||||
#define FEAT_MOUSE
|
||||
|
@ -1378,8 +1378,6 @@ void ins_bytes(char_u *p)
|
||||
ins_bytes_len(p, (int)STRLEN(p));
|
||||
}
|
||||
|
||||
#if defined(FEAT_VREPLACE) || defined(FEAT_INS_EXPAND) \
|
||||
|| defined(FEAT_COMMENTS) || defined(FEAT_MBYTE) || defined(PROTO)
|
||||
/*
|
||||
* Insert string "p" with length "len" at the cursor position.
|
||||
* Handles Replace mode and multi-byte characters.
|
||||
@ -1402,7 +1400,6 @@ void ins_bytes_len(char_u *p, int len)
|
||||
for (i = 0; i < len; ++i)
|
||||
ins_char(p[i]);
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Insert or replace a single character at the cursor position.
|
||||
|
@ -7561,9 +7561,8 @@ static int wc_use_keyname(char_u *varp, long *wcp)
|
||||
*
|
||||
* langmap_mapchar[] maps any of 256 chars to an ASCII char used for Vim
|
||||
* commands.
|
||||
* When FEAT_MBYTE is defined langmap_mapga.ga_data is a sorted table of
|
||||
* langmap_entry_T. This does the same as langmap_mapchar[] for characters >=
|
||||
* 256.
|
||||
* langmap_mapga.ga_data is a sorted table of langmap_entry_T.
|
||||
* This does the same as langmap_mapchar[] for characters >= 256.
|
||||
*/
|
||||
/*
|
||||
* With multi-byte support use growarray for 'langmap' chars >= 256
|
||||
|
@ -500,8 +500,7 @@ void sort_strings(char_u **files, int count)
|
||||
qsort((void *)files, (size_t)count, sizeof(char_u *), sort_compare);
|
||||
}
|
||||
|
||||
#if (defined(FEAT_MBYTE) && defined(FEAT_QUICKFIX)) \
|
||||
|| defined(FEAT_SPELL) || defined(PROTO)
|
||||
#if defined(FEAT_QUICKFIX) || defined(FEAT_SPELL) || defined(PROTO)
|
||||
/*
|
||||
* Return TRUE if string "s" contains a non-ASCII character (128 or higher).
|
||||
* When "s" is NULL FALSE is returned.
|
||||
|
@ -19,8 +19,7 @@ STARTTEST
|
||||
:" When there is no match use only the first two items.
|
||||
:let tl = []
|
||||
|
||||
:"""" Multi-byte character tests. These will fail unless vim is compiled
|
||||
:"""" with Multibyte (FEAT_MBYTE) or BIG/HUGE features.
|
||||
:"""" Multi-byte character tests.
|
||||
:call add(tl, [2, '[[:alpha:][=a=]]\+', '879 aiaãâaiuvna ', 'aiaãâaiuvna'])
|
||||
:call add(tl, [2, '[[=a=]]\+', 'ddaãâbcd', 'aãâ']) " equivalence classes
|
||||
:call add(tl, [2, '[^ม ]\+', 'มม oijasoifjos ifjoisj f osij j มมมมม abcd', 'oijasoifjos'])
|
||||
|
@ -328,7 +328,7 @@ void add_to_input_buf(char_u *s, int len)
|
||||
#if ((defined(FEAT_XIM) || defined(FEAT_DND)) && defined(FEAT_GUI_GTK)) \
|
||||
|| defined(FEAT_GUI_MSWIN) \
|
||||
|| defined(FEAT_GUI_MAC) \
|
||||
|| (defined(FEAT_MBYTE) && defined(FEAT_MBYTE_IME)) \
|
||||
|| defined(FEAT_MBYTE_IME) \
|
||||
|| (defined(FEAT_GUI) && (!defined(USE_ON_FLY_SCROLL) \
|
||||
|| defined(FEAT_MENU))) \
|
||||
|| defined(PROTO)
|
||||
@ -494,8 +494,6 @@ void ui_cursor_shape(void)
|
||||
conceal_check_cursur_line();
|
||||
}
|
||||
|
||||
#if defined(FEAT_GUI) || defined(FEAT_RIGHTLEFT) \
|
||||
|| defined(FEAT_MBYTE) || defined(PROTO)
|
||||
/*
|
||||
* Check bounds for column number
|
||||
*/
|
||||
@ -519,7 +517,6 @@ int check_row(int row)
|
||||
return (int)screen_Rows - 1;
|
||||
return row;
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Stuff for the X clipboard. Shared between VMS and Unix.
|
||||
|
Loading…
Reference in New Issue
Block a user