From 054a9c696f93033ce8fd7836b73bc109aefd0683 Mon Sep 17 00:00:00 2001 From: Sean O'Rourke Date: Sat, 8 Oct 2011 18:39:58 -0700 Subject: [PATCH] Bug fix. --- sepia.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sepia.el b/sepia.el index 01d5c9f..00e2553 100644 --- a/sepia.el +++ b/sepia.el @@ -1789,7 +1789,7 @@ link using `browse-url'." (forward-char 1) ;in case we're on < of L< (search-backward "L<" bol t)) p)) (end (save-excursion (search-forward ">" eol t)))) - (if end (buffer-substring-no-properties (+ beg 2) (1- end)) + (if (and beg end) (buffer-substring-no-properties (+ beg 2) (1- end)) nil))) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -- 2.11.4.GIT