On 2015-01-19 23:31 +0100, Thomas Egerer wrote:
> Unfortunately the copy-line mode does not give this option. It
> preselects the whole line from start to end (including \n in vi mode)
> and copies it to a buffer.
I actually did not know about this feature! It does sound quite nice and
yes, I get your point now: if that also copies the newline, then that's
annoying. I'm happy not having newline there for this command.
Do you have a patch around? I'm thinking something along the lines of
case MODEKEYCOPY_COPYLINE:
window_copy_cursor_start_of_line(wp);
/* FALLTHROUGH */
case MODEKEYCOPY_COPYENDOFLINE:
window_copy_start_selection(wp);
for (; np > 1; np--)
window_copy_cursor_down(wp, 0);
+ if (/*emacs mode*/) {
- window_copy_cursor_end_of_line(wp);
+ window_copy_cursor_end_of_line(wp);
+ } else if (/*vi mode*/) {
+ /*copy without the newline*/
+ }
window_copy_redraw_screen(wp);
Would that work?
--
Balazs
------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
tmux-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-users