clean dir input
This commit is contained in:
parent
dfed84eb74
commit
536fc9e925
2 changed files with 5 additions and 1 deletions
|
@ -78,11 +78,14 @@ func newModel(fs []files.File, width, height int, readonly, preselected, once bo
|
|||
termheight: height,
|
||||
mode: mode,
|
||||
selected: map[string]bool{},
|
||||
workdir: workdir,
|
||||
files: fs,
|
||||
}
|
||||
)
|
||||
|
||||
if workdir != "" {
|
||||
m.workdir = filepath.Clean(workdir)
|
||||
}
|
||||
|
||||
rows := m.freshRows(preselected)
|
||||
|
||||
columns := []table.Column{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue