diff options
| author | Kenichi Handa | 2006-11-20 02:47:15 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2006-11-20 02:47:15 +0000 |
| commit | cec726f668b5d03169932cf42f4e2dabbf2ceeb9 (patch) | |
| tree | 27d9912bd3f8d7176d84a133a9dc20bf46eaea46 /src | |
| parent | b07e014310fd5536f85ffff82ec87ccacd2992ba (diff) | |
| download | emacs-cec726f668b5d03169932cf42f4e2dabbf2ceeb9.tar.gz emacs-cec726f668b5d03169932cf42f4e2dabbf2ceeb9.zip | |
(Fvertical_motion): Include composition in the case of
overshoot expected.
Diffstat (limited to 'src')
| -rw-r--r-- | src/indent.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/indent.c b/src/indent.c index 3cbb105e80f..a30ef6edf7b 100644 --- a/src/indent.c +++ b/src/indent.c | |||
| @@ -2088,10 +2088,10 @@ whether or not it is currently displayed in some window. */) | |||
| 2088 | it_start = IT_CHARPOS (it); | 2088 | it_start = IT_CHARPOS (it); |
| 2089 | 2089 | ||
| 2090 | /* We expect the call to move_it_to, further down, to overshoot | 2090 | /* We expect the call to move_it_to, further down, to overshoot |
| 2091 | if the starting point is on an image, stretch glyph, or Lisp | 2091 | if the starting point is on an image, stretch glyph, |
| 2092 | string. We won't need to backtrack in this situation, except | 2092 | composition, or Lisp string. We won't need to backtrack in |
| 2093 | for one corner case: when the Lisp string contains a | 2093 | this situation, except for one corner case: when the Lisp |
| 2094 | newline. */ | 2094 | string contains a newline. */ |
| 2095 | if (it.method == GET_FROM_STRING) | 2095 | if (it.method == GET_FROM_STRING) |
| 2096 | { | 2096 | { |
| 2097 | const char *s = SDATA (it.string); | 2097 | const char *s = SDATA (it.string); |
| @@ -2104,7 +2104,8 @@ whether or not it is currently displayed in some window. */) | |||
| 2104 | } | 2104 | } |
| 2105 | else | 2105 | else |
| 2106 | it_overshoot_expected_p = (it.method == GET_FROM_IMAGE | 2106 | it_overshoot_expected_p = (it.method == GET_FROM_IMAGE |
| 2107 | || it.method == GET_FROM_STRETCH); | 2107 | || it.method == GET_FROM_STRETCH |
| 2108 | || it.method == GET_FROM_COMPOSITION); | ||
| 2108 | 2109 | ||
| 2109 | reseat_at_previous_visible_line_start (&it); | 2110 | reseat_at_previous_visible_line_start (&it); |
| 2110 | it.current_x = it.hpos = 0; | 2111 | it.current_x = it.hpos = 0; |