1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-11-29 10:02:57 +03:00

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
try %{
# paste the comment prefix
execute-keys x j x s ^\h* <ret>P
execute-keys x j x s ^\h* <ret>p
}
} }
try %{