mirror of
https://github.com/tmux/tmux.git
synced 2025-01-12 03:08:46 +00:00
Make next-word stop at beginning of word even if it is at the start of the
line, from Micah Cowan.
This commit is contained in:
parent
c164f5886f
commit
a61b8a2033
@ -1263,7 +1263,7 @@ window_copy_cursor_next_word(struct window_pane *wp, const char *separators)
|
||||
|
||||
py = screen_hsize(base_s) + data->cy - data->oy;
|
||||
xx = window_copy_find_length(wp, py);
|
||||
}
|
||||
} else
|
||||
px++;
|
||||
}
|
||||
|
||||
@ -1295,7 +1295,7 @@ window_copy_cursor_next_word_end(struct window_pane *wp, const char *separators)
|
||||
|
||||
py = screen_hsize(base_s) + data->cy - data->oy;
|
||||
xx = window_copy_find_length(wp, py);
|
||||
}
|
||||
} else
|
||||
px++;
|
||||
}
|
||||
|
||||
@ -1417,4 +1417,3 @@ window_copy_rectangle_toggle(struct window_pane *wp)
|
||||
window_copy_update_selection(wp);
|
||||
window_copy_redraw_screen(wp);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user