From 4b18a15a9fbad3f3c08feb2f98a52255e5ba394c Mon Sep 17 00:00:00 2001 From: Maxim Baz Date: Thu, 5 Jul 2018 23:46:21 +0200 Subject: [PATCH] kak_selections_desc is now space-separated --- rc/core/comment.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/core/comment.kak b/rc/core/comment.kak index f4f1d9aa..85121045 100644 --- a/rc/core/comment.kak +++ b/rc/core/comment.kak @@ -173,7 +173,7 @@ define-command comment-line -docstring '(un)comment selected lines using line co define-command align-selections-left -docstring 'extend selections to the left to align with the leftmost selected column' %{ evaluate-commands %sh{ - leftmost_column=$(echo "$kak_selections_desc" | tr ':' '\n' | cut -d',' -f1 | cut -d'.' -f2 | sort -n | head -n1) + leftmost_column=$(echo "$kak_selections_desc" | tr ' ' '\n' | cut -d',' -f1 | cut -d'.' -f2 | sort -n | head -n1) aligned_selections=$(echo "$kak_selections_desc" | sed -E "s/\.[0-9]+,/.$leftmost_column,/g") echo "select $aligned_selections" }