branch: elpa/graphql-mode
commit 809464a700d43125c175c445e280d24312b5b819
Author: christopher floess <[email protected]>
Commit: christopher floess <[email protected]>

    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)))
 

Reply via email to