mirror of
git://git.sv.gnu.org/nano.git
synced 2025-02-03 06:57:58 +03:00
copying: make M-6 do nothing when at end of buffer
This commit is contained in:
parent
e5831f81bb
commit
0c561f0325
@ -408,6 +408,10 @@ void do_copy_text(void)
|
||||
ssize_t is_current_lineno = openfile->current->lineno;
|
||||
size_t is_current_x = openfile->current_x;
|
||||
|
||||
/* If there is nothing to copy, don't even try. */
|
||||
if (openfile->current->next == NULL && openfile->current->data[0] == '\0')
|
||||
return;
|
||||
|
||||
if (mark_is_set || openfile->current != next_contiguous_line)
|
||||
keep_cutbuffer = FALSE;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user