diff options
| -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 b6cf76234e3..22039ebca6b 100644 --- a/src/indent.c +++ b/src/indent.c | |||
| @@ -2023,11 +2023,12 @@ whether or not it is currently displayed in some window. */) | |||
| 2023 | SET_TEXT_POS (pt, PT, PT_BYTE); | 2023 | SET_TEXT_POS (pt, PT, PT_BYTE); |
| 2024 | start_display (&it, w, pt); | 2024 | start_display (&it, w, pt); |
| 2025 | 2025 | ||
| 2026 | /* Move to the start of the line containing PT. If we don't do | 2026 | /* Move to the start of the display line containing PT. If we don't |
| 2027 | this, we start moving with IT->current_x == 0, while PT is really | 2027 | do this, we start moving with IT->current_x == 0, while PT is |
| 2028 | at some x > 0. The effect is, in continuation lines, that we end | 2028 | really at some x > 0. The effect is, in continuation lines, that |
| 2029 | up with the iterator placed at where it thinks X is 0, while the | 2029 | we end up with the iterator placed at where it thinks X is 0, |
| 2030 | end position is really at some X > 0, the same X that PT had. */ | 2030 | while the end position is really at some X > 0, the same X that |
| 2031 | PT had. */ | ||
| 2031 | move_it_by_lines (&it, 0, 0); | 2032 | move_it_by_lines (&it, 0, 0); |
| 2032 | 2033 | ||
| 2033 | if (XINT (lines) != 0) | 2034 | if (XINT (lines) != 0) |