mirror of
https://github.com/neovim/neovim.git
synced 2026-03-05 16:47:17 +00:00
fix(helptags): make multibyte help tags work properly (#23975)
This commit is contained in:
@@ -458,7 +458,7 @@ int find_help_tags(const char *arg, int *num_matches, char ***matches, bool keep
|
||||
// Replace "^x" by "CTRL-X". Don't do this for "^_" to make
|
||||
// ":help i_^_CTRL-D" work.
|
||||
// Insert '-' before and after "CTRL-X" when applicable.
|
||||
if (*s < ' '
|
||||
if ((uint8_t)(*s) < ' '
|
||||
|| (*s == '^' && s[1]
|
||||
&& (ASCII_ISALPHA(s[1]) || vim_strchr("?@[\\]^", (uint8_t)s[1]) != NULL))) {
|
||||
if (d > IObuff && d[-1] != '_' && d[-1] != '\\') {
|
||||
|
||||
@@ -1762,7 +1762,7 @@ static tagmatch_status_T findtags_parse_line(findtags_state_T *st, tagptrs_T *ta
|
||||
if (st->state == TS_BINARY) {
|
||||
int tagcmp;
|
||||
// Simplistic check for unsorted tags file.
|
||||
int i = (int)tagpp->tagname[0];
|
||||
int i = (uint8_t)tagpp->tagname[0];
|
||||
if (margs->sortic) {
|
||||
i = TOUPPER_ASC(tagpp->tagname[0]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user