Browse Source

Add directory separator to autocomplete. Fixes #984

bigbear2nd 11 years ago
parent
commit
af08567f24
1 changed files with 1 additions and 1 deletions
  1. 1 1
      cmd/syncthing/gui.go

+ 1 - 1
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
 			}