You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
helix-plus/helix-term/src
Michael Davis 9c3c6a1c22
Fix off-by-one in extend_line_above (#3689)
`extend_line_above` (and `extend_line` when facing backwards) skip
a line when the current range does not fully cover a line.

Before this change:

    foo
    b#[|a]#r
    baz

With `extend_line_above` or `extend_line` selected the line above.

    #[|foo
    bar]#
    baz

Which is inconsistent with `extend_line_below`. This commit changes
the behavior to select the current line when it is not already
selected.

    foo
    #[|bar]#
    baz

Then further calls of `extend_line_above` extend the selection up
line-wise.
2 years ago
..
commands fix: Recalculate completion when going through prompt history (#3193) 2 years ago
keymap let extend-line respect range direction (#3046) 2 years ago
ui Fix cargo doc warnings, and add GitHub action to ensure it (#3650) 2 years ago
application.rs fix: lsp: Don't send didOpen events for documents with no URL 2 years ago
args.rs add a CLI flag for specifying config file location (#2666) 2 years ago
commands.rs Fix off-by-one in extend_line_above (#3689) 2 years ago
compositor.rs Add bracketed paste (#3233) 2 years ago
config.rs Move top level lsp config to editor.lsp (#1868) 2 years ago
health.rs Show clipboard info in --health output (#2947) 2 years ago
job.rs fix(command): write-quit: do not quit if write fails 2 years ago
keymap.rs Reuse menu::Item trait in picker (#2814) 2 years ago
lib.rs Add refresh-config and open-config command (#1803) 2 years ago
main.rs Show clipboard info in --health output (#2947) 2 years ago