de-jcup / eclipse-yaml-editor

Eclipse YAML editor
https://marketplace.eclipse.org/content/yaml-editor
Apache License 2.0
35 stars 10 forks source link

toggle comment eats 2nd char after # #97

Closed elonderin closed 3 years ago

elonderin commented 4 years ago

the problem is that it assumes a space after the #.

example where each -> is a toggle:

#foo -> oo -> # oo

this seems to be independent of selected line endings but i'm on windows but have only \n

de-jcup commented 3 years ago

Yes this is a bug,

#foo -> oo -> # oo was always changed to # oo -> oo -> # oo

de-jcup commented 3 years ago

image

pressing CTRL + 7 we got:

image

and pressing CTRL + 7 again

image