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:
parent
feaf197cae
commit
1e6fbf548b
@ -74,11 +74,11 @@ void Buffer::reload(std::vector<String> lines, time_t fs_timestamp)
|
|||||||
for (auto listener : m_change_listeners)
|
for (auto listener : m_change_listeners)
|
||||||
listener->on_erase(*this, {0,0}, end_coord());
|
listener->on_erase(*this, {0,0}, end_coord());
|
||||||
|
|
||||||
m_history.clear();
|
m_history.clear();
|
||||||
m_current_undo_group.clear();
|
m_current_undo_group.clear();
|
||||||
m_history_cursor = m_history.begin();
|
m_history_cursor = m_history.begin();
|
||||||
m_last_save_undo_index = 0;
|
m_last_save_undo_index = 0;
|
||||||
m_lines.clear();
|
m_lines.clear();
|
||||||
++m_timestamp;
|
++m_timestamp;
|
||||||
|
|
||||||
if (lines.empty())
|
if (lines.empty())
|
||||||
|
@ -141,16 +141,16 @@ Selection select_surrounding(const Buffer& buffer, const Selection& selection,
|
|||||||
CodepointPair matching, int level,
|
CodepointPair matching, int level,
|
||||||
ObjectFlags flags)
|
ObjectFlags flags)
|
||||||
{
|
{
|
||||||
const bool nestable = matching.first != matching.second;
|
const bool nestable = matching.first != matching.second;
|
||||||
auto pos = selection.last();
|
auto pos = selection.last();
|
||||||
if (not nestable or flags & ObjectFlags::Inner)
|
if (not nestable or flags & ObjectFlags::Inner)
|
||||||
{
|
{
|
||||||
if (auto res = find_surrounding(buffer, pos, matching, flags, level))
|
if (auto res = find_surrounding(buffer, pos, matching, flags, level))
|
||||||
return *res;
|
return *res;
|
||||||
return selection;
|
return selection;
|
||||||
}
|
}
|
||||||
|
|
||||||
auto c = buffer.byte_at(pos);
|
auto c = buffer.byte_at(pos);
|
||||||
if ((flags == ObjectFlags::ToBegin and c == matching.first) or
|
if ((flags == ObjectFlags::ToBegin and c == matching.first) or
|
||||||
(flags == ObjectFlags::ToEnd and c == matching.second))
|
(flags == ObjectFlags::ToEnd and c == matching.second))
|
||||||
++level;
|
++level;
|
||||||
|
Loading…
Reference in New Issue
Block a user