OSDN Git Service

files.c 1.140 、ホス、タオ、マク。コ。ヌス、ネ、テ、ソ、ネ、ュ、ヒフ萃熙ャ、「、テ、ソ、ホ、ヌ。「コニス、タオ。」
authormogami <mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Mon, 13 Oct 2003 11:24:15 +0000 (11:24 +0000)
committermogami <mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Mon, 13 Oct 2003 11:24:15 +0000 (11:24 +0000)
src/files.c

index 204d1c4..4b5a66a 100644 (file)
@@ -5145,7 +5145,7 @@ msg_format("'%s'
                        if (!i) line = next;
 
                        /* Get a line of the file or stop */
-                       if (my_fgets(fff, buf, sizeof(buf))) buf[0] = '\0';
+                       if (my_fgets(fff, buf, sizeof(buf))) break;
 
                        /* Hack -- skip "special" lines */
                        if (prefix(buf, "***** ")) continue;
@@ -5247,6 +5247,14 @@ msg_format("'%s'
                        i++;
                }
 
+               while (i < rows)
+               {
+                       /* Clear rest of line */
+                       Term_erase(0, i + 2, 255);
+
+                       i++;
+               }
+
                /* Hack -- failed search */
                if (find)
                {