Source

text-modes / filladapt.el

Diff from to

filladapt.el

 If `sentence-end-double-space' is non-nil, then period followed by one
 space does not end a sentence, so don't break a line there."
   (interactive "*r\nP")
+
+  ;; ensure beg <= end as in core version of fill-region
+  (let ((newbeg (min beg end))
+        (newend (max beg end)))
+    (setq beg newbeg)
+    (setq end newend))
+
   (if (and filladapt-mode (not filladapt-inside-filladapt))
       (save-restriction
 	(narrow-to-region beg end)