summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/command.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/command.cc')
-rw-r--r--crawl-ref/source/command.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/crawl-ref/source/command.cc b/crawl-ref/source/command.cc
index bb062ae723..1884ae2303 100644
--- a/crawl-ref/source/command.cc
+++ b/crawl-ref/source/command.cc
@@ -1256,9 +1256,7 @@ static bool _do_description(std::string key, std::string footer = "")
std::string prefix, suffix;
- int width = get_number_of_cols();
- if (width > 80)
- width = 80;
+ int width = std::min(80, get_number_of_cols());
god_type which_god = string_to_god(key.c_str());
if (which_god != GOD_NO_GOD)