mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
lang/org: fix void-variable error upon backspace in tables #472
This commit is contained in:
@ -290,12 +290,12 @@ with `org-cycle'). Also:
|
|||||||
(save-match-data
|
(save-match-data
|
||||||
(when (and (org-at-table-p)
|
(when (and (org-at-table-p)
|
||||||
(not (org-region-active-p))
|
(not (org-region-active-p))
|
||||||
(string-match "|" (buffer-substring (point-at-bol) (point)))
|
(string-match-p "|" (buffer-substring (point-at-bol) (point)))
|
||||||
(looking-at ".*?|"))
|
(looking-at-p ".*?|"))
|
||||||
(let ((pos (point))
|
(let ((pos (point))
|
||||||
(noalign (looking-at "[^|\n\r]* |"))
|
(noalign (looking-at-p "[^|\n\r]* |"))
|
||||||
(c org-table-may-need-update))
|
(c org-table-may-need-update))
|
||||||
(delete-char n)
|
(delete-char 1)
|
||||||
(unless overwrite-mode
|
(unless overwrite-mode
|
||||||
(skip-chars-forward "^|")
|
(skip-chars-forward "^|")
|
||||||
(insert " ")
|
(insert " ")
|
||||||
|
Reference in New Issue
Block a user