nano: update to 7.0
[feed/packages.git] / utils / nano / patches / 100-post-7.0-fix-commenting.patch
diff --git a/utils/nano/patches/100-post-7.0-fix-commenting.patch b/utils/nano/patches/100-post-7.0-fix-commenting.patch
new file mode 100644 (file)
index 0000000..a0fb94f
--- /dev/null
@@ -0,0 +1,18 @@
+--- a/src/nano.c
++++ b/src/nano.c
+@@ -1395,11 +1395,14 @@ bool changes_something(const void *f)
+ #ifndef NANO_TINY
+                       f == chop_previous_word || f == chop_next_word ||
+                       f == zap_text || f == cut_till_eof || f == do_execute ||
+-                      f == do_indent || f == do_unindent || f == do_comment ||
++                      f == do_indent || f == do_unindent ||
+ #endif
+ #ifdef ENABLE_JUSTIFY
+                       f == do_justify || f == do_full_justify ||
+ #endif
++#ifdef ENABLE_COMMENT
++                      f == do_comment ||
++#endif
+ #ifdef ENABLE_SPELLER
+                       f == do_spell ||
+ #endif