build: fix compilation when configured with --enable-tiny
parent
1a2c9044d7
commit
f3624b1b87
|
@ -415,9 +415,12 @@ void do_snip(bool marked, bool until_eof, bool append)
|
||||||
{
|
{
|
||||||
linestruct *line = openfile->current;
|
linestruct *line = openfile->current;
|
||||||
|
|
||||||
|
#ifndef NANO_TINY
|
||||||
|
keep_cutbuffer &= (openfile->last_action != COPY);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* If cuts were not continuous, or when cutting a region, clear the slate. */
|
/* If cuts were not continuous, or when cutting a region, clear the slate. */
|
||||||
if ((!keep_cutbuffer || marked || until_eof ||
|
if ((marked || until_eof || !keep_cutbuffer) && !append) {
|
||||||
openfile->last_action == COPY) && !append) {
|
|
||||||
free_lines(cutbuffer);
|
free_lines(cutbuffer);
|
||||||
cutbuffer = NULL;
|
cutbuffer = NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue