swift-emacs / swift-mode

Emacs support for Apple's Swift programming language.
GNU General Public License v3.0
363 stars 47 forks source link

Support full-indent for switch cases #167

Closed woolsweater closed 3 years ago

woolsweater commented 3 years ago

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

taku0 commented 3 years ago

It works fine. Thank you!