ui/vc-gutter: resize git-gutter popup to fit

Due to the prompt, you can't scroll the git-gutter popup, making it
difficult to see the full diff. This isn't a perfect fix but at least
improves the situation.
This commit is contained in:
Henrik Lissner 2019-05-21 17:23:18 -04:00
parent 9f45197a0b
commit 6745ff1323
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395

View File

@ -50,7 +50,7 @@ is deferred until the file is saved."
;; standardize default fringe width ;; standardize default fringe width
(if (fboundp 'fringe-mode) (fringe-mode '4)) (if (fboundp 'fringe-mode) (fringe-mode '4))
:config :config
(set-popup-rule! "^\\*git-gutter" :select nil) (set-popup-rule! "^\\*git-gutter" :select nil :size '+popup-shrink-to-fit)
;; Update git-gutter on focus (in case I was using git externally) ;; Update git-gutter on focus (in case I was using git externally)
(add-hook 'focus-in-hook #'git-gutter:update-all-windows) (add-hook 'focus-in-hook #'git-gutter:update-all-windows)