Skip to content

Commit

Permalink
LF Search 3.46.5
Browse files Browse the repository at this point in the history
  • Loading branch information
shmuz committed Nov 18, 2024
1 parent db3df36 commit 15fc18c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
16 changes: 11 additions & 5 deletions lua_share/far2/message.lua
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,8 @@ local function Message (aText, aTitle, aButtons, aFlags, aHelpTopic, aId)
if param1 > 1 and param1 <= #tb_labels+1 then
local color = D[param1].color
if color then
for _,v in ipairs(param2) do
v.ForegroundColor, v.BackgroundColor = band(color,0xF), rshift(color,4)
for i,v in ipairs(param2) do
param2[i] = color
end
return param2
end
Expand Down Expand Up @@ -322,9 +322,15 @@ end
local function GetInvertedColor (element)
local color = far.AdvControl("ACTL_GETCOLOR", far.Colors[element])
local fc, bc = color.ForegroundColor, color.BackgroundColor
fc = band(bnot(fc), 0xF)
bc = band(bnot(bc), 0xF)
return bor(fc, lshift(bc, 4))
if 0 ~= band(color.Flags, F.FCF_FG_INDEX) then
fc = band(bnot(fc), 0xF)
bc = band(bnot(bc), 0xF)
return bor(fc, lshift(bc, 4))
else
color.ForegroundColor = bor(bnot(fc), 0xFF000000)
color.BackgroundColor = bor(bnot(bc), 0xFF000000)
return color
end
end

return {
Expand Down
2 changes: 1 addition & 1 deletion plugins/luafarsearch/build/define.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
-- Definitions
VER_MAJOR = "3"
VER_MINOR = "46"
VER_MICRO = "4"
VER_MICRO = "5"

MINFARVERSION = "{ 3, 0, 0, 4878 }"

Expand Down
3 changes: 3 additions & 0 deletions plugins/luafarsearch/doc/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
Legend: [+] added; [-] deleted; [*] changed; [!] fixed;
------------------------------------------------------------------

2024-11-18, v3.46.5
[!] Fix colors in Replace prompt messages (was unreadable with RGB colors).

2024-10-10, v3.46.4
[+] Dialog "Persistent settings".

Expand Down

0 comments on commit 15fc18c

Please sign in to comment.