nano (2.0.7-4) ja_help_freeze.patch

Summary

 src/text.c |    9 +++++++++
 1 file changed, 9 insertions(+)

    
download this patch

Patch contents

--- nano-2.0.7/src/text.c	2007-12-18 10:28:53.000000000 +0900
+++ nano-2.0.7/src/text.c	2008-03-13 21:08:28.000000000 +0900
@@ -800,6 +800,15 @@
 	/* In fact, the whole line displays shorter than goal. */
 	return cur_loc;
 
+#ifndef DISABLE_HELP
+    if (newline && blank_loc <= 0) {
+       /* If blank was not found or was found only in the first character,
+        * force line break. */
+       cur_loc -= line_len;
+       return cur_loc;
+    }
+#endif
+
     if (blank_loc == -1) {
 	/* No blank was found that was short enough. */
 	bool found_blank = FALSE;