From 6745ff1323b4b507127f1e372b4e3a82f63e1e4d Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 21 May 2019 17:23:18 -0400 Subject: [PATCH] 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. --- modules/ui/vc-gutter/config.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ui/vc-gutter/config.el b/modules/ui/vc-gutter/config.el index 7bbfa70c7..b0c1a82f7 100644 --- a/modules/ui/vc-gutter/config.el +++ b/modules/ui/vc-gutter/config.el @@ -50,7 +50,7 @@ is deferred until the file is saved." ;; standardize default fringe width (if (fboundp 'fringe-mode) (fringe-mode '4)) :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) (add-hook 'focus-in-hook #'git-gutter:update-all-windows)