Skip to content

Commit 8a28276

Browse files
BrachystochroneSDSamuel D
andauthored
fix: Follow indent cleaning (#141)
`(line-beginning-position)` and `(point)` work with character (tab = 1 character) but `(current-indenantion)` give the column number of the indenantion (tab = 4 columns) Using `(current-indentation)` and `(current-indentation)` is cleaner and use the same convention of "column numbering" Co-authored-by: Samuel D <[email protected]>
1 parent 3e2ae19 commit 8a28276

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

gdscript-indent-and-nav.el

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -347,11 +347,7 @@ to the maximum available level. When indentation is the minimum
347347
possible and PREVIOUS is non-nil, cycle back to the maximum
348348
level."
349349
(let ((follow-indentation-p
350-
;; Check if point is within indentation.
351-
(and (<= (line-beginning-position) (point))
352-
(>= (+ (line-beginning-position)
353-
(current-indentation))
354-
(point)))))
350+
(<= (current-column) (current-indentation))))
355351
(save-excursion
356352
(indent-line-to
357353
(gdscript-indent-calculate-indentation previous))

0 commit comments

Comments
 (0)