]> git.wh0rd.org Git - nano.git/commitdiff
fix mouse support breakage
authorDavid Lawrence Ramsey <pooka109@gmail.com>
Mon, 25 Jul 2005 20:08:18 +0000 (20:08 +0000)
committerDavid Lawrence Ramsey <pooka109@gmail.com>
Mon, 25 Jul 2005 20:08:18 +0000 (20:08 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2930 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

src/nano.c

index e923150a2bbe21d215986774cfcbd9ae154f8af1..0d0c23ea1fe3d2933d0fe0f2849a7f762a997c52 100644 (file)
@@ -1743,9 +1743,9 @@ bool do_mouse(void)
                openfile->current->prev != NULL; openfile->current_y--)
                openfile->current = openfile->current->prev;
 
-           openfile->placewewant = xplustabs();
            openfile->current_x = actual_x(openfile->current->data,
-               get_page_start(openfile->placewewant + mouse_x));
+               get_page_start(xplustabs() + mouse_x));
+           openfile->placewewant = xplustabs();
 
 #ifndef NANO_SMALL
            /* Clicking where the cursor is toggles the mark, as does