Skip to content

Commit

Permalink
fix: Avoid recursive
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed Mar 16, 2024
1 parent d59bf32 commit bbbe7fe
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions vsc-edit-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,9 @@
(ignore-errors (yas-next-field-or-maybe-expand) t))
(if (or (vsc-edit-prog-mode-p) vsc-edit-insert-tab-on-tab)
(vsc-edit-smart-tab)
(execute-kbd-macro (kbd "TAB")))))
(if (equal last-command #'vsc-edit-tab)
(funcall-interactively (local-key-binding (kbd "TAB")))
(execute-kbd-macro (kbd "TAB"))))))

(defun vsc-edit-smart-shift-tab ()
"`prog-mode' shift tab."
Expand All @@ -407,7 +409,9 @@
(interactive)
(if (vsc-edit-prog-mode-p)
(vsc-edit-smart-shift-tab)
(execute-kbd-macro [S-tab])))
(if (equal last-command #'vsc-edit-shift-tab)
(funcall-interactively (local-key-binding [S-tab]))
(execute-kbd-macro [S-tab]))))

;;
;; (@* "BOL and EOL" )
Expand Down

0 comments on commit bbbe7fe

Please sign in to comment.