summaryrefslogtreecommitdiffstats
path: root/window-copy.c
diff options
context:
space:
mode:
authornicm <nicm>2023-09-01 14:29:11 +0000
committernicm <nicm>2023-09-01 14:29:11 +0000
commit9456258ccc03a1a959cfb7d020011d751b39bb1b (patch)
tree6f2331046cfde77a7125d3cc54082161f2fc9303 /window-copy.c
parentc41d59f232a7243bfff34ec3f02adc76fddc91b2 (diff)
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.
Diffstat (limited to 'window-copy.c')
-rw-r--r--window-copy.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/window-copy.c b/window-copy.c
index 54255dd7..1c8a326d 100644
--- a/window-copy.c
+++ b/window-copy.c
@@ -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.