summaryrefslogtreecommitdiffstats
path: root/contrib/less/cmdbuf.c
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2012-07-24 01:09:11 +0000
committerdelphij <delphij@FreeBSD.org>2012-07-24 01:09:11 +0000
commite39250a384a3ca30e8cb4cfa39a696fa01008590 (patch)
treef62589b704975274e070eea934ccb4e46d830ae3 /contrib/less/cmdbuf.c
parent142df5fc8eb25ab65ff82ee819ffb79841bcba18 (diff)
downloadFreeBSD-src-e39250a384a3ca30e8cb4cfa39a696fa01008590.zip
FreeBSD-src-e39250a384a3ca30e8cb4cfa39a696fa01008590.tar.gz
MFV: less v451.
Diffstat (limited to 'contrib/less/cmdbuf.c')
-rw-r--r--contrib/less/cmdbuf.c20
1 files changed, 12 insertions, 8 deletions
diff --git a/contrib/less/cmdbuf.c b/contrib/less/cmdbuf.c
index 804a032..ec25096 100644
--- a/contrib/less/cmdbuf.c
+++ b/contrib/less/cmdbuf.c
@@ -1,11 +1,11 @@
-/*
- * 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.
- */
+/*
+ * 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.
+ */
/*
@@ -1087,7 +1087,11 @@ init_compl()
tk_text = fcomplete(word);
} else
{
+#if MSDOS_COMPILER
+ char *qword = NULL;
+#else
char *qword = shell_quote(word+1);
+#endif
if (qword == NULL)
tk_text = fcomplete(word+1);
else
OpenPOWER on IntegriCloud