Fix #4027: tab not invoking emmet at EOB

This commit is contained in:
Henrik Lissner 2020-10-05 15:35:28 -04:00
parent f335d4294a
commit 0e7d5b5490
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -124,7 +124,8 @@ snippet, or `emmet-expand-yas'/`emmet-expand-line', depending on whether
(call-interactively (call-interactively
(cond ((or (<= (current-column) (current-indentation)) (cond ((or (<= (current-column) (current-indentation))
(not (eolp)) (not (eolp))
(not (memq (char-after) (list ?\n ?\s ?\t)))) (not (or (memq (char-after) (list ?\n ?\s ?\t))
(eobp))))
#'indent-for-tab-command) #'indent-for-tab-command)
((bound-and-true-p yas-minor-mode) ((bound-and-true-p yas-minor-mode)
(if (yas--templates-for-key-at-point) (if (yas--templates-for-key-at-point)