1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-11-28 01:00:28 +03:00

Fix some tabs in the code

This commit is contained in:
Maxime Coste 2014-01-05 14:30:26 +00:00
parent feaf197cae
commit 1e6fbf548b
2 changed files with 11 additions and 11 deletions

View File

@ -74,11 +74,11 @@ void Buffer::reload(std::vector<String> lines, time_t fs_timestamp)
for (auto listener : m_change_listeners)
listener->on_erase(*this, {0,0}, end_coord());
m_history.clear();
m_current_undo_group.clear();
m_history_cursor = m_history.begin();
m_last_save_undo_index = 0;
m_lines.clear();
m_history.clear();
m_current_undo_group.clear();
m_history_cursor = m_history.begin();
m_last_save_undo_index = 0;
m_lines.clear();
++m_timestamp;
if (lines.empty())

View File

@ -141,16 +141,16 @@ Selection select_surrounding(const Buffer& buffer, const Selection& selection,
CodepointPair matching, int level,
ObjectFlags flags)
{
const bool nestable = matching.first != matching.second;
auto pos = selection.last();
if (not nestable or flags & ObjectFlags::Inner)
{
const bool nestable = matching.first != matching.second;
auto pos = selection.last();
if (not nestable or flags & ObjectFlags::Inner)
{
if (auto res = find_surrounding(buffer, pos, matching, flags, level))
return *res;
return selection;
}
}
auto c = buffer.byte_at(pos);
auto c = buffer.byte_at(pos);
if ((flags == ObjectFlags::ToBegin and c == matching.first) or
(flags == ObjectFlags::ToEnd and c == matching.second))
++level;