summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2012-10-29 19:00:28 +0100
committerMaxime Coste <frrrwww@gmail.com>2012-10-29 19:00:28 +0100
commit6f2c69a0ebf5417abd075e04816a724791752a01 (patch)
tree1b01011364404143d6d4a91dced04fb448c458c7 /src
parentcc876f7107f33a860e7379992aefd3f8659b948f (diff)
fix adapt_for_linewise for Replace mode
Diffstat (limited to 'src')
-rw-r--r--src/main.cc2
1 files changed, 2 insertions, 0 deletions
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;