OSDN Git Service

[Fix] ヘルプ表示時に検索文字列が強調表示されない不具合を修正
authortaotao54321 <taotao54321@gmail.com>
Sun, 31 Jan 2021 16:16:53 +0000 (01:16 +0900)
committertaotao54321 <taotao54321@gmail.com>
Sun, 31 Jan 2021 16:16:53 +0000 (01:16 +0900)
src/core/show-file.c

index 06c117f..aa0657f 100644 (file)
@@ -237,6 +237,7 @@ bool show_file(player_type *creature_ptr, bool show_version, concptr name, concp
     term_clear();
 
     concptr find = NULL;
+    concptr shower = NULL;
     while (TRUE) {
         if (line >= size - rows)
             line = size - rows;
@@ -261,7 +262,6 @@ bool show_file(player_type *creature_ptr, bool show_version, concptr name, concp
         }
 
         int row_count;
-        concptr shower = NULL;
         for (row_count = 0; row_count < rows;) {
             concptr str = buf;
             if (!row_count)