problem where the screen won't be updated if (a) we're not on the first
page when we cut the line, and (b) immediately after we cut the line, we
hit End to move to the end of the line after it
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2504
35c25a1d-7b9e-4130-9fde-
d3aeb78583b8
search/replace history as "^P". This makes mouse clicks work
properly on it. Changes to shortcut_init(), help_init(),
nanogetstr(), and do_statusbar_input(). (DLR)
+- cut.c:
+ cut_line()
+ - Set placewewant properly after cutting a line, to avoid a
+ problem where the screen won't be updated if (a) we're not on
+ the first page when we cut the line, and (b) immediately after
+ we cut the line, we hit End to move to the end of the line
+ after it. (DLR)
- files.c:
load_open_file()
- Remove an unneeded clearok(FALSE). (DLR)
}
/* If we're not on the magicline, move all the text of the current line,
- * plus the newline at the end, to the cutbuffer. */
+ * plus the newline at the end, to the cutbuffer, and set the current
+ * place we want to where the line used to start. */
void cut_line(void)
{
- if (current->next != NULL)
+ if (current->next != NULL) {
move_to_filestruct(&cutbuffer, &cutbottom, current, 0,
current->next, 0);
+ placewewant = xplustabs();
+ }
}
#ifndef NANO_SMALL