commit f3624b1b87a5a2c9c9aec7f7e2e908a7d651c9cc parent 1a2c9044d7d98a79d55e5657aa1df07a3782057c Author: Benno Schulenberg <bensberg@telfort.nl> Date: Fri, 3 Apr 2020 17:12:28 +0200 build: fix compilation when configured with --enable-tiny Diffstat:
M | src/cut.c | | | 7 | +++++-- |
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/cut.c b/src/cut.c @@ -415,9 +415,12 @@ void do_snip(bool marked, bool until_eof, bool append) { 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 ((!keep_cutbuffer || marked || until_eof || - openfile->last_action == COPY) && !append) { + if ((marked || until_eof || !keep_cutbuffer) && !append) { free_lines(cutbuffer); cutbuffer = NULL; }