diff options
Diffstat (limited to 'haskell-tab-indent.el')
-rw-r--r-- | haskell-tab-indent.el | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/haskell-tab-indent.el b/haskell-tab-indent.el index 8ba205e..9515d2b 100644 --- a/haskell-tab-indent.el +++ b/haskell-tab-indent.el @@ -94,7 +94,11 @@ ;; more (prev-line-where ;; also ensure indentation of the 'where' is correct - (save-excursion (forward-line -1) (haskell-tab-indent)) + (save-excursion + (beginning-of-line 0) + (skip-chars-forward "\t") + (unless (looking-at " where$") + (insert " "))) (tabs (1+ prev-line-tabs))) ;; if the user explicitly requested an indent ;; change, cycle through the plausible indents |