porcupine
porcupine copied to clipboard
typing ) can delete whitespace *after* the cursor
- Type one or more spaces to new file
- Type a letter
a
after them - Move cursor to beginning of line
- Press
)
Ideally the resulting text would be ) a
, but it's actually )a
. The spaces are removed.
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.
Can't reproduce anymore. I remember fixing something similar.