sayanarijit / xplr

A hackable, minimal, fast TUI file explorer
https://xplr.dev
MIT License
4.23k stars 80 forks source link

xplr.util.is_file has a typo #712

Closed abhinavnatarajan closed 6 months ago

abhinavnatarajan commented 6 months ago

Code for xplr.util.is_file contains a typo.

https://github.com/sayanarijit/xplr/blob/ad8afa9d38bef21ba72abcee03759db2725cc932/src/lua/util.rs#L163

The line should read

lua.create_function(move |_, path: String| Ok(PathBuf::from(path).is_file()))?;