File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,15 @@ func (m Model) renderFooter(width int, includeTop bool) string {
34
34
35
35
// paged feature enabled
36
36
if m .pageSize != 0 {
37
- sections = append (sections , fmt .Sprintf ("%d/%d" , m .CurrentPage (), m .MaxPages ()))
37
+ str := fmt .Sprintf ("%d/%d" , m .CurrentPage (), m .MaxPages ())
38
+ if m .filtered && m .filterTextInput .Focused () {
39
+ // Need to apply inline style here in case of filter input cursor, because
40
+ // the input cursor resets the style after rendering. Note that Inline(true)
41
+ // creates a copy, so it's safe to use here without mutating the underlying
42
+ // base style.
43
+ str = m .baseStyle .Inline (true ).Render (str )
44
+ }
45
+ sections = append (sections , str )
38
46
}
39
47
40
48
footerText := strings .Join (sections , " " )
You can’t perform that action at this time.
0 commit comments