in do_cut_text(), when uncutting text in the process of copying it,
always set placewewant, as do_uncut_text() does, so that the current line is always updated properly git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3907 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
152f57bf9c
commit
ab8c7162d3
|
@ -3,6 +3,11 @@ CVS code -
|
||||||
nstrncasecmp()
|
nstrncasecmp()
|
||||||
- When returning, use the "?" operator instead of an if/else
|
- When returning, use the "?" operator instead of an if/else
|
||||||
clause. (DLR)
|
clause. (DLR)
|
||||||
|
- cut.c:
|
||||||
|
do_cut_text()
|
||||||
|
- When uncutting text in the process of copying it, always set
|
||||||
|
placewewant, as do_uncut_text() does, so that the current line
|
||||||
|
is always updated properly.
|
||||||
- files.c:
|
- files.c:
|
||||||
input_tab()
|
input_tab()
|
||||||
- Since the field precision operator used in the sprintf() uses
|
- Since the field precision operator used in the sprintf() uses
|
||||||
|
|
|
@ -196,6 +196,10 @@ void do_cut_text(
|
||||||
copy_from_filestruct(cutbuffer, cutbottom);
|
copy_from_filestruct(cutbuffer, cutbottom);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Set the current place we want to where the text from the
|
||||||
|
* cutbuffer ends. */
|
||||||
|
openfile->placewewant = xplustabs();
|
||||||
|
|
||||||
/* Set NO_NEWLINES back to what it was before, since we're done
|
/* Set NO_NEWLINES back to what it was before, since we're done
|
||||||
* disturbing the text. */
|
* disturbing the text. */
|
||||||
if (!old_no_newlines)
|
if (!old_no_newlines)
|
||||||
|
|
Loading…
Reference in New Issue