helpful

a fork of Wilfred's helpful
git clone https://git.trogloxene.org/helpful.git
Log | Files | Refs | README

commit 35242796b7223dfdd174e5c80722ff3f70e91e5e
parent d0cd139f1bcba0882128018b19528347ea974338
Author: Wilfred Hughes <me@wilfred.me.uk>
Date:   Fri, 22 Dec 2017 22:50:13 +0000

Ensure no trailing newlines on text from helpful--source

Diffstat:
Mhelpful.el | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/helpful.el b/helpful.el @@ -650,6 +650,7 @@ If the source code cannot be found, return the sexp used." (goto-char start-pos) (narrow-to-defun) (setq source (buffer-substring-no-properties (point-min) (point-max)))))) + (setq source (s-trim-right source)) (when (and source (buffer-file-name buf)) (setq source (propertize source 'helpful-path (buffer-file-name buf)