# HG changeset patch # User Richard M. Stallman # Date 720340160 0 # Node ID f17665e7347e6a645c440d22b011b73958cf9bbf # Parent 64f5e84c822b32bbcea389c5b980dca4716b6b88 (count_blanks): Leave argument r constant, and increment p. diff -r 64f5e84c822b -r f17665e7347e src/dispnew.c --- a/src/dispnew.c Wed Oct 28 09:33:04 1992 +0000 +++ b/src/dispnew.c Thu Oct 29 06:29:20 1992 +0000 @@ -328,7 +328,7 @@ if (!m->enable[vpos]) return 0; - /* Give all lighlighted lines the same hash code + /* Give all highlighted lines the same hash code so as to encourage scrolling to leave them in place. */ if (m->highlight[vpos]) return -1; @@ -833,7 +833,7 @@ They may return 0 meaning nothing was done if anything is difficult, or 1 meaning the output was performed properly. They assume that the frame was up to date before the buffer - change being displayed. THey make various other assumptions too; + change being displayed. They make various other assumptions too; see command_loop_1 where these are called. */ int @@ -1245,8 +1245,8 @@ register GLYPH *r; { register GLYPH *p = r; - while (*r++ == SPACEGLYPH); - return r - p - 1; + while (*p++ == SPACEGLYPH); + return p - r - 1; } static int