diff options
| author | Jim Blandy | 1992-05-18 08:13:37 +0000 |
|---|---|---|
| committer | Jim Blandy | 1992-05-18 08:13:37 +0000 |
| commit | 502ddf238f0ed280a301426804b2ed16ec1c49cc (patch) | |
| tree | b73b5866ff8c59b1be99067bcb342aea95294e8c /src/cmds.c | |
| parent | f9f15513851223c20a9cbc49ac0cd4cde114a963 (diff) | |
| download | emacs-502ddf238f0ed280a301426804b2ed16ec1c49cc.tar.gz emacs-502ddf238f0ed280a301426804b2ed16ec1c49cc.zip | |
entered into RCS
Diffstat (limited to 'src/cmds.c')
| -rw-r--r-- | src/cmds.c | 7 |
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 @@ | |||
| 1 | /* Simple built-in editing commands. | 1 | /* Simple built-in editing commands. |
| 2 | Copyright (C) 1985 Free Software Foundation, Inc. | 2 | Copyright (C) 1985, 1992 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
| 6 | GNU Emacs is free software; you can redistribute it and/or modify | 6 | GNU Emacs is free software; you can redistribute it and/or modify |
| 7 | it under the terms of the GNU General Public License as published by | 7 | it under the terms of the GNU General Public License as published by |
| 8 | the Free Software Foundation; either version 1, or (at your option) | 8 | the Free Software Foundation; either version 2, or (at your option) |
| 9 | any later version. | 9 | any later version. |
| 10 | 10 | ||
| 11 | GNU Emacs is distributed in the hope that it will be useful, | 11 | 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\ | |||
| 94 | pos = scan_buffer ('\n', pos2, count - negp, &shortage); | 94 | pos = scan_buffer ('\n', pos2, count - negp, &shortage); |
| 95 | if (shortage > 0 | 95 | if (shortage > 0 |
| 96 | && (negp | 96 | && (negp |
| 97 | || (ZV >= BEGV | 97 | || (ZV > BEGV |
| 98 | && pos != pos2 | ||
| 98 | && FETCH_CHAR (pos - 1) != '\n'))) | 99 | && FETCH_CHAR (pos - 1) != '\n'))) |
| 99 | shortage--; | 100 | shortage--; |
| 100 | SET_PT (pos); | 101 | SET_PT (pos); |