mirror of
https://github.com/gitui-org/gitui
synced 2026-05-23 08:58:21 +00:00
do not show spacing selection in non-highlight
This commit is contained in:
parent
30211b2a6b
commit
9e69f251a8
1 changed files with 11 additions and 4 deletions
|
|
@ -22,6 +22,7 @@ use itertools::Itertools;
|
|||
use ratatui::{
|
||||
backend::Backend,
|
||||
layout::{Alignment, Rect},
|
||||
style::Style,
|
||||
text::{Line, Span},
|
||||
widgets::{Block, Borders, Paragraph},
|
||||
Frame,
|
||||
|
|
@ -361,13 +362,19 @@ impl CommitList {
|
|||
ELEMENTS_PER_LINE + if marked.is_some() { 2 } else { 0 },
|
||||
);
|
||||
|
||||
let splitter_txt = Cow::from(symbol::EMPTY_SPACE);
|
||||
let splitter =
|
||||
Span::styled(splitter_txt, theme.text(true, selected));
|
||||
|
||||
let normal = !self.items.highlighting()
|
||||
|| (self.items.highlighting() && e.highlighted);
|
||||
|
||||
let splitter_txt = Cow::from(symbol::EMPTY_SPACE);
|
||||
let splitter = Span::styled(
|
||||
splitter_txt,
|
||||
if normal {
|
||||
theme.text(true, selected)
|
||||
} else {
|
||||
Style::default()
|
||||
},
|
||||
);
|
||||
|
||||
// marker
|
||||
if let Some(marked) = marked {
|
||||
txt.push(Span::styled(
|
||||
|
|
|
|||
Loading…
Reference in a new issue