diff options
author | Artur Malabarba <bruce.connor.am@gmail.com> | 2015-02-07 23:31:54 -0200 |
---|---|---|
committer | Artur Malabarba <bruce.connor.am@gmail.com> | 2015-02-07 23:31:54 -0200 |
commit | ad3c2c9c05705512415afb469c8545b875c7cfe8 (patch) | |
tree | 6eb27d39f7a941e1b596596e3576181e57d8dadd /sx-search.el | |
parent | 635bdbb7294e35880c1bf265317896cfbda4a23a (diff) |
Hot Fix #249. Searching without query
Diffstat (limited to 'sx-search.el')
-rw-r--r-- | sx-search.el | 2 |
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)"))) |