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

    Fix corner-case with thing-at-point
---
 aggressive-indent.el |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/aggressive-indent.el b/aggressive-indent.el
index 140cf25..c23122b 100644
--- a/aggressive-indent.el
+++ b/aggressive-indent.el
@@ -170,7 +170,7 @@ commands will NOT be followed by a re-indent."
     (region-active-p)
     buffer-read-only
     (null (buffer-modified-p))
-    (string-match "\\`[[:blank:]]*\n?\\'" (thing-at-point 'line))
+    (string-match "\\`[[:blank:]]*\n?\\'" (or (thing-at-point 'line) ""))
     (and (not aggressive-indent-comments-too)
          (aggressive-indent--in-comment-p))
     (aggressive-indent--in-string-p))

Reply via email to