Skip to content

Conversation

@woolsweater
Copy link
Contributor

When swift-mode:switch-case-offset is set equal to the basic offset,
lines following a case inside a switch should still be indented.

Change the offset calculation to fall back to swift-mode:basic-offset
if the difference between the offsets is 0 (or less).

Resolves #166

When `swift-mode:switch-case-offset` is set equal to the basic offset, lines following a `case` inside a `switch` should still be indented. Change the offset calculation to fall back to `swift-mode:basic-offset` if the difference between the offsets is 0 (or less). Resolves swift-emacs#166
@taku0 taku0 merged commit e65a80a into swift-emacs:master Oct 1, 2020
@taku0
Copy link
Member

taku0 commented Oct 1, 2020

It works fine. Thank you!

@woolsweater woolsweater deleted the switch-case-full-indent branch October 1, 2020 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants