about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--Completion/X/Command/_vnc2
2 files changed, 3 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 78e378a27..094f5c147 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,5 @@
+	* 14255: Completion/X/Command/_vnc: fix guard for display numbers
+
 2001-05-08  Peter Stephenson  <pws@csr.com>
 
 	* Andrej: 14248: Src/Modules/zpty.c, Test/comptest: don't use
diff --git a/Completion/X/Command/_vnc b/Completion/X/Command/_vnc
index 094fa0d9e..cd619c6f0 100644
--- a/Completion/X/Command/_vnc
+++ b/Completion/X/Command/_vnc
@@ -13,7 +13,7 @@ case $service in
 	'-geometry:geometry:(1600x1200 1280x1024 1152x864 1024x768 800x600 640x480)' \
 	'-depth:pixel depth:(8 16 24 32)' \
 	'-pixelformat:pixel format' \
-	'1::display number:_guard ":[0-9]#"' \
+	'1::display number:_guard "(|:[0-9]#)"' \
       - kill \
 	"-kill:display number:($displays)" \
       - help \