From db93e776c557954ab65804997d036fda34f1cc5d Mon Sep 17 00:00:00 2001 From: Stacy Harper Date: Sat, 19 Nov 2022 08:29:03 +0100 Subject: [PATCH] Fix hare new line insert indentation after comments At the moment, inserting a new line while being in a comment result in a "//" instead of "//". To fix this, we just paste the comment and indent after the newline initial indentation. --- rc/filetype/hare.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/filetype/hare.kak b/rc/filetype/hare.kak index 8ba75c906..4906bfea3 100644 --- a/rc/filetype/hare.kak +++ b/rc/filetype/hare.kak @@ -118,7 +118,7 @@ provide-module hare %ยง execute-keys -save-regs '' k x s ^\h*\K//\h* y try %{ # paste the comment prefix - execute-keys x j x s ^\h* P + execute-keys x j x s ^\h* p } } } try %{