summaryrefslogtreecommitdiff
path: root/src/cmds.c
diff options
context:
space:
mode:
authorJim Blandy <jimb@redhat.com>1992-05-18 08:13:37 +0000
committerJim Blandy <jimb@redhat.com>1992-05-18 08:13:37 +0000
commite629f0884e5803c0d303d07dd137d4321c7477ce (patch)
tree41ef57751430cca649b804004226987b7ae9d24c /src/cmds.c
parent1f7773424fb8c9b1b51f9eec2dd7ee7ade029ba5 (diff)
downloademacs-e629f0884e5803c0d303d07dd137d4321c7477ce.tar.gz
entered into RCS
Diffstat (limited to 'src/cmds.c')
-rw-r--r--src/cmds.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/cmds.c b/src/cmds.c
index 2a212ad6223..915c185bafc 100644
--- a/src/cmds.c
+++ b/src/cmds.c
@@ -1,11 +1,11 @@
/* Simple built-in editing commands.
- Copyright (C) 1985 Free Software Foundation, Inc.
+ Copyright (C) 1985, 1992 Free Software Foundation, Inc.
This file is part of GNU Emacs.
GNU Emacs is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 1, or (at your option)
+the Free Software Foundation; either version 2, or (at your option)
any later version.
GNU Emacs is distributed in the hope that it will be useful,
@@ -94,7 +94,8 @@ With positive ARG, a non-empty line at the end counts as one line\n\
pos = scan_buffer ('\n', pos2, count - negp, &shortage);
if (shortage > 0
&& (negp
- || (ZV >= BEGV
+ || (ZV > BEGV
+ && pos != pos2
&& FETCH_CHAR (pos - 1) != '\n')))
shortage--;
SET_PT (pos);