summaryrefslogtreecommitdiffstats
path: root/src/readline_curses.hh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-07 04:48:35 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-07 04:48:35 +0000
commit207df6fc406e81bfeebdff7f404bd242ff3f099f (patch)
treea1a796b056909dd0a04ffec163db9363a8757808 /src/readline_curses.hh
parentReleasing progress-linux version 0.11.2-1~progress7.99u1. (diff)
downloadlnav-207df6fc406e81bfeebdff7f404bd242ff3f099f.tar.xz
lnav-207df6fc406e81bfeebdff7f404bd242ff3f099f.zip
Merging upstream version 0.12.2.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--src/readline_curses.hh11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/readline_curses.hh b/src/readline_curses.hh
index 55b2ff3..ac9f572 100644
--- a/src/readline_curses.hh
+++ b/src/readline_curses.hh
@@ -171,6 +171,10 @@ public:
void rewrite_line(int pos, const std::string& value);
+ void set_suggestion(const std::string& value);
+
+ bool is_active() const { return this->rc_active_context != -1; }
+
readline_context* get_active_context() const
{
require(this->rc_active_context != -1);
@@ -184,7 +188,9 @@ public:
void start();
- void do_update() override;
+ bool do_update() override;
+
+ bool handle_mouse(mouse_event& me) override;
void window_change();
@@ -272,6 +278,8 @@ public:
this->clear_possibilities(lnav::enums::to_underlying(context), args...);
}
+ void append_to_history(int context, const std::string& line);
+
const std::vector<std::string>& get_matches() const
{
return this->rc_matches;
@@ -328,6 +336,7 @@ private:
bool rc_is_alt_focus{false};
bool rc_ready_for_input{false};
std::string rc_remote_complete_path;
+ std::string rc_suggestion;
action rc_focus;
action rc_change;