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

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

[nongnu] elpa/sweeprolog ecf601dd54 133/166: FIXED: indentation error wh


From: ELPA Syncer
Subject: [nongnu] elpa/sweeprolog ecf601dd54 133/166: FIXED: indentation error when typing at end of buffer
Date: Fri, 30 Sep 2022 04:59:32 -0400 (EDT)

branch: elpa/sweeprolog
commit ecf601dd549ad33524ad8795d46c43b45dd20ea6
Author: Eshel Yaron <me@eshelyaron.com>
Commit: Eshel Yaron <me@eshelyaron.com>

    FIXED: indentation error when typing at end of buffer
---
 sweep.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/sweep.el b/sweep.el
index 9291e97b75..9aa586882a 100644
--- a/sweep.el
+++ b/sweep.el
@@ -6,7 +6,7 @@
 ;; Maintainer: Eshel Yaron <me(at)eshelyaron(dot)com>
 ;; Keywords: prolog languages extensions
 ;; URL: https://git.sr.ht/~eshel/sweep
-;; Package-Version: 0.3.1
+;; Package-Version: 0.3.2
 ;; Package-Requires: ((emacs "28"))
 
 ;; This file is NOT part of GNU Emacs.
@@ -1356,7 +1356,8 @@ Interactively, a prefix arg means to prompt for BUFFER."
     (back-to-indentation)
     (let ((indent (if (nth 8 (syntax-ppss))
                       'noindent
-                    (if-let ((open (and (= (char-syntax (char-after)) ?\))
+                    (if-let ((open (and (not (eobp))
+                                        (= (char-syntax (char-after)) ?\))
                                         (nth 1 (syntax-ppss)))))
                         (save-excursion
                           (goto-char open)



reply via email to

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