From 2855a30f531a412f0dcfa97fce2c05b070569780 Mon Sep 17 00:00:00 2001 From: Robin Green Date: Mon, 23 Mar 2015 12:29:49 +0000 Subject: [PATCH] Fix type insert when point not at identifier start --- haskell-commands.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/haskell-commands.el b/haskell-commands.el index 48a469af9..06bc336eb 100644 --- a/haskell-commands.el +++ b/haskell-commands.el @@ -616,8 +616,8 @@ command from GHCi." "\n")) (t (save-excursion - (let ((col (save-excursion (goto-char (car ident-pos)) - (current-column)))) + (goto-char (car ident-pos)) + (let ((col (current-column))) (save-excursion (insert "\n") (indent-to col)) (insert (haskell-fontify-as-mode ty 'haskell-mode)))))))