nushell/crates/nu_plugin_textview
Tomas Koutsky 8b193db0cb
Fix VCS markers not showing up in textview (#3530)
Changes:
* Bug fix - bat adds markers only when a file path is passed and it can use git2
on it. It doesn't add markers when bytes are passed. Hence, the code is
adjusted accordingly. The sideeffect is files being opened multiple
times and its content being unnecessarily loaded in memory.
* Refactoring of the crate - Config is extracted to its struct file.
Repetitive blocks of code are dried and nested conditionals are
flattened.
2021-06-03 18:25:28 +12:00
..
src Fix VCS markers not showing up in textview (#3530) 2021-06-03 18:25:28 +12:00
Cargo.toml Fix VCS markers not showing up in textview (#3530) 2021-06-03 18:25:28 +12:00