branch: elpa/typescript-mode
commit f72826e564dc9d7b60dd9df3c6337f33b02560bf
Merge: d5c4fb27c8 90d9758cfb
Author: Anantha Kumaran <[email protected]>
Commit: GitHub <[email protected]>

    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