Text inspector position doesn't count newlines #1475
Labels
app-kind:GUI
bug
Something isn't working
platforms:Linux
platforms:macOS
platforms:Windows
untriaged
Current behavior
When using the text inspector for multi-line strings, the "Position" indicator on the right panel doesn't count newlines, which can be misleading, particularly in very long strings where it is not obvious.
How to reproduce it (as minimally and precisely as possible)
Expected behavior
If the first line of the string in the example image has a
\n
line ending, then position should be 7, and with a\r\n
line ending it should be 8.It would probably be best to add a new piece of information, like "Position (incl. newlines)" so users expecting the current behaviour are still happy, but simpletons like me don't lose half an hour thinking his code is producing the wrong positions :)
Screenshots
Workaround
No response
Affected platforms
Linux, macOS, Windows
Affected DevToys kind
DevToys (app with GUI)
DevToys Version
Version 1.0.14.0 | X64 | RELEASE | 3ad0ff2 | 3ad0ff2
Relevant Assets/Logs
No response
The text was updated successfully, but these errors were encountered: