autoenable word completion while inserting
This commit is contained in:
parent
29b72b3e24
commit
bd0805cf3e
|
@ -438,6 +438,13 @@ public:
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
m_inserter.insert(String() + key.key);
|
m_inserter.insert(String() + key.key);
|
||||||
|
if (m_inserter.editor().selections().size() == 1 and
|
||||||
|
is_word(key.key))
|
||||||
|
{
|
||||||
|
m_completer.reset(context);
|
||||||
|
reset_completer = false;
|
||||||
|
m_completer.select(context, 0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case Key::Modifiers::Control:
|
case Key::Modifiers::Control:
|
||||||
|
|
|
@ -125,6 +125,7 @@ public:
|
||||||
void move_cursors(const BufferCoord& offset);
|
void move_cursors(const BufferCoord& offset);
|
||||||
|
|
||||||
Buffer& buffer() const { return m_editor.buffer(); }
|
Buffer& buffer() const { return m_editor.buffer(); }
|
||||||
|
Editor& editor() const { return m_editor; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
InsertMode m_mode;
|
InsertMode m_mode;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user