summaryrefslogtreecommitdiff
path: root/elisp/geiser-base.el
diff options
context:
space:
mode:
Diffstat (limited to 'elisp/geiser-base.el')
-rw-r--r--elisp/geiser-base.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/elisp/geiser-base.el b/elisp/geiser-base.el
index 4634a29..439a047 100644
--- a/elisp/geiser-base.el
+++ b/elisp/geiser-base.el
@@ -77,6 +77,9 @@
;;; Utilities:
+(defsubst geiser--chomp (str)
+ (if (string-match-p ".*\n$" str) (substring str 0 -1) str))
+
(defun geiser--shorten-str (str len &optional sep)
(let ((str-len (length str)))
(if (<= str-len len)