summaryrefslogtreecommitdiff
path: root/src/input_handler.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2013-03-15 18:20:35 +0100
committerMaxime Coste <frrrwww@gmail.com>2013-03-15 18:22:08 +0100
commita981d41cdefe113876780e4da9718a33a8080393 (patch)
treeb7321c86d3829a1f070be8a35721ffe5e884757e /src/input_handler.cc
parent5e88b7fe283e66c3afebc4f287fbea72be41374e (diff)
Editor: replace selections().back() with main_selection()
Diffstat (limited to 'src/input_handler.cc')
-rw-r--r--src/input_handler.cc2
1 files changed, 1 insertions, 1 deletions
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);