aboutsummaryrefslogtreecommitdiffhomepage
path: root/complete.h
diff options
context:
space:
mode:
authorGravatar Kevin Ballard <kevin@sb.org>2014-09-02 14:53:19 -0700
committerGravatar Kevin Ballard <kevin@sb.org>2014-09-02 15:30:58 -0700
commitedd4f3d5adb6b532ebc0e6633915613b39d0dba5 (patch)
treeda39239441d94bbbe4d51fa631cf08a52781b48d /complete.h
parentaa7fe3b1322e5cc912d6b132b7738a6c46b24046 (diff)
Don't erase old-style options with `complete -l foo -e`
When erasing long option completions, distinguish between gnu-style and old-style options, just like we do when adding and printing completions.
Diffstat (limited to 'complete.h')
-rw-r--r--complete.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/complete.h b/complete.h
index 45eb2dc0..b5ad98c5 100644
--- a/complete.h
+++ b/complete.h
@@ -207,7 +207,8 @@ void complete_set_authoritative(const wchar_t *cmd, bool cmd_type, bool authorit
void complete_remove(const wchar_t *cmd,
bool cmd_is_path,
wchar_t short_opt,
- const wchar_t *long_opt);
+ const wchar_t *long_opt,
+ int long_mode);
/** Find all completions of the command cmd, insert them into out.