Mercurial > emacs
changeset 35023:6016a947974c
(move_it_past_eol): New function.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Wed, 03 Jan 2001 13:49:02 +0000 |
parents | 84d10a56a40b |
children | 4ab60becd588 |
files | src/xdisp.c |
diffstat | 1 files changed, 14 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xdisp.c Wed Jan 03 13:48:15 2001 +0000 +++ b/src/xdisp.c Wed Jan 03 13:49:02 2001 +0000 @@ -5082,6 +5082,20 @@ } +/* Move iterator IT past the end of the text line it is in. */ + +void +move_it_past_eol (it) + struct it *it; +{ + enum move_it_result rc; + + rc = move_it_in_display_line_to (it, Z, 0, MOVE_TO_POS); + if (rc == MOVE_NEWLINE_OR_CR) + set_iterator_to_next (it, 0); +} + + #if 0 /* Currently not used. */ /* Return non-zero if some text between buffer positions START_CHARPOS