set placewewant more efficiently
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2523 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
9245f97960
commit
650b39c43d
|
@ -1025,12 +1025,12 @@ void do_gotolinecolumn(int line, ssize_t column, bool use_answer, bool
|
||||||
}
|
}
|
||||||
|
|
||||||
current_x = actual_x(current->data, column - 1);
|
current_x = actual_x(current->data, column - 1);
|
||||||
|
placewewant = column - 1;
|
||||||
|
|
||||||
/* If save_pos is TRUE, don't change the cursor position when
|
/* If save_pos is TRUE, don't change the cursor position when
|
||||||
* updating the edit window. */
|
* updating the edit window. */
|
||||||
edit_update(save_pos ? NONE : CENTER);
|
edit_update(save_pos ? NONE : CENTER);
|
||||||
|
|
||||||
placewewant = xplustabs();
|
|
||||||
display_main_list();
|
display_main_list();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue