punassuming / ranger.el

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

ranger-show-literal cause persisting header #115

Closed hiaw closed 8 years ago

hiaw commented 8 years ago

I set (setq ranger-show-literal t) so that it will have nice syntax highlighting by default as I go through the file list. It causes the following where the file path is constantly visible on the first line.

screenshot 2016-04-14 06 39 33

Reproduce:

punassuming commented 8 years ago

@hiaw, Fix is in to revert header-line-format when used.

hiaw commented 8 years ago

Confirm fix. Thanks.

rbugajewski commented 3 years ago

I use ranger-20210125.330 and I currently experience the same issue. Is there any information I can provide that would help with debugging?

rbugajewski commented 3 years ago

While not really a solution, a fast workaround is to kill the buffer from where you started ranger, as this is just a local variable, and other buffers aren’t affected.

rbugajewski commented 3 years ago

After investigating this issue, it is slightly different. I have (ranger-show-literal nil) in order to see previews, and the header line stays when I quit ranger. When I open a file as described in the original issue, the header line correctly reverts.

@ralesi Should I open another issue or is it part of this one as it is related to the header line not reverting?

rbugajewski commented 3 years ago

OK, it is slightly more complicated than I initially thought. When I launch ranger from certain major modes like vterm-mode or circe-mode the header line is correctly reverted, but when I launch ranger from org-mode it will stay after I quit ranger.