aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--luwak.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/luwak.el b/luwak.el
index b0f7440..08eb793 100644
--- a/luwak.el
+++ b/luwak.el
@@ -115,9 +115,9 @@ When non-nill, swap the tor-switch in prefix-arg effect."
(defun luwak-guess-title ()
(save-excursion
(goto-char (point-min))
- (re-search-forward "^[^[:space:]]" nil t)
- (buffer-substring-no-properties (1- (point))
- (progn (end-of-line 1) (point)))))
+ (when (re-search-forward "^[^[:space:]]" nil t)
+ (buffer-substring-no-properties (1- (point))
+ (progn (end-of-line 1) (point))))))
(when (require 'org nil t)
(defun luwak-org-store-link ()