From 149781d8270aec3146970a1095c8c59d5e50837c Mon Sep 17 00:00:00 2001 From: Chris Allegretta Date: Sun, 26 Jan 2003 03:54:00 +0000 Subject: [PATCH] - 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 --- ChangeLog | 4 ++++ cut.c | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 143a38b6..47f66f43 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 diff --git a/cut.c b/cut.c index 35a715c5..cf692a2c 100644 --- a/cut.c +++ b/cut.c @@ -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; }