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.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/crawl-ref/source/command.cc b/crawl-ref/source/command.cc
index 771012383a..fd38e95970 100644
--- a/crawl-ref/source/command.cc
+++ b/crawl-ref/source/command.cc
@@ -629,6 +629,14 @@ static void add_file_to_scroller(FILE* fp, formatted_scroller& m,
bool next_is_hotkey = false;
bool is_first = true;
char buf[200];
+
+ // bracket with MEL_TITLES, so that you won't scroll
+ // into it or above it
+ m.add_entry(new MenuEntry(std::string(), MEL_TITLE));
+ for ( int i = 0; i < get_number_of_lines(); ++i )
+ m.add_entry(new MenuEntry(std::string()));
+ m.add_entry(new MenuEntry(std::string(), MEL_TITLE));
+
while (fgets(buf, sizeof buf, fp))
{
MenuEntry* me = new MenuEntry(buf);