diff options
| author | Gerd Moellmann | 2001-01-03 13:49:02 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2001-01-03 13:49:02 +0000 |
| commit | 47fc2c1093515235c89aed3bf22dd55d24f6caaf (patch) | |
| tree | f686f8519af13dd8d7142186059bbced2cc57e57 /src | |
| parent | 5b2ad813a561a6a4a451e0d738e4c6f8359d16c8 (diff) | |
| download | emacs-47fc2c1093515235c89aed3bf22dd55d24f6caaf.tar.gz emacs-47fc2c1093515235c89aed3bf22dd55d24f6caaf.zip | |
(move_it_past_eol): New function.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 14 |
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 | |||
| 5087 | void | ||
| 5088 | move_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 |