mirror of
https://github.com/tmux/tmux.git
synced 2024-12-14 02:48:47 +00:00
Sync OpenBSD patchset 647:
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
3f44ab2f0f
commit
f7646d2738
@ -1,4 +1,4 @@
|
|||||||
/* $Id: window-copy.c,v 1.103 2010-02-18 12:36:18 tcunha Exp $ */
|
/* $Id: window-copy.c,v 1.104 2010-02-18 12:38:24 tcunha Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||||
@ -1263,8 +1263,8 @@ window_copy_cursor_next_word(struct window_pane *wp, const char *separators)
|
|||||||
|
|
||||||
py = screen_hsize(base_s) + data->cy - data->oy;
|
py = screen_hsize(base_s) + data->cy - data->oy;
|
||||||
xx = window_copy_find_length(wp, py);
|
xx = window_copy_find_length(wp, py);
|
||||||
}
|
} else
|
||||||
px++;
|
px++;
|
||||||
}
|
}
|
||||||
|
|
||||||
window_copy_update_cursor(wp, px, data->cy);
|
window_copy_update_cursor(wp, px, data->cy);
|
||||||
@ -1295,8 +1295,8 @@ window_copy_cursor_next_word_end(struct window_pane *wp, const char *separators)
|
|||||||
|
|
||||||
py = screen_hsize(base_s) + data->cy - data->oy;
|
py = screen_hsize(base_s) + data->cy - data->oy;
|
||||||
xx = window_copy_find_length(wp, py);
|
xx = window_copy_find_length(wp, py);
|
||||||
}
|
} else
|
||||||
px++;
|
px++;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Find the end of this word. */
|
/* Find the end of this word. */
|
||||||
@ -1417,4 +1417,3 @@ window_copy_rectangle_toggle(struct window_pane *wp)
|
|||||||
window_copy_update_selection(wp);
|
window_copy_update_selection(wp);
|
||||||
window_copy_redraw_screen(wp);
|
window_copy_redraw_screen(wp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user