Mercurial > emacs
changeset 1495:f17665e7347e
(count_blanks): Leave argument r constant, and increment p.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Thu, 29 Oct 1992 06:29:20 +0000 |
parents | 64f5e84c822b |
children | f9010847a5f5 |
files | src/dispnew.c |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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