Skip to content

Commit

Permalink
[filter-ui] replace readline with textinput
Browse files Browse the repository at this point in the history
  • Loading branch information
tstack committed Feb 13, 2025
1 parent 1459ba4 commit ab57c05
Show file tree
Hide file tree
Showing 28 changed files with 1,216 additions and 550 deletions.
2 changes: 2 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,7 @@ add_library(
text_format.cc
text_overlay_menu.cc
textinput_curses.cc
textinput.history.cc
textfile_highlighters.cc
textfile_sub_source.cc
textview_curses.cc
Expand Down Expand Up @@ -667,6 +668,7 @@ add_library(
text_format.hh
text_overlay_menu.hh
textinput_curses.hh
textinput.history.hh
textfile_highlighters.hh
textfile_sub_source.hh
textfile_sub_source.cfg.hh
Expand Down
2 changes: 2 additions & 0 deletions src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,7 @@ noinst_HEADERS = \
text_format.hh \
text_overlay_menu.hh \
textinput_curses.hh \
textinput.history.hh \
textfile_highlighters.hh \
textfile_sub_source.hh \
textfile_sub_source.cfg.hh \
Expand Down Expand Up @@ -523,6 +524,7 @@ libdiag_a_SOURCES = \
state-extension-functions.cc \
sysclip.cc \
textinput_curses.cc \
textinput.history.cc \
textfile_highlighters.cc \
textview_curses.cc \
time-extension-functions.cc \
Expand Down
8 changes: 6 additions & 2 deletions src/base/injector.hh
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,12 @@ template<
T
get()
{
return singleton_storage<typename T::element_type,
Annotations...>::get_owner();
if (singleton_storage<typename T::element_type>::get_scope()
== scope::singleton)
{
return singleton_storage<typename T::element_type>::get_owner();
}
return std::make_shared<typename T::element_type>();
}

template<typename T, std::enable_if_t<is_vector<T>::value, bool> = true>
Expand Down
Loading

0 comments on commit ab57c05

Please sign in to comment.