Skip to content

Commit f9ea682

Browse files
committed
Fix #38: ArduinoChoosePort doesn't work with built-in selection UI
1 parent 0d7911e commit f9ea682

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

autoload/arduino.vim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -701,10 +701,10 @@ function! arduino#Choose(title, raw_items, callback) abort
701701
\ 'options': '--prompt="'.a:title.': "'
702702
\ })
703703
else
704-
let labels = map(copy(items), {i, v ->
704+
let labels = map(copy(s:ConvertItemsToLabels(items)), {i, l ->
705705
\ i < 9
706-
\ ? ' '.(i+1).') '.v.label
707-
\ : (i+1).') '.v.label
706+
\ ? ' '.(i+1).') '.l
707+
\ : (i+1).') '.l
708708
\ })
709709
let labels = [" " . a:title] + labels
710710
let choice = inputlist(labels)

0 commit comments

Comments
 (0)