Skip to content

Commit

Permalink
Ensure tab_size variable is a String (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rypac authored Jun 15, 2024
2 parents e9e2cf5 + 849edd5 commit 387d431
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/formatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def _extract_variables(self, view: View) -> dict[str, str]:
indent = " " * tab_size if settings.get("translate_tabs_to_spaces") else "\t"

variables = window.extract_variables() if (window := view.window()) else {}
variables["tab_size"] = tab_size
variables["tab_size"] = str(tab_size)
variables["indent"] = indent
variables.update(os.environ)

Expand Down

0 comments on commit 387d431

Please sign in to comment.