diff options
author | michaels <michaels@cvs.openbsd.org> | 1996-10-16 01:19:02 +0000 |
---|---|---|
committer | michaels <michaels@cvs.openbsd.org> | 1996-10-16 01:19:02 +0000 |
commit | bbac58ea85fcdd5f15449819005e17cd93c3e14a (patch) | |
tree | 46cac5bf539a167855f9d647a2047e9d9fe89608 /usr.bin/vi/ex/ex_bang.c | |
parent | bdd4fa6809d3bd31f8890df0ca821dcfd660042f (diff) |
nvi 1.78:
+ Fix bugs when both the leftright scrolling and number edit options
were on.
+ Fix bug where splitting in the middle of the screen could repaint
incorrectly.
+ Fix first-nul in input bug, where random garbage was inserted.
+ Correct search and mark-as-motion-command bug, it's a line mode
action if the search starts at or before the first non<blank>.
+ Fix bug autoindent bug, where ^D could shift too far in the line.
+ Fix core dump where ! command called from the .exrc file.
+ Add the -S command-line option, which initializes vi to have the
secure edit option preset.
Diffstat (limited to 'usr.bin/vi/ex/ex_bang.c')
-rw-r--r-- | usr.bin/vi/ex/ex_bang.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/vi/ex/ex_bang.c b/usr.bin/vi/ex/ex_bang.c index e9c9dbfdd2d..25f3f7732ab 100644 --- a/usr.bin/vi/ex/ex_bang.c +++ b/usr.bin/vi/ex/ex_bang.c @@ -10,7 +10,7 @@ #include "config.h" #ifndef lint -static const char sccsid[] = "@(#)ex_bang.c 10.32 (Berkeley) 5/18/96"; +static const char sccsid[] = "@(#)ex_bang.c 10.33 (Berkeley) 9/23/96"; #endif /* not lint */ #include <sys/types.h> @@ -94,14 +94,14 @@ ex_bang(sp, cmdp) } /* - * If no addresses were specified, run the command. If the file has - * been modified and autowrite is set, write the file back. If the - * file has been modified, autowrite is not set and the warn option is - * set, tell the user about the file. + * If no addresses were specified, run the command. If there's an + * underlying file, it's been modified and autowrite is set, write + * the file back. If the file has been modified, autowrite is not + * set and the warn option is set, tell the user about the file. */ if (cmdp->addrcnt == 0) { msg = NULL; - if (F_ISSET(sp->ep, F_MODIFIED)) + if (sp->ep != NULL && F_ISSET(sp->ep, F_MODIFIED)) if (O_ISSET(sp, O_AUTOWRITE)) { if (file_aw(sp, FS_ALL)) return (0); |