sayanarijit / xplr

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

xplr.util.is_file has a typo #712

Closed abhinavnatarajan closed 2 months ago

abhinavnatarajan commented 2 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()))?;