From fc2dd599a3ff14fa207a1cb002b0974125eff16f Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 18 Feb 2013 14:07:30 +0100 Subject: Move last insert state from context to input handler --- src/input_handler.hh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/input_handler.hh') diff --git a/src/input_handler.hh b/src/input_handler.hh index 6b260dcb..9089273d 100644 --- a/src/input_handler.hh +++ b/src/input_handler.hh @@ -71,6 +71,9 @@ private: friend class InputMode; std::unique_ptr m_mode; std::vector> m_mode_trash; + + using Insertion = std::pair>; + Insertion m_last_insert = {InsertMode::Insert, {}}; }; struct prompt_aborted {}; -- cgit v1.2.3