aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/ocaml/highlights.scm
diff options
context:
space:
mode:
authorMichael Davis2022-09-05 02:34:49 +0000
committerGitHub2022-09-05 02:34:49 +0000
commit9c3c6a1c22db065512c5563e9ed1c9dca869c886 (patch)
treee7adaf1338611cde44da879ad3c7371b4d01bbc9 /runtime/queries/ocaml/highlights.scm
parent20ed8c259519f1e37cf6c2a37479bdd681e9b924 (diff)
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.
Diffstat (limited to 'runtime/queries/ocaml/highlights.scm')
0 files changed, 0 insertions, 0 deletions