dirlist: remove the additional filtering in Draw()
This commit is contained in:
parent
d7fecf7740
commit
0abca31c15
1 changed files with 0 additions and 7 deletions
|
@ -122,13 +122,6 @@ func (dirlist *DirectoryList) Draw(ctx *ui.Context) {
|
||||||
if row >= ctx.Height() {
|
if row >= ctx.Height() {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
if len(dirlist.acctConf.Folders) > 1 && name != dirlist.selected {
|
|
||||||
idx := sort.SearchStrings(dirlist.acctConf.Folders, name)
|
|
||||||
if idx == len(dirlist.acctConf.Folders) ||
|
|
||||||
dirlist.acctConf.Folders[idx] != name {
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
}
|
|
||||||
style := tcell.StyleDefault
|
style := tcell.StyleDefault
|
||||||
if name == dirlist.selected {
|
if name == dirlist.selected {
|
||||||
style = style.Reverse(true)
|
style = style.Reverse(true)
|
||||||
|
|
Loading…
Reference in a new issue