summaryrefslogtreecommitdiff
path: root/src/buffer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer.cc')
-rw-r--r--src/buffer.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buffer.cc b/src/buffer.cc
index be3ca7a2..8b5f6ee5 100644
--- a/src/buffer.cc
+++ b/src/buffer.cc
@@ -180,7 +180,7 @@ void Buffer::reload(BufferLines lines, time_t fs_timestamp)
auto diff = find_diff(m_lines.begin(), m_lines.size(),
lines.begin(), (int)lines.size(),
[](const StringDataPtr& lhs, const StringDataPtr& rhs)
- { return lhs->strview() == rhs->strview(); });
+ { return lhs->hash == rhs->hash and lhs->strview() == rhs->strview(); });
auto it = m_lines.begin();
for (auto& d : diff)