You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a work-around, but what it does is disable 'visual-line-mode' while 'git-gutter-mode' is active, so it isn't a perfect solution. If @farynaio and @purcell approve, I'll prepare it as a PR, but the code looks like this:
(make-variable-buffer-local 'git-gutter:visual-line)
(defun git-gutter-visual-line ()
"Hook function for interoperability.
Package 'git-gutter' doesn't play with 'visual-line-mode', so we
disable that mode while 'git-gutter' is active."
(cond
(git-gutter-mode
(setq git-gutter:visual-line visual-line-mode)
(visual-line-mode -1))
(t
(visual-line-mode git-gutter:visual-line))))
(add-to-list 'git-gutter-mode-on-hook 'git-gutter-visual-line)
(add-to-list 'git-gutter-mode-off-hook 'git-gutter-visual-line)
My opinion is that this bug is pretty important because my first attempts to use this package were in org-mode with visual-line-mode enabled and if it weren't a slow off-day, I wouldn't have bothered with the frustration , and would have just rejected the package.
I found git-gutter don't work with visual-fill-column-mode.
Is there any way to work around this?
The text was updated successfully, but these errors were encountered: