Skip to content

Commit

Permalink
Fix #575; error when color.executable is set and `color.unrecognize…
Browse files Browse the repository at this point in the history
…d` is not.

Regression introduced in v1.6.2 by an optimization.
  • Loading branch information
chrisant996 committed Mar 19, 2024
1 parent 242b68e commit 408fb65
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions clink/lua/scripts/arguments.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2866,11 +2866,11 @@ function argmatcher_classifier:classify(commands) -- luacheck: no self
local cl
local recognized = clink._recognize_command(line_state:getline(), command_word, info.quoted)
if recognized < 0 then
cl = unrecognized_color and "u" --unrecognized
cl = unrecognized_color and "u" or "o" --unrecognized
elseif recognized > 0 then
cl = executable_color and "x" --executable
cl = executable_color and "x" or "o" --executable
else
cl = "o" --other
cl = "o" --other
end
word_classifier:classifyword(command_word_index, m..cl, false);
else
Expand Down

0 comments on commit 408fb65

Please sign in to comment.