diff --git a/bash-pinyin-completion.cpp b/bash-pinyin-completion.cpp index e28078b..e6510c7 100644 --- a/bash-pinyin-completion.cpp +++ b/bash-pinyin-completion.cpp @@ -136,7 +136,11 @@ int main(int argc, char **argv) { if (!filesystem::exists(dest) || !filesystem::is_directory(dest)) { return 0; } - filesystem::current_path(dest); + try { + filesystem::current_path(dest); + } catch (filesystem::filesystem_error const& code) { + return 0; + } } // Call compgen at that dir auto compreply = split_string(run_command("/usr/bin/env bash -c \"compgen " + compgen_opts + "\""), '\n'); diff --git a/debian/changelog b/debian/changelog index 5cff5e4..4d128d7 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +bash-pinyin-completion (0.0.3+num1) unstable; urgency=medium + + * update changelog + + -- lichenggang Thu, 21 Aug 2025 15:16:00 +0800 + bash-pinyin-completion (0.0.3) unstable; urgency=medium * fix sshfs command tab shows multiple home.