From 6f2c69a0ebf5417abd075e04816a724791752a01 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 29 Oct 2012 19:00:28 +0100 Subject: [PATCH] fix adapt_for_linewise for Replace mode --- src/main.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.cc b/src/main.cc index 29b455b5..b20a917c 100644 --- a/src/main.cc +++ b/src/main.cc @@ -172,6 +172,8 @@ static InsertMode adapt_for_linewise(InsertMode mode) return InsertMode::AppendAtLineEnd; if (mode == InsertMode::Insert) return InsertMode::InsertAtLineBegin; + if (mode == InsertMode::Replace) + return InsertMode::Replace; assert(false); return InsertMode::Insert;