evil-collection-magit-toggle-text-mode currently doesn't work in git-rebase-mode buffers, as the cond checks only for 'magit-mode. Thus the function just shows the error "evil-collection-magit-toggle-text-mode unexpected state" if invoked in a git-rebase-mode buffer. The C-t and \ bindings are also not set while in this mode.
These changes make evil-collection-magit-toggle-text-mode also work in git-rebase-mode, and set up the same key bindings in this mode. Because git-rebase-mode also enables read-only-mode in the buffer, we need to disable that too when switching to text-mode.
evil-collection-magit-toggle-text-mode
currently doesn't work ingit-rebase-mode
buffers, as thecond
checks only for'magit-mode
. Thus the function just shows the error "evil-collection-magit-toggle-text-mode unexpected state" if invoked in agit-rebase-mode
buffer. TheC-t
and\
bindings are also not set while in this mode.These changes make
evil-collection-magit-toggle-text-mode
also work ingit-rebase-mode
, and set up the same key bindings in this mode. Becausegit-rebase-mode
also enablesread-only-mode
in the buffer, we need to disable that too when switching totext-mode
.