Skip to content

Commit a1f285a

Browse files
committed
Merge pull request #546 from greenrd/fix-type-insertion
Fix type insert when point not at identifier start
2 parents 09c4e78 + 2855a30 commit a1f285a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

haskell-commands.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -616,8 +616,8 @@ command from GHCi."
616616
"\n"))
617617
(t
618618
(save-excursion
619-
(let ((col (save-excursion (goto-char (car ident-pos))
620-
(current-column))))
619+
(goto-char (car ident-pos))
620+
(let ((col (current-column)))
621621
(save-excursion (insert "\n")
622622
(indent-to col))
623623
(insert (haskell-fontify-as-mode ty 'haskell-mode)))))))

0 commit comments

Comments
 (0)