Make history-related constants configurable
This commit is contained in:
@ -14,6 +14,7 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
use std::sync::Arc;
|
||||
use std::path::PathBuf;
|
||||
|
||||
use color_eyre::eyre::WrapErr;
|
||||
@ -29,7 +30,7 @@ fn config() -> Config {
|
||||
std::env::set_var("RATATRIX_CONFIG", PathBuf::from(".config/"));
|
||||
let c = Config::new();
|
||||
std::env::remove_var("RATATRIX_CONFIG");
|
||||
c.unwrap()
|
||||
Arc::new(c.unwrap())
|
||||
}
|
||||
|
||||
fn rect(x: u16, y: u16, width: u16, height: u16) -> Rect {
|
||||
|
Reference in New Issue
Block a user