Replace obsolete functions/commands
This commit is contained in:
parent
ed2e7a65f6
commit
e204df3c05
9 changed files with 11 additions and 11 deletions
|
@ -10,7 +10,7 @@ and switches to insert mode if there are editable fields."
|
|||
(cl-letf (((symbol-function 'region-beginning) (lambda () evil-visual-beginning))
|
||||
((symbol-function 'region-end) (lambda () evil-visual-end)))
|
||||
(yas-insert-snippet))
|
||||
(when-let (snippet (car-safe (yas--snippets-at-point)))
|
||||
(when-let (snippet (car-safe (yas-active-snippets)))
|
||||
(let ((fields (yas--snippet-fields snippet)))
|
||||
(evil-insert-state +1)
|
||||
(unless fields (evil-change-state 'normal)))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue