1
0
Fork 0
mirror of https://github.com/helix-editor/helix synced 2024-06-13 08:56:07 +02:00
helix/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.
2022-09-05 11:34:49 +09:00
..
commands fix: Recalculate completion when going through prompt history (#3193) 2022-09-01 01:26:21 +09:00
keymap let extend-line respect range direction (#3046) 2022-08-29 10:00:40 +09:00
ui Fix cargo doc warnings, and add GitHub action to ensure it (#3650) 2022-09-03 09:58:16 -05:00
application.rs fix: lsp: Don't send didOpen events for documents with no URL 2022-09-04 17:28:17 +09:00
args.rs add a CLI flag for specifying config file location (#2666) 2022-08-04 13:05:52 +09:00
commands.rs Fix off-by-one in extend_line_above (#3689) 2022-09-05 11:34:49 +09:00
compositor.rs Add bracketed paste (#3233) 2022-08-29 09:48:49 +09:00
config.rs Move top level lsp config to editor.lsp (#1868) 2022-03-28 10:11:52 +09:00
health.rs Show clipboard info in --health output (#2947) 2022-09-01 01:23:45 +09:00
job.rs fix(command): write-quit: do not quit if write fails 2022-06-18 23:57:47 -04:00
keymap.rs Reuse menu::Item trait in picker (#2814) 2022-07-02 13:21:27 +02:00
lib.rs Add refresh-config and open-config command (#1803) 2022-03-25 18:05:20 +09:00
main.rs Show clipboard info in --health output (#2947) 2022-09-01 01:23:45 +09:00