mirror of
https://github.com/tmux/tmux.git
synced 2026-10-14 15:04:50 +00:00
Add copy-mode -c to initialize the preferred cursor column
This commit is contained in:
@@ -614,6 +614,11 @@ window_copy_init(struct window_mode_entry *wme,
|
||||
window_copy_sync_snapshot(data, base->grid);
|
||||
|
||||
data->cx = cx;
|
||||
if (args_has(args, 'c')) {
|
||||
/* Start with a preferred column rather than end of line. */
|
||||
data->lastcx = cx;
|
||||
data->lastsx = cx + 1;
|
||||
}
|
||||
if (cy < screen_hsize(data->backing)) {
|
||||
data->cy = 0;
|
||||
data->oy = screen_hsize(data->backing) - cy;
|
||||
|
||||
Reference in New Issue
Block a user