nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit f456794045ef35efb44aca80819bacd413aab7b6
parent 20971e8392b3d2c8597df757d2b3fb6ac015c113
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Sun,  8 Jul 2018 17:36:17 +0200

tweaks: adjust two comments, to be more accurate and general

Diffstat:
Msrc/text.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/text.c b/src/text.c @@ -639,7 +639,7 @@ void undo_cut(undo *u) else goto_line_posx(u->mark_begin_lineno, u->mark_begin_x); - /* If we cut the magicline, we may as well not crash. :/ */ + /* If nothing was actually cut, positioning the cursor was enough. */ if (!u->cutbuffer) return; @@ -656,7 +656,7 @@ void redo_cut(undo *u) goto_line_posx(u->lineno, u->begin); - /* If we cut the magicline, we may as well not crash. :/ */ + /* If nothing was actually cut, positioning the cursor was enough. */ if (!u->cutbuffer) return;