From 14f6015205f0479f25f46d6b62fccdff74d10847 Mon Sep 17 00:00:00 2001 From: April & May Date: Thu, 21 Aug 2025 15:09:11 +0800 Subject: [PATCH 1/2] Fix error when completing files without permission --- bash-pinyin-completion.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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'); From 8c1894fd2314fc8991bd05ad8eb9ad98d44180f9 Mon Sep 17 00:00:00 2001 From: lichenggang Date: Thu, 21 Aug 2025 15:19:42 +0800 Subject: [PATCH 2/2] feat: update changelog --- debian/changelog | 6 ++++++ 1 file changed, 6 insertions(+) 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.