# HG changeset patch # User Gerd Moellmann # Date 978529742 0 # Node ID 6016a947974ce77cf37ed93a176aff2f69e2b5de # Parent 84d10a56a40bcadebd82b9cc2df48a3cedc581ac (move_it_past_eol): New function. diff -r 84d10a56a40b -r 6016a947974c src/xdisp.c --- 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