Skip to content

Commit

Permalink
Merge pull request #943 from myk002/myk_case_insensitive_autocomplete
Browse files Browse the repository at this point in the history
[gui/launcher] make launcher autocomplete case insensitive
  • Loading branch information
myk002 authored Jan 14, 2024
2 parents 45779a2 + 4f809d6 commit e7df0e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ Template for new versions:
- `gui/mass-remove`: can now remove zones
- `gui/mass-remove`: can now cancel removal for buildings and constructions
- `fix/stuck-instruments`: now handles instruments that are left in the "in job" state but that don't have any actual jobs associated with them
- `gui/launcher`: make autocomplete case insensitive

## Removed

Expand Down
2 changes: 1 addition & 1 deletion gui/launcher.lua
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ end
local function get_first_word(text)
local word = text:trim():split(' +')[1]
if word:startswith(':') then word = word:sub(2) end
return word
return word:lower()
end

local function get_command_count(command)
Expand Down

0 comments on commit e7df0e3

Please sign in to comment.