[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/graphql-mode 809464a700 2/4: Don't use loop to navigate co
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/graphql-mode 809464a700 2/4: Don't use loop to navigate code |
Date: |
Sat, 16 Jul 2022 04:58:34 -0400 (EDT) |
branch: elpa/graphql-mode
commit 809464a700d43125c175c445e280d24312b5b819
Author: christopher floess <chris.floess@mailbox.org>
Commit: christopher floess <chris.floess@mailbox.org>
Don't use loop to navigate code
---
graphql-mode.el | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/graphql-mode.el b/graphql-mode.el
index 19b584ee91..874729a0aa 100644
--- a/graphql-mode.el
+++ b/graphql-mode.el
@@ -284,8 +284,7 @@ Please install it and try again."))
(column)
(indent-pos))
(save-excursion
- (while (> (car (syntax-ppss (point-at-bol))) 0)
- (forward-line -1))
+ (goto-char (syntax-ppss-toplevel-pos (syntax-ppss (point-at-bol))))
(back-to-indentation)
(setq column (current-column)))