OSDN Git Service

画面をスクロールして end of file よりも下まで表示した時、画面のアップデートに不備があって以前の表示内容が残っていたので修正。
authormogami <mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Mon, 13 Oct 2003 06:53:43 +0000 (06:53 +0000)
committermogami <mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Mon, 13 Oct 2003 06:53:43 +0000 (06:53 +0000)
src/files.c

index 6e0371e..204d1c4 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))) break;
+                       if (my_fgets(fff, buf, sizeof(buf))) buf[0] = '\0';
 
                        /* Hack -- skip "special" lines */
                        if (prefix(buf, "***** ")) continue;