- 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-d3aeb78583b8master
parent
beca0eb699
commit
149781d827
|
@ -5,6 +5,10 @@ CVS Code -
|
||||||
two strings that had no actual words in them that
|
two strings that had no actual words in them that
|
||||||
should be translated. Suggested originally by
|
should be translated. Suggested originally by
|
||||||
Christian Rose.
|
Christian Rose.
|
||||||
|
- cut.c:
|
||||||
|
do_cut_text()
|
||||||
|
- Fix incorrect cursor location when cutting long lines
|
||||||
|
(David Benbennick).
|
||||||
- nano.c:
|
- nano.c:
|
||||||
main()
|
main()
|
||||||
- Call load_file with arg 0 for insert, as we aren't really
|
- Call load_file with arg 0 for insert, as we aren't really
|
||||||
|
|
3
cut.c
3
cut.c
|
@ -279,12 +279,11 @@ int do_cut_text(void)
|
||||||
edittop = current;
|
edittop = current;
|
||||||
|
|
||||||
renumber(current);
|
renumber(current);
|
||||||
|
current_x = 0;
|
||||||
edit_refresh();
|
edit_refresh();
|
||||||
set_modified();
|
set_modified();
|
||||||
marked_cut = 0;
|
marked_cut = 0;
|
||||||
current_x = 0;
|
|
||||||
placewewant = 0;
|
placewewant = 0;
|
||||||
reset_cursor();
|
|
||||||
SET(KEEP_CUTBUFFER);
|
SET(KEEP_CUTBUFFER);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue