Skip to content

Commit

Permalink
Fix local variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
10sr committed Jan 8, 2019
1 parent 475e217 commit 63deba0
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions editorconfig-core.el
Original file line number Diff line number Diff line change
Expand Up @@ -171,33 +171,33 @@ hash object instead."
result))))

;; Add indent_size property
(let ((indent-size (gethash 'indent_size result))
(indent-style (gethash 'indent_style result)))
(when (and (not indent-size)
(string= indent-style "tab")
(let ((v-indent-size (gethash 'indent_size result))
(v-indent-style (gethash 'indent_style result)))
(when (and (not v-indent-size)
(string= v-indent-style "tab")
;; If VERSION < 0.9.0, indent_size should have no default value
(version<= "0.9.0"
confversion))
(puthash 'indent_size
"tab"
result)))
;; Add tab_width property
(let ((indent-size (gethash 'indent_size result))
(tab-width (gethash 'tab_width result)))
(when (and indent-size
(not tab-width)
(not (string= indent-size "tab")))
(let ((v-indent-size (gethash 'indent_size result))
(v-tab-width (gethash 'tab_width result)))
(when (and v-indent-size
(not v-tab-width)
(not (string= v-indent-size "tab")))
(puthash 'tab_width
indent-size
v-indent-size
result)))
;; Update indent-size property
(let ((indent-size (gethash 'indent_size result))
(tab-width (gethash 'tab_width result)))
(when (and indent-size
tab-width
(string= indent-size "tab"))
(let ((v-indent-size (gethash 'indent_size result))
(v-tab-width (gethash 'tab_width result)))
(when (and v-indent-size
v-tab-width
(string= v-indent-size "tab"))
(puthash 'indent_size
tab-width
v-tab-width
result)))

result))
Expand Down

0 comments on commit 63deba0

Please sign in to comment.