summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/invent.cc
diff options
context:
space:
mode:
authorNeil Moore <neil@s-z.org>2014-05-29 01:37:36 -0400
committerNeil Moore <neil@s-z.org>2014-05-29 02:22:32 -0400
commita22ca7f95ff93f2a5e81679baa613107dd0573c5 (patch)
treefae0e8be18fc8688455f9b869c31d914f27e3c07 /crawl-ref/source/invent.cc
parent8ea69f7e867fccf0acf756bc98f7058873387266 (diff)
downloadcrawl-ref-a22ca7f95ff93f2a5e81679baa613107dd0573c5.tar.gz
crawl-ref-a22ca7f95ff93f2a5e81679baa613107dd0573c5.zip
Omit selection indicator for items with no hotkey.
Diffstat (limited to 'crawl-ref/source/invent.cc')
-rw-r--r--crawl-ref/source/invent.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/crawl-ref/source/invent.cc b/crawl-ref/source/invent.cc
index eea90d777d..ea71fc79fd 100644
--- a/crawl-ref/source/invent.cc
+++ b/crawl-ref/source/invent.cc
@@ -206,7 +206,9 @@ string InvEntry::get_text(bool need_cursor) const
else
tstr << ' ';
- if (!selected_qty)
+ if (nosel)
+ tstr << ' ';
+ else if (!selected_qty)
tstr << '-';
else if (selected_qty < quantity)
tstr << '#';