mirror of
https://github.com/TermoraDev/termora.git
synced 2026-03-31 21:32:20 +08:00
fix: focus mode causes the background color to be selected incorrectly
This commit is contained in:
@@ -326,7 +326,8 @@ class TerminalDisplay(
|
|||||||
// Focus Mode
|
// Focus Mode
|
||||||
if (terminalModel.getData(TerminalPanel.FocusMode, false)) {
|
if (terminalModel.getData(TerminalPanel.FocusMode, false)) {
|
||||||
if (terminalModel.isAlternateScreenBuffer().not()) {
|
if (terminalModel.isAlternateScreenBuffer().not()) {
|
||||||
if (isCursorLine.not()) {
|
// https://github.com/TermoraDev/termora/issues/1471
|
||||||
|
if (isCursorLine.not() && hasSelection.not()) {
|
||||||
background = colorPalette.getColor(TerminalColor.Basic.BACKGROUND)
|
background = colorPalette.getColor(TerminalColor.Basic.BACKGROUND)
|
||||||
foreground = UIManager.getColor("textInactiveText").rgb
|
foreground = UIManager.getColor("textInactiveText").rgb
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user