about summary refs log tree commit diff
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2004-02-10 19:16:16 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2004-02-10 19:16:16 +0000
commit4c1e94f9512d7b3373cf768c368c8403a8f09c47 (patch)
treef723bb8afd38b504f8a7dc4f563a882923cea26d
parent4767d72e6f19352fffd287cdb315ab091681efd8 (diff)
downloadzsh-4c1e94f9512d7b3373cf768c368c8403a8f09c47.tar.gz
zsh-4c1e94f9512d7b3373cf768c368c8403a8f09c47.tar.xz
zsh-4c1e94f9512d7b3373cf768c368c8403a8f09c47.zip
19409: handle situation where the user has the nounset option set
-rw-r--r--ChangeLog8
-rw-r--r--Completion/Base/Widget/_generic2
2 files changed, 9 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index fad79a9b1..38e6c6724 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2004-02-10  Oliver Kiddle  <opk@zsh.org>
+
+	* 19415: Doc/Zsh/options.yo: fix documentation to indicate that
+	short_loops option is applicable to repeat loops too
+
+	* 19409: Completion/Base/Widget/_generic: handle situation where
+	the user has the nounset option set
+
 2004-02-09  Wayne Davison  <wayned@users.sourceforge.net>
 
 	* 19410: Src/Zle/compmatch.c: Another fix to avoid a match that
diff --git a/Completion/Base/Widget/_generic b/Completion/Base/Widget/_generic
index 9a6b4401f..8a943d281 100644
--- a/Completion/Base/Widget/_generic
+++ b/Completion/Base/Widget/_generic
@@ -1,6 +1,6 @@
 #autoload
 
-local curcontext="$curcontext"
+local curcontext="${curcontext:-}"
 
 if [[ -z "$curcontext" ]]; then
   curcontext="${WIDGET}:::"