Closed somasis closed 4 years ago
I found a similar issue caused by using ksh
for the plug.kak
, it might be relevant to mention here. https://gitlab.com/andreyorst/plug.kak/-/issues/75
Aaaand unfortunately this is just me missing the OpenBSD-related fix in the README. https://github.com/mawww/kakoune#22-installing just says to use dash for a shell so that plugins work, so this probably isn't really relevant to this repo in particular. Oh well
When using
oksh
as/bin/sh
(which is just a portable version of OpenBSD'sksh
- in fact, this happens withloksh
, another port, andmksh
, so it's affecting allksh
derivatives),auto-pairs.kak
acts very strangely.When hitting enter to create a new line, it will create a new line, then indent it, create a new line after the indented line, and then leave your cursor at the indentation point. It also seems to be duplicating spaces once you have leading spaces and hit space multiple times.
Here's a recording demonstrating the problem:
I have a hunch it's the
printf
statements printing spaces somewhere in there, resulting in auto-pairs thinking that it needs to "complete" a bracket represented by a`. Looking it though, I'm not quite sure what exactly the problem would be. It could also be related to bash's
printfbuilt-in not being used (and
kshand friends having no
printfbuilt-in), but I've tested this possibility by replacing
printfusage with
/bin/printfwithout any differences from this cropping up. I also thought it *could* be related to busybox's
printfimplementation (which is being used, as the system I'm running
kakunder uses busybox for coreutils, including
printf), but again, changing out
printfto explicitly use
busybox printfchanged nothing, and it worked fine under
bash`.With all plugins except
auto-pairs.kak
disabled, this still occurs, so I feel pretty confident the problems lies here.