diff options
| -rw-r--r-- | src/buffer.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buffer.cc b/src/buffer.cc index 858fba66..d96b727b 100644 --- a/src/buffer.cc +++ b/src/buffer.cc @@ -347,7 +347,7 @@ ByteCoord Buffer::do_insert(ByteCoord pos, StringView content) if (at_end) pos = append_lines ? line_count() : end_coord(); - const StringView prefix = at_end ? + const StringView prefix = append_lines ? StringView{} : m_lines[pos.line].substr(0, pos.column); const StringView suffix = at_end ? StringView{} : m_lines[pos.line].substr(pos.column); |
