Skip to content

Commit

Permalink
Flickering fix
Browse files Browse the repository at this point in the history
  • Loading branch information
praydog committed Jun 1, 2023
1 parent e3684cd commit ce6cc1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mods/vr/CVarManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -233,11 +233,11 @@ void CVarManager::display_console() {
args.push_back(arg);
}

m_console.autocomplete.clear();

if (!args.empty()) {
GameThreadWorker::get().enqueue([console_manager, args, this]() {
std::scoped_lock _{m_console.autocomplete_mutex};
m_console.autocomplete.clear();

const auto possible_commands = console_manager->fuzzy_find(utility::widen(args[0]));

for (const auto& command : possible_commands) {
Expand Down

0 comments on commit ce6cc1e

Please sign in to comment.