Fix jumpy cursor in org tables when using evil-replace
This commit is contained in:
parent
ff3f18ccaf
commit
5948a52a38
1 changed files with 3 additions and 2 deletions
|
@ -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 _)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue