From ee14efd3c23a801cc4edbaacb9d7bdcc7b7da4e6 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Sat, 10 Jun 2017 10:43:38 +0100 Subject: [PATCH] config: fix menu selection when no remotes --- fs/config.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/config.go b/fs/config.go index 993dacae1..3c2edbac3 100644 --- a/fs/config.go +++ b/fs/config.go @@ -1058,7 +1058,8 @@ func EditConfig() { fmt.Printf("\n") } else { fmt.Printf("No remotes found - make a new one\n") - what = append(what[1:2], what[3:]...) + // take 2nd item and last 2 items of menu list + what = append(what[1:2], what[len(what)-2:]...) } switch i := Command(what); i { case 'e':