Fix hare new line insert indentation after comments

At the moment, inserting a new line while being in a comment result in a
"//<indentation>" instead of "<indentation>//".

To fix this, we just paste the comment and indent after the newline
initial indentation.
This commit is contained in:
Stacy Harper 2022-11-19 08:29:03 +01:00
parent 91d45a100a
commit db93e776c5
No known key found for this signature in database
GPG Key ID: EABA44759877E02A

View File

@ -118,7 +118,7 @@ provide-module hare %§
execute-keys -save-regs '' k x s ^\h*\K//\h* <ret> y execute-keys -save-regs '' k x s ^\h*\K//\h* <ret> y
try %{ try %{
# paste the comment prefix # paste the comment prefix
execute-keys x j x s ^\h* <ret>P execute-keys x j x s ^\h* <ret>p
} }
} } } }
try %{ try %{