Skip to content
Permalink
Browse files

port client: fix small bug in ui_ask_yesno

This patch fixes a small UI bug: if yesno is called with only one port
in the ports as list, it will be displayed as `{portname}`. By
explicitly getting `lindex` we can avoid the extra curly braces.
  • Loading branch information
g5pw authored and neverpanic committed Mar 12, 2018
1 parent 3578400 commit c0a601c8f9dbf64cd1d8efc148f81d7f0283fc4c
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/port/port.tcl
@@ -5439,7 +5439,7 @@ namespace eval portclient::questions {
# Print portname or port list suitably
if {[llength $ports] == 1} {
puts -nonewline " "
puts [string map {@ " @"} $ports]
puts [string map {@ " @"} [lindex $ports 0]]
} elseif {[llength $ports] == 0} {
puts -nonewline " "
} else {

0 comments on commit c0a601c

Please sign in to comment.
You can’t perform that action at this time.