1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-12-26 04:52:53 +03:00

Small formatting fixes

This commit is contained in:
Maxime Coste 2014-12-29 12:19:16 +00:00
parent 8cc96ec36b
commit 955d1dea66
2 changed files with 3 additions and 2 deletions

View File

@ -201,8 +201,9 @@ void Client::check_buffer_fs_timestamp()
m_input_handler.on_next_key(KeymapMode::None, m_input_handler.on_next_key(KeymapMode::None,
[this, filename](Key key, Context& context) { [this, filename](Key key, Context& context) {
Buffer* buf = BufferManager::instance().get_buffer_ifp(filename);
m_ui->info_hide(); m_ui->info_hide();
Buffer* buf = BufferManager::instance().get_buffer_ifp(filename);
// buffer got deleted while waiting for the key, do nothing // buffer got deleted while waiting for the key, do nothing
if (not buf) if (not buf)
return; return;

View File

@ -345,7 +345,7 @@ Selection select_paragraph(const Buffer& buffer, const Selection& selection, Obj
} }
if (flags & ObjectFlags::ToEnd) if (flags & ObjectFlags::ToEnd)
{ {
if (last != buffer.end() && is_eol(*last)) if (last != buffer.end() and is_eol(*last))
++last; ++last;
while (last != buffer.end()) while (last != buffer.end())
{ {