From a981d41cdefe113876780e4da9718a33a8080393 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Fri, 15 Mar 2013 18:20:35 +0100 Subject: Editor: replace selections().back() with main_selection() --- src/input_handler.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/input_handler.cc') diff --git a/src/input_handler.cc b/src/input_handler.cc index b54b790f..658b0d56 100644 --- a/src/input_handler.cc +++ b/src/input_handler.cc @@ -549,7 +549,7 @@ private: { if (not m_position.is_valid()) { - BufferIterator cursor = m_context.editor().selections().back().last(); + BufferIterator cursor = m_context.editor().main_selection().last(); auto completions = complete_opt(cursor, m_context.options()); if (completions.first.empty()) completions = complete_word(cursor); -- cgit v1.2.3