emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master c15c56d 033/108: Skip empty lines when indenting blocks


From: Artur Malabarba
Subject: [elpa] master c15c56d 033/108: Skip empty lines when indenting blocks
Date: Wed, 25 Mar 2015 18:38:57 +0000

branch: master
commit c15c56d8123bfc6ae2c5de55d36ed0d875cbd5ac
Author: Petr Machata <address@hidden>
Commit: Petr Machata <address@hidden>

    Skip empty lines when indenting blocks
---
 aggressive-indent.el |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/aggressive-indent.el b/aggressive-indent.el
index af6d2ac..e991ada 100644
--- a/aggressive-indent.el
+++ b/aggressive-indent.el
@@ -263,7 +263,7 @@ until nothing more happens."
       (indent-according-to-mode))
     ;; And then we indent each following line until nothing happens.
     (forward-line 1)
-    (while (/= (progn (skip-chars-forward "[:blank:]")
+    (while (/= (progn (skip-chars-forward "[:blank:]\n")
                       (point))
                (progn (indent-according-to-mode)
                       (point)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]