-
-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
git-gutter:hide-gutter
only respected if global-git-gutter-mode is active
#153
Comments
At first glance, it seems the logic is "if the mode isn't active then why would you need to reset anything?" Can you explain a little further what it is you're trying to do? |
Sure. I call That way I don't pay the cost of initializing it until I actually want to use it.
Why should one supported start mechanism work, but not the other? |
Ok, now I see. Well, I went back through the logs and found using the global mode forces the gutters to be displayed always, and has been that way since at least 2013. There used to be a setting called And in that change it seems to me, the intentional choice was made to continue with the rule that the global mode forces the display of the gutter. So given that this package has gone unchanged for a while, I'm reluctant to break compatibility or change default behavior right out of the gate. I agree it makes sense to optionally hide the gutter, so I'll look at ways to deprecate/transition to a new set of semantics without causing people too much disruption. |
Thanks! |
If you don't activate git-gutter by calling
(global-git-gutter-mode)
,git-gutter:hide-gutter
is not respected.This is because of the implementation of
git-gutter:reset-window-margin-p
, which explicitly ignores the variable ifglobal-git-gutter-mode
is not active.What is that logic intended to achieve? Is there a way of doing it that doesn't break
git-gutter:hide-gutter
?The text was updated successfully, but these errors were encountered: