diff --git a/ChangeLog b/ChangeLog index 677df03465c8c81df58d9ea279842746ef63cd1a..574e891c1be97dd438e30bff456fed0bde4f804f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -64,6 +64,10 @@ CVS code - generated by the NumLock glitch. (DLR) edit_refresh() - Remove apparently unneeded leaveok() calls. (David Benbennick) + do_credits() + - Use napms() instead of nanosleep(), as it does the same thing + (aside from taking an argument in milliseconds instead of + microseconds) and curses includes it. (DLR) - nano.texi: - Fix inaccuracies: Meta-L now toggles line wrapping, and Meta-< and Meta-> aren't toggles. (DLR) diff --git a/src/winio.c b/src/winio.c index 57f1efbafe1070f96617db2be55d477f8df159c0..28e63ef908530e1f9c8b6a13cf8a1eaa63b7707d 100644 --- a/src/winio.c +++ b/src/winio.c @@ -30,10 +30,6 @@ #include "proto.h" #include "nano.h" -#ifdef NANO_EXTRA -#include <time.h> -#endif - static int statblank = 0; /* Number of keystrokes left after we call statusbar(), before we actually blank the statusbar */ @@ -2658,7 +2654,6 @@ void dump_buffer_reverse(void) void do_credits(void) { int i, j = 0, k, place = 0, start_x; - struct timespec scrolldelay; const char *what; const char *xlcredits[XLCREDIT_LEN]; @@ -2722,9 +2717,6 @@ void do_credits(void) xlcredits[6] = _("and anyone else we forgot..."); xlcredits[7] = _("Thank you for using nano!\n"); - scrolldelay.tv_sec = 0; - scrolldelay.tv_nsec = 700000000; - curs_set(0); nodelay(edit, TRUE); blank_bottombars(); @@ -2756,7 +2748,7 @@ void do_credits(void) start_x = COLS / 2 - strlen(what) / 2 - 1; mvwaddstr(edit, i * 2 - k, start_x, what); } - nanosleep(&scrolldelay, NULL); + napms(700); wrefresh(edit); } if (j < editwinrows / 2 - 1)