aboutsummaryrefslogtreecommitdiffstats
path: root/src/cmds.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmds.c')
-rw-r--r--src/cmds.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/cmds.c b/src/cmds.c
index 20234638778..9a05218b77b 100644
--- a/src/cmds.c
+++ b/src/cmds.c
@@ -131,12 +131,7 @@ successfully moved (for the return value). */)
131 count = XINT (n); 131 count = XINT (n);
132 } 132 }
133 133
134 if (count <= 0) 134 shortage = scan_newline_from_point (count, &pos, &pos_byte);
135 pos = find_newline (PT, PT_BYTE, BEGV, BEGV_BYTE, count - 1,
136 &shortage, &pos_byte, 1);
137 else
138 pos = find_newline (PT, PT_BYTE, ZV, ZV_BYTE, count,
139 &shortage, &pos_byte, 1);
140 135
141 SET_PT_BOTH (pos, pos_byte); 136 SET_PT_BOTH (pos, pos_byte);
142 137