further work on implementing vi features

This commit is contained in:
2025-05-22 03:36:27 -04:00
parent 47759a05d4
commit ac170d31c8
13 changed files with 1871 additions and 1624 deletions

View File

@@ -3,7 +3,7 @@ pub mod highlight;
use std::path::Path;
use readline::FernReader;
use readline::FernVi;
use crate::{expand::expand_prompt, libsh::error::ShResult, prelude::*, state::read_shopts};
@@ -22,6 +22,6 @@ fn get_prompt() -> ShResult<String> {
pub fn read_line() -> ShResult<String> {
let prompt = get_prompt()?;
let mut reader = FernReader::new(prompt);
let mut reader = FernVi::new(Some(prompt));
reader.readline()
}