Skip to content

Commit 8a08b83

Browse files
committed
Supress multiline expressions
Related to issue #701
1 parent 1616b8f commit 8a08b83

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

haskell-commands.el

+5
Original file line numberDiff line numberDiff line change
@@ -945,6 +945,11 @@ expression bounds."
945945
(setq end-l (line-number-at-pos))
946946
(setq end-c (1+ (current-column)))
947947
(setq value (buffer-substring-no-properties start-p end-p))
948+
;; supress multiline expressions
949+
(let ((lines (split-string value "\n" t)))
950+
(when (and (cdr lines)
951+
(stringp (car lines)))
952+
(setq value (format "[ %s … ]" (car lines)))))
948953
(replace-regexp-in-string
949954
"\n$"
950955
""

0 commit comments

Comments
 (0)