From e8b33bb7750299c5fd43b56811c532f7de1762d1 Mon Sep 17 00:00:00 2001 From: Hugo Wang Date: Fri, 4 Oct 2019 12:40:31 +0800 Subject: [PATCH] fixed an env completion issue --- CHANGELOG.md | 3 ++- src/completers/mod.rs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ef2e837..b1f0b2d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,12 +1,13 @@ # Change Logs -## 0.9.9 - master +## 0.9.9 - 2019-10-04 - Improved error messages for running scripts. - Fixed issue that `ls ~` does not work. - Fixed filename expansion issue for `2*`. - Updated math arithmetic recognize rule. - In scripting, test head's status should not be catched. +- Fixed a completion issue like `echo $USER /App`. ## 0.9.8 - 2019-06-20 diff --git a/src/completers/mod.rs b/src/completers/mod.rs index 30d3d29..ab830b6 100644 --- a/src/completers/mod.rs +++ b/src/completers/mod.rs @@ -25,7 +25,7 @@ fn for_make(line: &str) -> bool { } fn for_env(line: &str) -> bool { - libs::re::re_contains(line, r" *\$[_a-zA-Z0-9]*") + libs::re::re_contains(line, r" *\$[_a-zA-Z0-9]*$") } fn for_ssh(line: &str) -> bool {