diff options
| author | Maxime Coste <mawww@kakoune.org> | 2025-02-16 10:17:00 +1100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2025-02-16 10:17:00 +1100 |
| commit | 026284deb250ae420ea97f90a716fdda3ab6224f (patch) | |
| tree | 9faadc0e33ba4c15ba12945c1590ec9dfe95aca7 /src/commands.cc | |
| parent | 0a4bea856fe6ddd6420d6d7141b20eed8fe0bd25 (diff) | |
Revert "WIP history register"
This is not finished yet, and pushed by accident, again...
This reverts commit 22b461c3a0b22dd4501943230f0774c34f0b4b35.
Diffstat (limited to 'src/commands.cc')
| -rw-r--r-- | src/commands.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/commands.cc b/src/commands.cc index 086097ec..0f892004 100644 --- a/src/commands.cc +++ b/src/commands.cc @@ -2269,7 +2269,6 @@ const CommandDesc prompt_cmd = { { "shell-completion", { {}, "use shell command completion for prompt" } }, { "shell-script-completion", { ArgCompleter{}, "use shell command completion for prompt" } }, { "shell-script-candidates", { ArgCompleter{}, "use shell command completion for prompt" } }, - { "history-register", { ArgCompleter{}, "register to read and store history to, default to '_'"} }, { "on-change", { ArgCompleter{}, "command to execute whenever the prompt changes" } }, { "on-abort", { ArgCompleter{}, "command to execute whenever the prompt is canceled" } } }, ParameterDesc::Flags::None, 2, 2 @@ -2289,11 +2288,9 @@ const CommandDesc prompt_cmd = { const auto flags = parser.get_switch("password") ? PromptFlags::Password : PromptFlags::None; - auto history_register = RegisterManager::parse_register_name(parser.get_switch("history-register").value_or("_")); - context.input_handler().prompt( parser[0], initstr.str(), {}, context.faces()["Prompt"], - flags, history_register, std::move(completer), + flags, '_', std::move(completer), [command, on_change = parser.get_switch("on-change").value_or("").str(), on_abort = parser.get_switch("on-abort").value_or("").str(), |
