From 47fc2c1093515235c89aed3bf22dd55d24f6caaf Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Wed, 3 Jan 2001 13:49:02 +0000 Subject: [PATCH] (move_it_past_eol): New function. --- src/xdisp.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/xdisp.c b/src/xdisp.c index 482a704aee2..3e9790d1b8e 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -5082,6 +5082,20 @@ move_it_vertically (it, dy) } +/* 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 -- 2.39.5