aboutsummaryrefslogtreecommitdiff
path: root/sx-search.el
diff options
context:
space:
mode:
authorArtur Malabarba <bruce.connor.am@gmail.com>2015-02-07 23:31:54 -0200
committerArtur Malabarba <bruce.connor.am@gmail.com>2015-02-07 23:31:54 -0200
commitad3c2c9c05705512415afb469c8545b875c7cfe8 (patch)
tree6eb27d39f7a941e1b596596e3576181e57d8dadd /sx-search.el
parent635bdbb7294e35880c1bf265317896cfbda4a23a (diff)
Hot Fix #249. Searching without query
Diffstat (limited to 'sx-search.el')
-rw-r--r--sx-search.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/sx-search.el b/sx-search.el
index aefd12e..c1e1e23 100644
--- a/sx-search.el
+++ b/sx-search.el
@@ -84,7 +84,7 @@ prefix argument, the user is asked for everything."
(when current-prefix-arg
(setq tags (sx-tag-multiple-read
site (concat "Tags" (when query " (optional)"))))
- (when (and (not query) (string= "" tags))
+ (unless (or query tags)
(sx-user-error "Must supply either QUERY or TAGS"))
(setq excluded-tags
(sx-tag-multiple-read site "Excluded tags (optional)")))