You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using toggle_comment (ctrl-c) adds an empty comment to the beginning of the line your cursor is on / the beginning of each line you have selected, leaving the line /selection outside of the comment.
I expected this to happen:
When no selection is made, the whole line should be wrapped inside a comment: | 0 -> 1 should become (* | 0 -> 1 *)
If a selection is made, it should be transformed into a multi line comment inside a (* *) pair:
let () = let a = f 1 in
print_endline (string_of_int a)
should become:
(*
let () = let a = f 1 in
print_endline (string_of_int a)
*)
Instead, this happened:
The line or lines have an empty comment (**) added at the start of the line, i.e. the latter example above becomes
(**) let () = let a = f 1 in
(**) print_endline (string_of_int a)
Summary
Using toggle_comment (ctrl-c) adds an empty comment to the beginning of the line your cursor is on / the beginning of each line you have selected, leaving the line /selection outside of the comment.
Reproduction Steps
asciinema demonstration:
https://asciinema.org/a/s8wHb2tHswrfjFZxWhFRaE2gw
I tried this:
I expected this to happen:
When no selection is made, the whole line should be wrapped inside a comment:
| 0 -> 1
should become(* | 0 -> 1 *)
If a selection is made, it should be transformed into a multi line comment inside a
(* *)
pair:should become:
Instead, this happened:
The line or lines have an empty comment
(**)
added at the start of the line, i.e. the latter example above becomesHelix log
~/.cache/helix/helix.log
helix.log
Platform
Linux
Terminal Emulator
st, alacritty
Helix Version
22.05-128-gc107f4ea
The text was updated successfully, but these errors were encountered: