summaryrefslogtreecommitdiffstats
path: root/common/complete.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/complete.c')
-rw-r--r--common/complete.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/complete.c b/common/complete.c
index 0780888cae..a6889ed5bb 100644
--- a/common/complete.c
+++ b/common/complete.c
@@ -221,7 +221,7 @@ static int env_param_complete(struct string_list *sl, char *instr, int eval)
end = ' ';
}
- instr_param = strrchr(instr, '.');
+ instr_param = strchr(instr, '.');
len = strlen(instr);
current_c = get_current_context();