aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c14
1 files changed, 14 insertions, 0 deletions
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)
5082} 5082}
5083 5083
5084 5084
5085/* Move iterator IT past the end of the text line it is in. */
5086
5087void
5088move_it_past_eol (it)
5089 struct it *it;
5090{
5091 enum move_it_result rc;
5092
5093 rc = move_it_in_display_line_to (it, Z, 0, MOVE_TO_POS);
5094 if (rc == MOVE_NEWLINE_OR_CR)
5095 set_iterator_to_next (it, 0);
5096}
5097
5098
5085#if 0 /* Currently not used. */ 5099#if 0 /* Currently not used. */
5086 5100
5087/* Return non-zero if some text between buffer positions START_CHARPOS 5101/* Return non-zero if some text between buffer positions START_CHARPOS