Commit 149781d8 authored by Chris Allegretta's avatar Chris Allegretta
Browse files

- cut.c:do_cut_text() - Fix incorrect cursor location when cutting long lines (David Benbennick)

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1389 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 5 additions and 2 deletions
+5 -2
......@@ -5,6 +5,10 @@ CVS Code -
two strings that had no actual words in them that
should be translated. Suggested originally by
Christian Rose.
- cut.c:
do_cut_text()
- Fix incorrect cursor location when cutting long lines
(David Benbennick).
- nano.c:
main()
- Call load_file with arg 0 for insert, as we aren't really
......
......@@ -279,12 +279,11 @@ int do_cut_text(void)
edittop = current;
renumber(current);
current_x = 0;
edit_refresh();
set_modified();
marked_cut = 0;
current_x = 0;
placewewant = 0;
reset_cursor();
SET(KEEP_CUTBUFFER);
return 1;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment