aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2004-12-12 18:16:53 +0000
committerRichard M. Stallman2004-12-12 18:16:53 +0000
commit5bf3adc151761c3bba733951601476ad5ea5f1b3 (patch)
tree61e4f8b9d25d4db191b41d97a42c5de6a8e39a8d
parentc8ae863bab35409270842cc464911633c0c9dcfa (diff)
downloademacs-5bf3adc151761c3bba733951601476ad5ea5f1b3.tar.gz
emacs-5bf3adc151761c3bba733951601476ad5ea5f1b3.zip
(Fvertical_motion): Call move_it_by_lines even if LINES = 0.
-rw-r--r--src/indent.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/indent.c b/src/indent.c
index b1af03b6977..49ee90b6360 100644
--- a/src/indent.c
+++ b/src/indent.c
@@ -2092,8 +2092,9 @@ whether or not it is currently displayed in some window. */)
2092 move_it_by_lines (&it, -1, 0); 2092 move_it_by_lines (&it, -1, 0);
2093 2093
2094 it.vpos = 0; 2094 it.vpos = 0;
2095 if (XINT (lines) != 0) 2095 /* Do this even if LINES is 0, so that we move back
2096 move_it_by_lines (&it, XINT (lines), 0); 2096 to the beginning of the current line as we ought. */
2097 move_it_by_lines (&it, XINT (lines), 0);
2097 2098
2098 SET_PT_BOTH (IT_CHARPOS (it), IT_BYTEPOS (it)); 2099 SET_PT_BOTH (IT_CHARPOS (it), IT_BYTEPOS (it));
2099 } 2100 }