mirror of
https://github.com/tmux/tmux.git
synced 2026-06-20 17:25:57 +00:00
Merge branch 'obsd-master'
This commit is contained in:
@@ -5403,8 +5403,12 @@ window_copy_update_cursor(struct window_mode_entry *wme, u_int cx, u_int cy)
|
|||||||
u_int maxx;
|
u_int maxx;
|
||||||
int allow_onemore;
|
int allow_onemore;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Allow rectangle selection to extend past end of current line to
|
||||||
|
* behave the same as vi with virtualedit=block set.
|
||||||
|
*/
|
||||||
|
if (!data->rectflag && cy < screen_size_y(s)) {
|
||||||
allow_onemore = (data->screen.sel != NULL && data->rectflag);
|
allow_onemore = (data->screen.sel != NULL && data->rectflag);
|
||||||
if (cy < screen_size_y(s)) {
|
|
||||||
py = screen_hsize(data->backing) + cy - data->oy;
|
py = screen_hsize(data->backing) + cy - data->oy;
|
||||||
maxx = window_copy_cursor_limit(wme, py, allow_onemore);
|
maxx = window_copy_cursor_limit(wme, py, allow_onemore);
|
||||||
if (cx > maxx)
|
if (cx > maxx)
|
||||||
|
|||||||
Reference in New Issue
Block a user