Skip to content

Commit

Permalink
Reset suggestions offset, when updating
Browse files Browse the repository at this point in the history
  • Loading branch information
Vankata453 committed Dec 15, 2023
1 parent 984ea8f commit a99fe41
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/interface/control_scriptbox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,7 @@ ControlScriptbox::on_caret_move()
line_content = line_content.substr(begin);

m_selected_suggestion = 0;
m_suggestions_offset = 0.f;
m_suggestions = squirrel::autocomplete(line_content, true);

calculate_suggestion_rect();
Expand Down

0 comments on commit a99fe41

Please sign in to comment.