We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1616b8f commit 8a08b83Copy full SHA for 8a08b83
haskell-commands.el
@@ -945,6 +945,11 @@ expression bounds."
945
(setq end-l (line-number-at-pos))
946
(setq end-c (1+ (current-column)))
947
(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)))))
953
(replace-regexp-in-string
954
"\n$"
955
""
0 commit comments