Closed katspaugh closed 7 years ago
There's some weird behavior when the opened file is in a subdirectory, though:
Is it related to pe/hl-line-range
?
IDK, have you tried removing it?
Also, the return value is important. At the moment it's discarded.
Yes, if I remove pe/hl-line-range
, the problem is gone. But then it highlights folded directory not full-length (which I guess is why you introduced it in the first place):
Also, the return value is important. At the moment it's discarded.
Do I understand right, that it should return nil
?
Can you try figuring out what goes wrong? Not always nil
. Store the result of the last expression, and use it a the return value.
Sorry, I've been busy lately, but I'm keeping tabs on this!
Hey Evgkeni,
Sorry for the huge delay.
I decided to cheat a little and just call hl-line-highlight
in the beginning of the function to avoid messing with the return value. Do you think it's acceptable?
Resolves #40
This seems to work. I checked that if
hl-line-mode
orglobal-hl-line-mode
is off, the function does nothing.