Hi,

On Wed, May 23, 2012 at 11:34:52AM -0400, Ben Boeckel wrote:
> Hi,
> 
> When making a block selection, it appears as though the x position is
> not properly remembered when '$' is used.

This is related to this change:

commit c87e6bb9218cabee91cbc58be850f56bd65e11af
Author: tcunha <tcunha@303bd1e2-03bb-47f1-b221-2a0928954661>
Date:   Sun Mar 18 01:35:39 2012 +0000

    Sync OpenBSD patchset 1046:

diff --git a/trunk/window-copy.c b/trunk/window-copy.c
index a8b7d25..3ba650e 100644
--- a/trunk/window-copy.c
+++ b/trunk/window-copy.c
@@ -1629,7 +1629,7 @@ window_copy_cursor_up(struct window_pane *wp, int 
scroll_only)

        oy = screen_hsize(data->backing) + data->cy - data->oy;
        ox = window_copy_find_length(wp, oy);
-       if (ox != 0) {
+       if (data->cx != ox) {
                data->lastcx = data->cx;
                data->lastsx = ox;
        }
@@ -1671,7 +1671,7 @@ window_copy_cursor_down(struct window_pane *wp, int 
scroll_only)

        oy = screen_hsize(data->backing) + data->cy - data->oy;
        ox = window_copy_find_length(wp, oy);
-       if (ox != 0) {
+       if (data->cx != ox) {
                data->lastcx = data->cx;
                data->lastsx = ox;
        }

Does reverting this fix it for you?  (I'm only reading the code here; not
actually tried this.)

It might be worthwhile checking data->rectflag or somesuch, and
conditionally only turn on the feature this patch addresses if _not_ in
rectangle mode.  Not sure.

-- Thomas Adam

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to