Closed iwek7 closed 3 years ago
Feel free to open a pull request to fix this :slightly_smiling_face:
Would it be OK if I work on this?
@dakennedyd Sure :slightly_smiling_face:
That said, bruvzg is only away for one week, so you may want to wait until he's back.
I took a look at the bug and the problem seems to be in the files: text_server_fb.cpp text_server_adv.cpp Both of those files have a function 'is_whitespace()' that counts characters (among others) from 0x9 to 0xd as a space. In ascii 0x9 is the value for tab that's why when the user presses tab the editor draws the symbols for space and tab. Fixing it is easy, but I ignore the reason as to why 'is_whitespace()' counts 0x9 as a space.
it might be that other writing systems count tab as spaces or it is just a typo?
Assuming it was a typo I put a pr that makes the function not count tab as a space just in case. Feel free to reject it if my assumption is wrong.
Godot version: master
886571e0fc
OS/device including version: irrelevant
Issue description: When both setting for drawing tabs and spaces in editor are turned on when one writes tab in editor then both tab and space icons are showing:
Only entered character is tab but both tab and space icons are drawn (tab is arrow, space is dot).
The reason for this is that in
text_edit
both of those conditions evaluate to trueSteps to reproduce: