Function: projectile-update-mode-line-on-window-change
projectile-update-mode-line-on-window-change is a byte-compiled
function defined in projectile.el.
Signature
(projectile-update-mode-line-on-window-change)
Documentation
Update the mode-line when the window configuration changes.
This ensures the mode-line is correct in non-file buffers like
Magit that don't trigger find-file-hook.
Source Code
;; Defined in ~/.emacs.d/elpa/projectile-20260310.858/projectile.el
(defun projectile-update-mode-line-on-window-change ()
"Update the mode-line when the window configuration changes.
This ensures the mode-line is correct in non-file buffers like
Magit that don't trigger `find-file-hook'."
(when projectile-dynamic-mode-line
(unless (file-remote-p default-directory)
(projectile-update-mode-line))))