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

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

[nongnu] elpa/typescript-mode f72826e564 036/222: Merge pull request #25


From: ELPA Syncer
Subject: [nongnu] elpa/typescript-mode f72826e564 036/222: Merge pull request #25 from ananthakumaran/revert-24-wrong-cursor-position
Date: Sun, 6 Feb 2022 16:59:06 -0500 (EST)

branch: elpa/typescript-mode
commit f72826e564dc9d7b60dd9df3c6337f33b02560bf
Merge: d5c4fb27c8 90d9758cfb
Author: Anantha Kumaran <ananthakumaran@gmail.com>
Commit: GitHub <noreply@github.com>

    Merge pull request #25 from ananthakumaran/revert-24-wrong-cursor-position
    
    Revert "Fix wrong cursor position in `typescript-indent-line`"
---
 typescript-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/typescript-mode.el b/typescript-mode.el
index 530834f86f..ba2919decc 100644
--- a/typescript-mode.el
+++ b/typescript-mode.el
@@ -1769,7 +1769,7 @@ nil."
     (widen)
     (let* ((parse-status
             (save-excursion (syntax-ppss (point-at-bol))))
-           (offset (- (point) (line-beginning-position) 
(current-indentation))))
+           (offset (- (current-column) (current-indentation))))
       (indent-line-to (typescript--proper-indentation parse-status))
       (when (> offset 0) (forward-char offset)))))
 



reply via email to

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