|
@@ -1848,7 +1848,8 @@ window_copy_cursor_down(struct window_pane *wp, int scroll_only) |
|
|
{ |
|
|
struct window_copy_mode_data *data = wp->modedata; |
|
|
struct screen *s = &data->screen; |
|
|
u_int ox, oy, px, py; |
|
|
u_int scrolled_past_bottom = 0; |
|
|
u_int ox, oy, px, py; |
|
|
|
|
|
oy = screen_hsize(data->backing) + data->cy - data->oy; |
|
|
ox = window_copy_find_length(wp, oy); |
|
@@ -1862,6 +1863,8 @@ window_copy_cursor_down(struct window_pane *wp, int scroll_only) |
|
|
|
|
|
data->cx = data->lastcx; |
|
|
if (scroll_only || data->cy == screen_size_y(s) - 1) { |
|
|
scrolled_past_bottom = data->oy == 0; |
|
|
|
|
|
window_copy_scroll_up(wp, 1); |
|
|
if (scroll_only && data->cy > 0) |
|
|
window_copy_redraw_lines(wp, data->cy - 1, 2); |
|
@@ -1883,6 +1886,11 @@ window_copy_cursor_down(struct window_pane *wp, int scroll_only) |
|
|
window_copy_cursor_end_of_line(wp); |
|
|
else if (s->sel.lineflag == LINE_SEL_RIGHT_LEFT) |
|
|
window_copy_cursor_start_of_line(wp); |
|
|
|
|
|
if (scrolled_past_bottom && !s->sel.flag && |
|
|
s->sel.lineflag == LINE_SEL_NONE && |
|
|
options_get_number(&wp->window->options, "exit-copy-past-bottom")) |
|
|
window_pane_reset_mode(wp); |
|
|
} |
|
|
|
|
|
void |
|
|
This comment has been minimized.
Have you opened a PR with this patch?
This comment has been minimized.
Is your PR merged?
This comment has been minimized.
Your PR still not be merged?
And I can not visit your homebrew formula with:
brew install https://raw.githubusercontent.com/dv/dotfiles/master/tmux/tmux.rb
This comment has been minimized.
@dv Any chance you will submit this as a patch to tmux?