Closed blueglyph closed 1 year ago
Is the cursor moving, or is IntelliJ trimming extra whitespace at the end of the line?
What's your configuration in Settings > Editor > General > On Save
?
It's only trimming if the line is not empty, so if I add a few spaces at the end of an existing line and switch back & forth, the spaces are removed. When the plugin is disabled, those spaces remain (and the cursor remains there too).
If it's a few line, the spaces are still there, so if I jump to end of the line my cursor moves back to where it was. When the plugin is disabled, those spaces remain (and the cursor remains there too).
Are you implying that you cannot reproduce the bug?
I haven't tried to reproduce yet, I just find it very odd that the plugin is affecting other file types.
I found that very strange too, especially in projects that don't even have files related to the plugin (pure Rust or Kotlin projects).
I got the problem with the plugin disabled, so I reported that on IntelliJ's bug tracker.
I'm closing this PR.
Description
When this plugin is active, the editor behaves incorrectly and shows the bug reported here (link):
I tested several times by disabling and enabling this plugin (and others), and the problem only occurs when this plugin is active (and then it occurs all the time). I never noticed that in earlier versions of the plugin.
This is quite annoying, I'm currently writing tests and code that are in separate files, and this is really happening all the time. I'll disable the plugin for now.
Environment