Workaround incomplete c++11 stdlib in gcc 4.8

This commit is contained in:
Maxime Coste 2015-05-26 19:04:29 +01:00
parent d1627dfa08
commit 1e04343178

View File

@ -198,7 +198,8 @@ void Buffer::reload(BufferLines lines, time_t fs_timestamp)
SharedString{lines[(int)(d.posB + line)]});
m_changes.push_back({ Change::Insert, it == m_lines.end(), cur_line, cur_line + d.len });
it = m_lines.insert(it, &lines[d.posB], &lines[d.posB + d.len]) + d.len;
m_lines.insert(it, &lines[d.posB], &lines[d.posB + d.len]);
it = m_lines.begin() + (int)(cur_line + d.len);
}
else if (d.mode == Diff::Remove)
{