1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-12-01 08:23:05 +03:00

Small code tweak

This commit is contained in:
Maxime Coste 2017-05-27 06:17:23 +01:00
parent 0b592c5641
commit f57e72ab4a

View File

@ -122,7 +122,7 @@ WindowAndSelections ClientManager::get_free_window(Buffer& buffer)
void ClientManager::add_free_window(std::unique_ptr<Window>&& window, SelectionList selections) void ClientManager::add_free_window(std::unique_ptr<Window>&& window, SelectionList selections)
{ {
window->clear_display_buffer(); window->clear_display_buffer();
m_free_windows.push_back({ std::move(window), SelectionList{ std::move(selections) } }); m_free_windows.push_back({std::move(window), std::move(selections)});
} }
void ClientManager::ensure_no_client_uses_buffer(Buffer& buffer) void ClientManager::ensure_no_client_uses_buffer(Buffer& buffer)