From c35e351dd0f0b26a23ac3d91a672fa3dc5d62e51 Mon Sep 17 00:00:00 2001
From: David Lawrence Ramsey <pooka109@gmail.com>
Date: Mon, 25 Jul 2005 20:08:18 +0000
Subject: [PATCH] fix mouse support breakage

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2930 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
---
 src/nano.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/nano.c b/src/nano.c
index e923150a..0d0c23ea 100644
--- a/src/nano.c
+++ b/src/nano.c
@@ -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
-- 
GitLab