aboutsummaryrefslogtreecommitdiffstats
path: root/src/cmds.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmds.c')
-rw-r--r--src/cmds.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cmds.c b/src/cmds.c
index f1e92ab2f75..494ef14db99 100644
--- a/src/cmds.c
+++ b/src/cmds.c
@@ -528,7 +528,8 @@ internal_self_insert (c, noautofill)
528 justification, if any, know where the end is going to be. */ 528 justification, if any, know where the end is going to be. */
529 SET_PT_BOTH (PT - 1, PT_BYTE - 1); 529 SET_PT_BOTH (PT - 1, PT_BYTE - 1);
530 tem = call0 (current_buffer->auto_fill_function); 530 tem = call0 (current_buffer->auto_fill_function);
531 if (c == '\n') 531 /* Test PT < ZV in case the auto-fill-function is strange. */
532 if (c == '\n' && PT < ZV)
532 SET_PT_BOTH (PT + 1, PT_BYTE + 1); 533 SET_PT_BOTH (PT + 1, PT_BYTE + 1);
533 if (!NILP (tem)) 534 if (!NILP (tem))
534 hairy = 2; 535 hairy = 2;