branch: elpa/haskell-ts-mode
commit 6da60040b36c98b596ecbb1723f2128a3edc8590
Author: Pranshu Sharma <[email protected]>
Commit: Pranshu Sharma <[email protected]>
Fixed hard to catch indentation issue
This shall be a statmenet that no bug is safe from me. Other hard to
catch your bugs, please fix yourself before I find you.
---
haskell-ts-mode.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/haskell-ts-mode.el b/haskell-ts-mode.el
index e72bb75405..b437d9aa87 100644
--- a/haskell-ts-mode.el
+++ b/haskell-ts-mode.el
@@ -309,7 +309,9 @@ when `haskell-ts-prettify-words' is non-nil.")
(save-excursion
(goto-char (line-beginning-position 0))
(back-to-indentation)
- (point)))
+ (if (looking-at "\n")
+ 0
+ (point))))
0)
((parent-is "^data_constructors$") parent 0)