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