Closed bmag closed 5 years ago
@bmag Thanks so much for this, it's been really crazy busy for me lately :smile: I'll check it and merge it tomorrow, hopefully :heart:
@bmag Thanks for this :+1: yeah I like your solution, I don't think having a non-existing face will cause any issues.
Fixes a bug with line-number faces originally reported at spacemacs: https://github.com/syl20bnr/spacemacs/issues/10877 Exact details of the bug at https://github.com/syl20bnr/spacemacs/issues/10877#issuecomment-434372597, but in short the code just didn't do what it's supposed to do.
I've opted for removing the
when
condition, instead of the other proposed solution (twowhen
expressions, one for each face), because it is cleaner. The faces being non-existent in Emacs 25.3 didn't cause any problems for me. Tested by running Spacemacs with modified spacemacs-theme files on Emacs 25.3 and Emacs 26.1.