]> git.wh0rd.org Git - nano.git/commitdiff
set placewewant more efficiently
authorDavid Lawrence Ramsey <pooka109@gmail.com>
Tue, 17 May 2005 18:15:00 +0000 (18:15 +0000)
committerDavid Lawrence Ramsey <pooka109@gmail.com>
Tue, 17 May 2005 18:15:00 +0000 (18:15 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2523 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

src/search.c

index d52165c3e7474baac5090a44ccc9069d4e112ac7..b331c489a8a6b755f4fe820a915f1830c4a441fd 100644 (file)
@@ -1025,12 +1025,12 @@ void do_gotolinecolumn(int line, ssize_t column, bool use_answer, bool
     }
 
     current_x = actual_x(current->data, column - 1);
+    placewewant = column - 1;
 
     /* If save_pos is TRUE, don't change the cursor position when
      * updating the edit window. */
     edit_update(save_pos ? NONE : CENTER);
 
-    placewewant = xplustabs();
     display_main_list();
 }