Closed woolsweater closed 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.
swift-mode:switch-case-offset
case
switch
Change the offset calculation to fall back to swift-mode:basic-offset if the difference between the offsets is 0 (or less).
swift-mode:basic-offset
Resolves #166
It works fine. Thank you!
When
swift-mode:switch-case-offset
is set equal to the basic offset, lines following acase
inside aswitch
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