mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Fix jumpy cursor in org tables when using evil-replace
This commit is contained in:
@ -307,10 +307,11 @@ wrong places)."
|
||||
(defun +org|realign-table-maybe ()
|
||||
"Auto-align table under cursor and re-calculate formulas."
|
||||
(when (and (org-at-table-p) org-table-may-need-update)
|
||||
(save-excursion
|
||||
(let ((pt (point)))
|
||||
(quiet!
|
||||
(org-table-recalculate)
|
||||
(if org-table-may-need-update (org-table-align))))))
|
||||
(if org-table-may-need-update (org-table-align)))
|
||||
(goto-char pt))))
|
||||
|
||||
;;;###autoload
|
||||
(defun +org*realign-table-maybe (&rest _)
|
||||
|
Reference in New Issue
Block a user