Skip to content

Commit

Permalink
Remove workaround for transparent editor highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
alabuzhev committed Jun 14, 2021
1 parent 956e9de commit 278be7d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
7 changes: 7 additions & 0 deletions far/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
--------------------------------------------------------------------------------
drkns 14.06.2021 19:10:39 +0100 - build 5821

1. Removed the workaround for plugins that erroneously add transparent editor highlighting.
Transparency is now taken into account.
If your plugin/script suddenly stopped working - fill the colors properly.

--------------------------------------------------------------------------------
drkns 12.06.2021 12:39:43 +0100 - build 5820

Expand Down
8 changes: 1 addition & 7 deletions far/editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5662,13 +5662,7 @@ int Editor::EditorControl(int Command, intptr_t Param1, void *Param2)
ColorItem newcol;
newcol.StartPos=col->StartPos;
newcol.EndPos=col->EndPos;

// BUGBUG Colorer sends transparent colors
auto OpaqueColor = col->Color;
colors::make_opaque(OpaqueColor.ForegroundColor);
colors::make_opaque(OpaqueColor.BackgroundColor);
newcol.SetColor(OpaqueColor);

newcol.SetColor(col->Color);
newcol.Flags=col->Flags;
newcol.SetOwner(col->Owner);
newcol.Priority=col->Priority;
Expand Down
2 changes: 1 addition & 1 deletion far/vbuild.m4
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5820
5821

0 comments on commit 278be7d

Please sign in to comment.