aboutsummaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorAlexander Griffith <griffitaj@gmail.com>2017-04-27 19:17:40 -0400
committerJohnson Denen <johnson.denen@gmail.com>2017-04-28 20:02:26 -0400
commitd2e61d3d258a9acf1bed5dd8b347c7aaea12c5c7 (patch)
tree4b5285508cfbd49d460b70012beeccb452a8caec /lisp
parentfdfb30f8d18d28aaf3b98513814ba71afc457d62 (diff)
word is no longer nil when no word-at-point is nil
Diffstat (limited to 'lisp')
-rw-r--r--lisp/mastodon-tl.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el
index a68b1f3..3ff52b8 100644
--- a/lisp/mastodon-tl.el
+++ b/lisp/mastodon-tl.el
@@ -56,7 +56,7 @@
(defun mastodon-tl--get-tag-timeline ()
"Prompts for tag and opens its timeline."
(interactive)
- (let* ((word (word-at-point))
+ (let* ((word (or (word-at-point) ""))
(input (read-string (format "Tag(%s): " word)))
(tag (if (equal input "") word input)))
(print tag)