1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-11-23 23:34:12 +03:00

another attempt to fix macOS issue

This commit is contained in:
Maxim Baz 2018-06-29 01:05:00 +02:00
parent c683b09287
commit d8a2588e9c
No known key found for this signature in database
GPG Key ID: 011FDC52DA839335

View File

@ -175,7 +175,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' %{
%sh{
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 -r "s/\.[0-9]+,/.$leftmost_column,/g")
aligned_selections=$(echo "$kak_selections_desc" | sed -E "s/\.[0-9]+,/.$leftmost_column,/g")
echo "select $aligned_selections"
}
}