punassuming / ranger.el

Bringing the goodness of ranger to dired!
699 stars 52 forks source link

hl-line-mode left enabled when ranger-show-literal=nil #171

Open jgkamat opened 6 years ago

jgkamat commented 6 years ago

If the configuration option:

(setq ranger-show-literal nil)

is set, hl-line-mode is left enabled on buffers after entering ranger.

  1. Open a file
  2. M-x ranger
  3. q
  4. hl-line-mode is now enabled on the file being viewed.

See https://github.com/ralesi/ranger.el/issues/13 as well.

jgkamat commented 6 years ago

This is because ranger-revert-appearance is not being run on buffers that are opened prior to ranger being run, because ranger-preview-buffers does not contain buffers opened before ranger starts.

Maybe a solution would be to keep track of buffers used as preview buffers and revert them if they are used.

jonmoore commented 4 years ago

Confirm this still occurs with a recent ranger, MELPA version 20200607.2002.