Skip to content

Conversation

@bynect
Copy link

@bynect bynect commented Jun 15, 2022

If there is a character after the cursor delete that, otherwise delete the current character.

If the deletion should only delete the character after the cursor these change must be made:

    fn cmdline_handle_delete(&mut self) {
        if self.cmdline.cursor_forward().is_some() {
            self.cmdline.delc();
        }

        if self.cmdline.is_empty() {
            self.cmdline_hide();
        }
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant