Fix #4027: tab not invoking emmet at EOB
This commit is contained in:
parent
f335d4294a
commit
0e7d5b5490
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue