|
|
@ -3238,8 +3238,8 @@ pub mod insert {
|
|
|
|
let text = doc.text().slice(..);
|
|
|
|
let text = doc.text().slice(..);
|
|
|
|
|
|
|
|
|
|
|
|
let selection = doc.selection(view.id).clone().transform(|range| {
|
|
|
|
let selection = doc.selection(view.id).clone().transform(|range| {
|
|
|
|
let cursor = Range::point(range.cursor(text));
|
|
|
|
let anchor = movement::move_prev_word_start(text, range, count).from();
|
|
|
|
let next = movement::move_prev_word_start(text, cursor, count);
|
|
|
|
let next = Range::new(anchor, range.cursor(text));
|
|
|
|
exclude_cursor(text, next, range)
|
|
|
|
exclude_cursor(text, next, range)
|
|
|
|
});
|
|
|
|
});
|
|
|
|
delete_selection_insert_mode(doc, view, &selection);
|
|
|
|
delete_selection_insert_mode(doc, view, &selection);
|
|
|
@ -3252,10 +3252,11 @@ pub mod insert {
|
|
|
|
let (view, doc) = current!(cx.editor);
|
|
|
|
let (view, doc) = current!(cx.editor);
|
|
|
|
let text = doc.text().slice(..);
|
|
|
|
let text = doc.text().slice(..);
|
|
|
|
|
|
|
|
|
|
|
|
let selection = doc
|
|
|
|
let selection = doc.selection(view.id).clone().transform(|range| {
|
|
|
|
.selection(view.id)
|
|
|
|
let head = movement::move_next_word_end(text, range, count).to();
|
|
|
|
.clone()
|
|
|
|
Range::new(range.cursor(text), head)
|
|
|
|
.transform(|range| movement::move_next_word_start(text, range, count));
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
delete_selection_insert_mode(doc, view, &selection);
|
|
|
|
delete_selection_insert_mode(doc, view, &selection);
|
|
|
|
|
|
|
|
|
|
|
|
lsp::signature_help_impl(cx, SignatureHelpInvoked::Automatic);
|
|
|
|
lsp::signature_help_impl(cx, SignatureHelpInvoked::Automatic);
|
|
|
|