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
When editing in the "Shell Script" language, if you type something that starts a block (such as an if or function, etc.), when you press return on the line, the cursor ends up indented at the old level and not the level implied by what was just typed.
For example, if I type function foo { and then press return, I would expect to see the following, where | represents the insertion cursor:
function foo {
|
}
but instead I end up with:
function foo {
|}
Similarly, if I'm in an indentation level in and type if (( x == 1 )); then and then press return, I expect:
function foo {
if (( x == 1 )); then
|
}
but instead I end up with:
function foo {
if (( x == 1 )); then
|
}
(Note: I'm using four spaces per indentation level here.)
Check for existing issues
Describe the bug / provide steps to reproduce it
When editing in the "Shell Script" language, if you type something that starts a block (such as an
if
orfunction
, etc.), when you press return on the line, the cursor ends up indented at the old level and not the level implied by what was just typed.For example, if I type
function foo {
and then press return, I would expect to see the following, where|
represents the insertion cursor:but instead I end up with:
Similarly, if I'm in an indentation level in and type
if (( x == 1 )); then
and then press return, I expect:but instead I end up with:
(Note: I'm using four spaces per indentation level here.)
Zed Version and System Specs
Zed: v0.170.2 (Zed)
OS: macOS 14.7.1
Memory: 16 GiB
Architecture: aarch64
If applicable, add screenshots or screencasts of the incorrect state / behavior
No response
If applicable, attach your Zed.log file to this issue.
No response
The text was updated successfully, but these errors were encountered: