Thread the right PWD through autosuggestions

These were getting / as the PWD, resulting in bogus suggestions.
This commit is contained in:
ridiculousfish
2019-01-11 15:04:09 -08:00
parent 455959ae7a
commit 59d62fdd53
2 changed files with 5 additions and 4 deletions

View File

@@ -1657,11 +1657,11 @@ maybe_t<env_var_t> env_vars_snapshot_t::get(const wcstring &key, env_mode_flags_
wcstring_list_t env_vars_snapshot_t::get_names(int flags) const { return names; }
const wchar_t *const env_vars_snapshot_t::highlighting_keys[] = {L"PATH", L"CDPATH",
L"fish_function_path", NULL};
const wchar_t *const env_vars_snapshot_t::highlighting_keys[] = {
L"PATH", L"CDPATH", L"fish_function_path", L"PWD", NULL};
const wchar_t *const env_vars_snapshot_t::completing_keys[] = {L"PATH", L"CDPATH",
L"fish_function_path", NULL};
L"fish_function_path", L"PWD", NULL};
#if defined(__APPLE__) || defined(__CYGWIN__)
static int check_runtime_path(const char *path) {