branch: master
commit 7762250551e9409b5f431d46c66c85957d71dffc
Author: Artur Malabarba <bruce.connor...@gmail.com>
Commit: Artur Malabarba <bruce.connor...@gmail.com>

    Don't indent on empty line.
---
 aggressive-indent.el |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/aggressive-indent.el b/aggressive-indent.el
index 32dfa8e..af6d2ac 100644
--- a/aggressive-indent.el
+++ b/aggressive-indent.el
@@ -127,7 +127,8 @@ commands will NOT be followed by a re-indent."
   '((memq this-command aggressive-indent-protected-commands)
     (region-active-p)
     buffer-read-only
-    (null (buffer-modified-p)))
+    (null (buffer-modified-p))
+    (string-match "\\`[[:blank:]]*\n?\\'" (thing-at-point 'line)))
   "List of forms which prevent indentation when they evaluate to non-nil.
 This is for internal use only. For user customization, use
 `aggressive-indent-dont-indent-if' instead.")

Reply via email to