Commits

Ivan Andrus  committed 13ba059

Make sure whizzy-narrow-to-tikz returns non-nil if narrowed at all

  • Participants
  • Parent commits 204c96e

Comments (0)

Files changed (1)

File whizzy-tikz.el

       (let* ((b1 (save-excursion
                    (beginning-of-line)
                    (when (search-backward ";" nil t)
-                       (forward-char 1))
+                     (forward-char 1))
                    (point)))
              (e1 (save-excursion
                    (beginning-of-line)
                      ;; Not guaranteed to work since might have
                      ;; semicolon in node name etc.
                      (point)))))
-        (narrow-to-region b1 e2)))))
+        (narrow-to-region b1 e2))
+      t)))
 
 (defun whizzy-tikz-strip-trailing-zeros (string)
   "Return STRING stripped of trailing zeros and periods."