porcupine icon indicating copy to clipboard operation
porcupine copied to clipboard

typing ) can delete whitespace *after* the cursor

Open Akuli opened this issue 2 years ago • 1 comments

  1. Type one or more spaces to new file
  2. Type a letter a after them
  3. Move cursor to beginning of line
  4. Press )

Ideally the resulting text would be ) a, but it's actually )a. The spaces are removed.

Akuli avatar Apr 11 '22 20:04 Akuli

This is a feature, not a bug. If you're in the middle of 4-space indentation, you can type a curly brace and it will align nicely. Below | represents the cursor, and . represents a space:

foo = {
....bar,
..|..

And after typing }:

foo = {
....bar,
}|

But there is a bug too: this doesn't actually work. Interestingly it works if I delete the bar line above.

Akuli avatar May 07 '22 10:05 Akuli

Can't reproduce anymore. I remember fixing something similar.

Akuli avatar Apr 01 '24 00:04 Akuli