# languages: Fix Bash indentation issues with multi-cursors, newlines, and keyword outdenting \(\#35116\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/43d0aae617910f0495342911277ce3d166c0562a)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 43d0aae617910f0495342911277ce3d166c0562a

Requested commit: 43d0aae617910f0495342911277ce3d166c0562a

Commit: 43d0aae617910f0495342911277ce3d166c0562a

Tree: d04e14795c9b72853f00d9e489ed19608e018150

Author: Smit Barmase

Committer: GitHub

## Message

```
languages: Fix Bash indentation issues with multi-cursors, newlines, and keyword outdenting (#35116)

Closes #34390

This PR fixes several Bash indentation issues:

- Adding indentation or comment using multi cursors no longer breaks
relative indentation
- Adding newline now places the cursor at the correct indent
- Typing a valid keyword triggers context-aware auto outdent

It also adds tests for all of them.

Release Notes:

- Fixed various issues with handling indentation in Bash.
```

## Parents

- [07252c33095d06f7599da67c955a7bc5230c5e9f](https://git.cafe/gitcafe/zed/commit/07252c33095d06f7599da67c955a7bc5230c5e9f?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/43d0aae617910f0495342911277ce3d166c0562a?format=markdown)
