While using the REPL CLI, if you move the cursor and try deleting a character, the character deleted is not the one where the cursor is, but the last one.
**Steps to reproduce the behavior:
Create a REPL command while in the REPL CLI.
Move the cursor using the arrow keys.
Delete some characters using the backspace key.
Expected behavior
The deletion of the character where the cursor is.
Additional context
The issue is in the repl.rs: pub async fn run(&mut self) -> Result<(), Box<dyn std::error::Error>> function.
While using the REPL CLI, if you move the cursor and try deleting a character, the character deleted is not the one where the cursor is, but the last one.
**Steps to reproduce the behavior:
Expected behavior The deletion of the character where the cursor is.
Additional context The issue is in the repl.rs:
pub async fn run(&mut self) -> Result<(), Box<dyn std::error::Error>>
function.