Fix the cursor setting when a snippet is available

This commit is contained in:
2017-09-25 11:07:02 +02:00
parent 535617dde3
commit 88db7d8ee6
2 changed files with 3 additions and 2 deletions

View File

@@ -1250,7 +1250,8 @@ INFO plist."
(helm-execute-persistent-action)
(insert "/")))
(setq default-cursor-color (frame-parameter nil 'cursor-colbxuor))
;; TODO: 'cursor-color is sometimes nil, but why?
(setq default-cursor-color (or (frame-parameter nil 'cursor-color) "#ffd85c"))
(setq yasnippet-can-fire-cursor-color "purple")
;; It will test whether it can expand, if yes, cursor color -> purple.