From 40f4cc72aec04c1bb506e29856d3c075721991d5 Mon Sep 17 00:00:00 2001 From: joeyak Date: Thu, 18 Apr 2019 10:31:34 -0400 Subject: [PATCH] Make default selection the bottom option closes #86 --- wasm/suggestions.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wasm/suggestions.go b/wasm/suggestions.go index db879e2..2aa1c98 100644 --- a/wasm/suggestions.go +++ b/wasm/suggestions.go @@ -160,7 +160,7 @@ func updateSuggestionDiv() { if len(filteredSug) > 0 { // set current name to first if not set already if currentSug == "" { - currentSug = filteredSug[0] + currentSug = filteredSug[len(filteredSug)-1] } var hascurrentSuggestion bool