jean-emmanuel / open-stage-control

Libre and modular OSC / MIDI controller
https://openstagecontrol.ammd.net
GNU General Public License v3.0
702 stars 88 forks source link

Character offset in editor while typing #774

Closed Sakamacheee closed 2 years ago

Sakamacheee commented 2 years ago

Hi !

Here's the bug : when typing (here in props field), it occurs that kind of an offset "appears" when typing. For example, if i have typed "Wonderzul", if i want to delete the "z" character, i'll have to place the cursor right before the "r" character, otherwise i will delete the "u" character...

Here's a small gif : HIAHCIv9eb

As we can see here, typing is ok in the first line, but starts to bug at line 2.

Thank you

jean-emmanuel commented 2 years ago

It seems to happen only when there is a long sequence of spaces at the beginning of the line, I'll investigate.

jean-emmanuel commented 2 years ago

Fixed in sources. If you can't wait for next release, put this in a theme file :


.ace_indent-guide {
    margin-left: -1rem;
}
Sakamacheee commented 2 years ago

Well done, thank you !