Skip to content

Commit

Permalink
Correction of 5788 - visual artefacts during selection
Browse files Browse the repository at this point in the history
  • Loading branch information
alabuzhev committed May 8, 2021
1 parent 305c5ca commit 132d454
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
5 changes: 5 additions & 0 deletions far/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
--------------------------------------------------------------------------------
drkns 08.05.2021 14:53:05 +0100 - build 5795

1. Correction of 5788 - visual artefacts during selection.

--------------------------------------------------------------------------------
drkns 07.05.2021 22:26:27 +0100 - build 5794

Expand Down
11 changes: 10 additions & 1 deletion far/edit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,16 @@ void Edit::FastShow(const ShowInfo* Info)
}
else
{
Global->ScrBuf->ApplyColor({ m_Where.left + TabSelStart, m_Where.top, m_Where.left + TabSelEnd - 1, m_Where.top }, GetSelectedColor(), ScreenBuf::apply_mode::color);
Global->ScrBuf->ApplyColor(
{
std::min(m_Where.left + TabSelStart, static_cast<int>(m_Where.right)),
m_Where.top,
std::min(m_Where.left + TabSelEnd - 1, static_cast<int>(m_Where.right)),
m_Where.top
},
GetSelectedColor(),
ScreenBuf::apply_mode::color
);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion far/vbuild.m4
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5794
5795

0 comments on commit 132d454

Please sign in to comment.