aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/syntax.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/syntax.c b/src/syntax.c
index 1db16c589f7..ceb48f3ec37 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -1235,10 +1235,9 @@ and the function returns nil. Field boundaries are not noticed if\n\
1235 val = XINT (count) > 0 ? ZV : BEGV; 1235 val = XINT (count) > 0 ? ZV : BEGV;
1236 1236
1237 /* Avoid jumping out of an input field. */ 1237 /* Avoid jumping out of an input field. */
1238 if (NILP (Vinhibit_field_text_motion)) 1238 val = XFASTINT (Fconstrain_to_field (make_number (val), make_number (PT),
1239 val = XFASTINT (Fconstrain_to_field (make_number (val), make_number (PT), 1239 Qt, Qnil));
1240 Qt, Qnil)); 1240
1241
1242 SET_PT (val); 1241 SET_PT (val);
1243 return val == orig_val ? Qt : Qnil; 1242 return val == orig_val ? Qt : Qnil;
1244} 1243}