Update of /cvsroot/tmux/tmux
In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv23313

Modified Files:
        window-copy.c 
Log Message:
Make double start-of-line do what double end-of-line does, on wrapped lines.


Index: window-copy.c
===================================================================
RCS file: /cvsroot/tmux/tmux/window-copy.c,v
retrieving revision 1.117
retrieving revision 1.118
diff -u -d -r1.117 -r1.118
--- window-copy.c       22 May 2010 21:56:04 -0000      1.117
+++ window-copy.c       5 Jun 2010 07:48:35 -0000       1.118
@@ -1383,7 +1383,17 @@
 window_copy_cursor_start_of_line(struct window_pane *wp)
 {
        struct window_copy_mode_data    *data = wp->modedata;
+       struct screen                   *back_s = data->backing;
+       struct grid                     *gd = back_s->grid;
+       u_int                            py;
 
+       if (data->cx == 0) {
+               py = screen_hsize(back_s) + data->cy - data->oy;
+               while (py > 0 && gd->linedata[py-1].flags & GRID_LINE_WRAPPED) {
+                       window_copy_cursor_up(wp, 0);
+                       py = screen_hsize(back_s) + data->cy - data->oy;
+               }
+       }
        window_copy_update_cursor(wp, 0, data->cy);
        if (window_copy_update_selection(wp))
                window_copy_redraw_lines(wp, data->cy, 1);


------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
tmux-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-cvs

Reply via email to