copying: do not forget to update the screen when M-6 is pressed
This fixes https://savannah.gnu.org/bugs/?58140.
Bug existed since commit f52b6cf1
from one week ago.
master
parent
5c3a22dbd6
commit
dba7a8a70a
|
@ -573,6 +573,7 @@ void copy_text(void)
|
||||||
bool at_eol = (openfile->current->data[openfile->current_x] == '\0');
|
bool at_eol = (openfile->current->data[openfile->current_x] == '\0');
|
||||||
bool sans_newline = (ISSET(NO_NEWLINES) && openfile->current->next == NULL);
|
bool sans_newline = (ISSET(NO_NEWLINES) && openfile->current->next == NULL);
|
||||||
size_t from_x = (ISSET(CUT_FROM_CURSOR)) ? openfile->current_x : 0;
|
size_t from_x = (ISSET(CUT_FROM_CURSOR)) ? openfile->current_x : 0;
|
||||||
|
linestruct *was_current = openfile->current;
|
||||||
linestruct *addition;
|
linestruct *addition;
|
||||||
|
|
||||||
if (openfile->mark || openfile->last_action != COPY || !keep_cutbuffer) {
|
if (openfile->mark || openfile->last_action != COPY || !keep_cutbuffer) {
|
||||||
|
@ -631,7 +632,7 @@ void copy_text(void)
|
||||||
} else
|
} else
|
||||||
openfile->current_x = strlen(openfile->current->data);
|
openfile->current_x = strlen(openfile->current->data);
|
||||||
|
|
||||||
openfile->placewewant = xplustabs();
|
edit_redraw(was_current, FLOWING);
|
||||||
|
|
||||||
openfile->last_action = COPY;
|
openfile->last_action = COPY;
|
||||||
keep_cutbuffer = TRUE;
|
keep_cutbuffer = TRUE;
|
||||||
|
|
Loading…
Reference in New Issue