From 0e7d5b54906071a1dfa768520df1f0bc9aeac8b6 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 5 Oct 2020 15:35:28 -0400 Subject: [PATCH] Fix #4027: tab not invoking emmet at EOB --- modules/lang/web/autoload/html.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/lang/web/autoload/html.el b/modules/lang/web/autoload/html.el index 7956eff09..e605255de 100644 --- a/modules/lang/web/autoload/html.el +++ b/modules/lang/web/autoload/html.el @@ -124,7 +124,8 @@ snippet, or `emmet-expand-yas'/`emmet-expand-line', depending on whether (call-interactively (cond ((or (<= (current-column) (current-indentation)) (not (eolp)) - (not (memq (char-after) (list ?\n ?\s ?\t)))) + (not (or (memq (char-after) (list ?\n ?\s ?\t)) + (eobp)))) #'indent-for-tab-command) ((bound-and-true-p yas-minor-mode) (if (yas--templates-for-key-at-point)