[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/indent.c
From: |
Kim F . Storm |
Subject: |
[Emacs-diffs] Changes to emacs/src/indent.c |
Date: |
Sun, 21 Nov 2004 08:05:52 -0500 |
Index: emacs/src/indent.c
diff -c emacs/src/indent.c:1.170 emacs/src/indent.c:1.171
*** emacs/src/indent.c:1.170 Fri Nov 19 09:44:14 2004
--- emacs/src/indent.c Sun Nov 21 12:56:53 2004
***************
*** 2069,2074 ****
--- 2069,2076 ----
}
else
{
+ int it_start;
+
SET_TEXT_POS (pt, PT, PT_BYTE);
start_display (&it, w, pt);
***************
*** 2078,2090 ****
we end up with the iterator placed at where it thinks X is 0,
while the end position is really at some X > 0, the same X that
PT had. */
reseat_at_previous_visible_line_start (&it);
it.current_x = it.hpos = 0;
move_it_to (&it, PT, -1, -1, -1, MOVE_TO_POS);
/* Move back if we got too far. This may happen if
truncate-lines is on and PT is beyond right margin. */
! if (IT_CHARPOS (it) > PT && it.vpos > 0 && XINT (lines) > 0)
move_it_by_lines (&it, -1, 0);
it.vpos = 0;
--- 2080,2093 ----
we end up with the iterator placed at where it thinks X is 0,
while the end position is really at some X > 0, the same X that
PT had. */
+ it_start = IT_CHARPOS (it);
reseat_at_previous_visible_line_start (&it);
it.current_x = it.hpos = 0;
move_it_to (&it, PT, -1, -1, -1, MOVE_TO_POS);
/* Move back if we got too far. This may happen if
truncate-lines is on and PT is beyond right margin. */
! if (IT_CHARPOS (it) > it_start && XINT (lines) > 0)
move_it_by_lines (&it, -1, 0);
it.vpos = 0;
- [Emacs-diffs] Changes to emacs/src/indent.c, Richard M . Stallman, 2004/11/13
- [Emacs-diffs] Changes to emacs/src/indent.c, Kim F . Storm, 2004/11/16
- [Emacs-diffs] Changes to emacs/src/indent.c, Richard M . Stallman, 2004/11/16
- [Emacs-diffs] Changes to emacs/src/indent.c, Kim F . Storm, 2004/11/18
- [Emacs-diffs] Changes to emacs/src/indent.c, Kim F . Storm, 2004/11/19
- [Emacs-diffs] Changes to emacs/src/indent.c,
Kim F . Storm <=
- [Emacs-diffs] Changes to emacs/src/indent.c, Stefan Monnier, 2004/11/23