mirror of git://git.sv.gnu.org/nano.git
cutting: with --cutfromcursor, allow ^K to cut the penultimate empty line
This fixes https://savannah.gnu.org/bugs/?57897.
Bug existed since version 4.0, commit 67873e96
.
This commit is contained in:
parent
b15c5a7eaf
commit
2fd6181873
|
@ -519,6 +519,7 @@ bool is_cuttable(bool test_cliff)
|
|||
(openfile->mark == openfile->current &&
|
||||
openfile->mark_x == openfile->current_x) ||
|
||||
(test_cliff && openfile->current->data[openfile->current_x] == '\0' &&
|
||||
openfile->current_x > 0 &&
|
||||
((ISSET(NO_NEWLINES) && openfile->current == openfile->filebot) ||
|
||||
(!ISSET(NO_NEWLINES) && openfile->current == openfile->filebot->prev))
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue