Skip to content

Commit

Permalink
[#274] Fix apheleia-formatters-indent logic (#277)
Browse files Browse the repository at this point in the history
Closes #274
  • Loading branch information
raxod502 authored Dec 30, 2023
1 parent 2b9e03a commit 923cd12
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ The format is based on [Keep a Changelog].
* Stylua is used now in `lua-ts-mode` as well as just `lua-mode`, by
default ([#275]).

### Bugs fixed
* Apheleia sometimes failed to determine indent level from Emacs
settings even when configured to do so. This is fixed ([#274]).

[#209]: https://github.com/radian-software/apheleia/pull/209
[#229]: https://github.com/radian-software/apheleia/pull/229
[#257]: https://github.com/radian-software/apheleia/pull/257
Expand All @@ -44,6 +48,7 @@ The format is based on [Keep a Changelog].
[#264]: https://github.com/radian-software/apheleia/pull/264
[#267]: https://github.com/radian-software/apheleia/pull/267
[#271]: https://github.com/radian-software/apheleia/pull/271
[#274]: https://github.com/radian-software/apheleia/issues/274
[#275]: https://github.com/radian-software/apheleia/pull/275

## 4.0 (released 2023-11-23)
Expand Down
2 changes: 1 addition & 1 deletion apheleia-utils.el
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ always returns nil to defer to the formatter."
(cond
((not apheleia-formatters-respect-indent-level) nil)
(indent-tabs-mode tab-flag)
(indent-var
(t
(unless indent-var
(setq indent-var
(cl-case major-mode
Expand Down

0 comments on commit 923cd12

Please sign in to comment.