mirror of
https://github.com/tmux/tmux.git
synced 2025-01-07 16:28:48 +00:00
Correctly move to previous line when looking for previous word, from
Derry Jing.
This commit is contained in:
parent
1c78155e70
commit
afe4ea4250
@ -4535,14 +4535,14 @@ window_copy_cursor_previous_word_pos(struct window_mode_entry *wme,
|
|||||||
separators))
|
separators))
|
||||||
break;
|
break;
|
||||||
} else {
|
} else {
|
||||||
if (data->cy == 0 &&
|
if (py == 0 ||
|
||||||
|
(data->cy == 0 &&
|
||||||
(screen_hsize(data->backing) == 0 ||
|
(screen_hsize(data->backing) == 0 ||
|
||||||
data->oy >=
|
data->oy >=
|
||||||
screen_hsize(data->backing) - 1))
|
screen_hsize(data->backing) - 1)))
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
py = screen_hsize(data->backing) + data->cy -
|
py--;
|
||||||
data->oy;
|
|
||||||
px = window_copy_find_length(wme, py);
|
px = window_copy_find_length(wme, py);
|
||||||
|
|
||||||
/* Stop if separator at EOL. */
|
/* Stop if separator at EOL. */
|
||||||
|
Loading…
Reference in New Issue
Block a user