Rewrite combined character handling to be more consistent and to support

newer Unicode combined characters (which we have to "know" are combined
since they are not width zero). GitHub issue 3600.
This commit is contained in:
nicm
2023-09-01 14:29:11 +00:00
parent c41d59f232
commit 9456258ccc
7 changed files with 1197 additions and 36 deletions

View File

@ -3763,8 +3763,7 @@ window_copy_search(struct window_mode_entry *wme, int direction, int regex)
}
}
endline = gd->hsize + gd->sy - 1;
}
else {
} else {
window_copy_move_left(s, &fx, &fy, wrapflag);
endline = 0;
}
@ -3806,8 +3805,7 @@ window_copy_search(struct window_mode_entry *wme, int direction, int regex)
data->cy = fy - screen_hsize(data->backing) +
data-> oy;
}
}
else {
} else {
/*
* When searching backward, position the cursor at the
* beginning of the mark.