Closed mwanderman closed 8 months ago
Good find, thank you for reporting! Pushing an update now that should fix this:
Thanks for the quick response. It's much improved (good thought on 0xabcdefg
and 0xhex
), but x by itself still shows up as the ligature.
def add(x, y):
return x + y
I'm unable to reproduce this on my config:
If you put your point over the x
, does it return to its usual glyph, or does it keep showing the multiplication symbol while your point is over it?
If it returns to normal on hover, then adding "x"
to fira-code-mode-disabled-ligatures
may fix this as long as another package isn't also changing prettify-symbols-alist
(I know python-mode
sometimes does this, adding extra ligatures to that variable).
If it doesn't change on hover, then it is probably a font-lock issue... if you quit Emacs all the way and reopen and it continues happening only after enabling fira-code-mode
, let me know and I can continue investigating
fira-code-mode
turnsx
into the hex ligature in incorrect places: whenx
is by itself and when0
preceeds thex
even though there are more characters. It would be better to check for\b0x[a-fA-F0-9]
to reduce the false positives.This is how it renders