aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/commands.rs
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-05-27 15:00:51 +0000
committerBlaž Hrastnik2021-05-27 15:00:51 +0000
commit094203c74e19d49b3bfc74cf2ab4f853a773c195 (patch)
tree707927ed1734a504131450a84bdf71d76baf7585 /helix-term/src/commands.rs
parentb114cfa119bc94396f1ed38109a51183035574ed (diff)
Update deps, introduce the new tree-sitter lifetimes
Diffstat (limited to 'helix-term/src/commands.rs')
-rw-r--r--helix-term/src/commands.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs
index e5b57263..674f6d23 100644
--- a/helix-term/src/commands.rs
+++ b/helix-term/src/commands.rs
@@ -674,6 +674,7 @@ pub fn search(cx: &mut Context) {
cx.push_layer(Box::new(prompt));
}
+// can't search next for ""compose"" for some reason
pub fn _search_next(cx: &mut Context, extend: bool) {
if let Some(query) = register::get('\\') {
@@ -1670,6 +1671,9 @@ pub mod insert {
let head = pos + offs + text.len();
+ // TODO: range replace or extend
+ // range.replace(|range| range.is_empty(), head); -> fn extend if cond true, new head pos
+ // can be used with cx.mode to do replace or extend on most changes
ranges.push(Range::new(
if range.is_empty() {
head