From af08567f241f2d910d6589e6741b7b4943004ab0 Mon Sep 17 00:00:00 2001 From: bigbear2nd Date: Thu, 20 Nov 2014 00:26:06 +0900 Subject: [PATCH] Add directory separator to autocomplete. Fixes #984 --- cmd/syncthing/gui.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/syncthing/gui.go b/cmd/syncthing/gui.go index 4cda88248..f330ea00f 100644 --- a/cmd/syncthing/gui.go +++ b/cmd/syncthing/gui.go @@ -658,7 +658,7 @@ func restGetAutocompleteDirectory(w http.ResponseWriter, r *http.Request) { for _, subdirectory := range subdirectories { info, err := os.Stat(subdirectory) if err == nil && info.IsDir() { - ret = append(ret, subdirectory) + ret = append(ret, subdirectory + pathSeparator) if len(ret) > 9 { break }