flexlint icon indicating copy to clipboard operation
flexlint copied to clipboard

Underlining is placed in the wrong position when tabs are used

Open NilsJPWerner opened this issue 2 years ago • 1 comments

Love the linter. I have noticed that the underlining gets messed up when code is indented using tabs. I think it is counting tabs as single runes, but when the offending line is printed in the terminal the tabs are expanded to several spaces. That caused the underlining to be placed in the wrong position.

Expected:

   |
72 |   foreach subvar in "fin1st" "start1st" "startlast"  {
   |                                                    ^^^ hint: Compress multiple spaces to a single space

Actual:

   |
72 |                    foreach subvar in "fin1st" "start1st" "startlast"  {
   |                                                    ^^^ hint: Compress multiple spaces to a single space

NilsJPWerner avatar Apr 04 '23 22:04 NilsJPWerner

Bumping this - this would be a nice QoL feature

hsahovic avatar Nov 15 '23 15:11 hsahovic