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

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

[nongnu] elpa/go-mode 95c9519 049/495: when searching for anchor for ind


From: ELPA Syncer
Subject: [nongnu] elpa/go-mode 95c9519 049/495: when searching for anchor for indentation, do not limit search to one line
Date: Sat, 7 Aug 2021 09:04:41 -0400 (EDT)

branch: elpa/go-mode
commit 95c9519fb9e010df8e9aa91d5925a84a1f97d424
Author: Dominik Honnef <dominikh@fork-bomb.org>
Commit: Dominik Honnef <dominikh@fork-bomb.org>

    when searching for anchor for indentation, do not limit search to one line
    
    Closes gh-11
---
 go-mode.el | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/go-mode.el b/go-mode.el
index eca059c..777ccc4 100644
--- a/go-mode.el
+++ b/go-mode.el
@@ -174,14 +174,11 @@ built-ins, functions, and some types.")
                   (current-indentation)
                 (+ (current-indentation) tab-width))
             (go--backward-irrelevant)
-            (if (go-previous-line-has-dangling-op-p)
-                (setq outindent tab-width))
             (setq line-begin (line-beginning-position))
             (while (and
                     (not (bobp))
-                    (> (point) line-begin)
                     (>= (go-paren-level) start-nesting))
-              (if (= 0 (skip-chars-backward "^[]{}()" line-begin))
+              (if (= 0 (skip-chars-backward "^[]{}()"))
                   (backward-char))
               (if (go-in-string-p)
                   (progn



reply via email to

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