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:
parent
91d45a100a
commit
db93e776c5
@ -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 %{
|
||||||
|
Loading…
Reference in New Issue
Block a user