You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Auto-indenting breaks inside quotes for most file types.
Reproduction Steps
Baseline: plain text file
hx foo.txt
enter Insert mode
type a<space>{<enter>b<space>{<enter>c<space>{<enter>.
Result
a {
b {
c {
| <- cursor is here
}
}
}
This seems perfectly normal.
Rust
hx foo.rs
prepare the following
const S: &str = "
| <- place cursor here in insert mode
";
type the same a { b { c { sequence as above
Result
const S: &str = "
a {
b {
c {
| <- cursor
}
}
}
";
This issue is not specific to rust, I initially ran into it trying to edit a large multi-line string in a .ron file. Similar behavior can be reproduced with .py and .js:
Summary
Auto-indenting breaks inside quotes for most file types.
Reproduction Steps
Baseline: plain text file
hx foo.txt
a<space>{<enter>b<space>{<enter>c<space>{<enter>
.Result
This seems perfectly normal.
Rust
hx foo.rs
a { b { c {
sequence as aboveResult
This issue is not specific to rust, I initially ran into it trying to edit a large multi-line string in a
.ron
file. Similar behavior can be reproduced with.py
and.js
:hx foo.py
results:hx foo.js
results:Helix log
No response
Platform
Linux
Terminal Emulator
gnome-terminal
Installation Method
source
Helix Version
helix 23.10 (cb0bc25)
The text was updated successfully, but these errors were encountered: