mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-24 12:02:15 +03:00
small code cleanups
This commit is contained in:
parent
7acf11c851
commit
3917d26709
@ -394,7 +394,7 @@ Vector<String> list_files(StringView dirname, Filter filter)
|
||||
if (not dir)
|
||||
return {};
|
||||
|
||||
auto closeDir = on_scope_end([=]{ closedir(dir); });
|
||||
auto close_dir = on_scope_end([dir]{ closedir(dir); });
|
||||
|
||||
Vector<String> result;
|
||||
while (dirent* entry = readdir(dir))
|
||||
|
@ -1480,7 +1480,7 @@ void InputHandler::handle_key(Key key)
|
||||
{
|
||||
const bool was_recording = is_recording();
|
||||
++m_handle_key_level;
|
||||
auto dec = on_scope_end([&]{ --m_handle_key_level; });
|
||||
auto dec = on_scope_end([this]{ --m_handle_key_level; });
|
||||
|
||||
auto keymap_mode = current_mode().keymap_mode();
|
||||
KeymapManager& keymaps = m_context.keymaps();
|
||||
|
Loading…
Reference in New Issue
Block a user