diff options
| author | Xin LI <delphij@FreeBSD.org> | 2012-06-26 20:38:53 +0000 |
|---|---|---|
| committer | Xin LI <delphij@FreeBSD.org> | 2012-06-26 20:38:53 +0000 |
| commit | ae8c2162b0f1c1823dae013469f900b9882b77a2 (patch) | |
| tree | 9492f724d6c5c2081c7f6b978b27d62af6523d31 /edit.c | |
| parent | 5b2db585ea1bc974ea3553d32447fba4e9ec0c2a (diff) | |
Diffstat (limited to 'edit.c')
| -rw-r--r-- | edit.c | 21 |
1 files changed, 12 insertions, 9 deletions
@@ -1,12 +1,11 @@ -/* - * Copyright (C) 1984-2011 Mark Nudelman - * - * You may distribute under the terms of either the GNU General Public - * License or the Less License, as specified in the README file. - * - * For more information about less, or for information on how to - * contact the author, see the README file. - */ +/*
+ * Copyright (C) 1984-2012 Mark Nudelman
+ *
+ * You may distribute under the terms of either the GNU General Public
+ * License or the Less License, as specified in the README file.
+ *
+ * For more information, see the README file.
+ */
#include "less.h" @@ -310,6 +309,10 @@ edit_ifile(ifile) */ __djgpp_set_ctrl_c(1); #endif + } else if (strcmp(open_filename, FAKE_EMPTYFILE) == 0) + { + f = -1; + chflags |= CH_NODATA; } else if (strcmp(open_filename, FAKE_HELPFILE) == 0) { f = -1; |
