Skip to content

Commit

Permalink
console.lua: remove useless assignment
Browse files Browse the repository at this point in the history
The lines in populate_log_with_matches()

if selected_match < first_match_to_print then
    first_match_to_print = selected_match

will set first_match_to_print to 1 even if it is not set here since
handle_edit() sets selected_match = 1.
  • Loading branch information
guidocella authored and kasper93 committed Jan 3, 2025
1 parent f3ed94b commit 00ff6e5
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion player/lua/console.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1033,7 +1033,6 @@ local function search_history()
searching_history = true
suggestion_buffer = {}
selectable_items = {}
first_match_to_print = 1

for i = 1, #history do
selectable_items[i] = history[#history + 1 - i]
Expand Down

0 comments on commit 00ff6e5

Please sign in to comment.