mirror of
https://github.com/syncthing/syncthing.git
synced 2025-12-23 22:18:14 -05:00
### Purpose Path autocompletion wasn't working when using `~` as a shortcut for the home directory. The issue occurred because the tilde was expanded to /home/user, which caused the suggestion to no longer match the input (thus preventing the autocompletion from appearing in the suggestion list). To fix this, I replaced the custom `parentAndBase` function, which handled path splitting in a more complex way, with `filepath.Split` from the standard `path/filepath` package. This prevents tilde expansion while keeping the expected behavior for path splitting. ### Testing The issue has been tested manually on Linux. ### Screenshots 