mirror of
https://github.com/jtdaugherty/brick.git
synced 2024-12-02 01:45:50 +03:00
Only position cursor when FileBrowser is actually focused
This commit is contained in:
parent
b0500f3bd6
commit
fc22b3439f
@ -734,7 +734,7 @@ renderFileInfo foc maxLen selFiles n listSel info =
|
||||
addAttr = maybe id (withDefAttr . attrForFileType) (fileInfoFileType info)
|
||||
body = addAttr (hLimit (maxLen + 1) $
|
||||
padRight Max $
|
||||
(if listSel then showCursor n (Location (0,0)) else id) $
|
||||
(if foc && listSel then showCursor n (Location (0,0)) else id) $
|
||||
str $ fileInfoSanitizedFilename info <> suffix)
|
||||
suffix = (if fileInfoFileType info == Just Directory then "/" else "") <>
|
||||
(if sel then "*" else "")
|
||||
|
Loading…
Reference in New Issue
Block a user