diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2013-04-22 18:49:52 +0200 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2013-04-22 18:49:52 +0200 |
| commit | 6df60f5d2ffcaa60e628e54b1df1a37dcf0bb6a2 (patch) | |
| tree | 8b71172891efdb4de3757027c7d1142b8a083bb8 /src/normal.cc | |
| parent | 86f6282cbe272f9d61d3c61a94c2ad5277b100c3 (diff) | |
use a DynamicSelectionList when searching as the buffer may be modified during the prompt
Diffstat (limited to 'src/normal.cc')
| -rw-r--r-- | src/normal.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/normal.cc b/src/normal.cc index 3b8db13a..7f178bbb 100644 --- a/src/normal.cc +++ b/src/normal.cc @@ -223,7 +223,7 @@ template<SelectMode mode, bool forward> void search(Context& context) { const char* prompt = forward ? "search:" : "reverse search:"; - SelectionList selections = context.editor().selections(); + DynamicSelectionList selections{context.buffer(), context.editor().selections()}; context.input_handler().prompt(prompt, get_color("Prompt"), complete_nothing, [selections](const String& str, PromptEvent event, Context& context) { try |
