From 15016fa8366b61048b39aa51e5744f31288fc30c Mon Sep 17 00:00:00 2001 From: Hukumitu Youhei Date: Sat, 31 Mar 2018 18:25:49 +0900 Subject: [PATCH] fix #1 --- each-line-selection.kak | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/each-line-selection.kak b/each-line-selection.kak index 0f4a0ae..445bb6a 100644 --- a/each-line-selection.kak +++ b/each-line-selection.kak @@ -19,7 +19,7 @@ drop-selection-each-line %{ %sh{ }} define-command -hidden _keep-last-selection-each-line %{ %sh{ - old_selections=`echo $kak_selections_desc | tr : '\n' | sort -n` + old_selections=`echo $kak_selections_desc | tr : '\n' | sort -t '.' -k 1n,1 -k 2n,2` selections= prev_line=`echo $old_selections | cut -f 1 -d '.'` last_sel= @@ -37,7 +37,7 @@ define-command -hidden _keep-last-selection-each-line %{ %sh{ }} define-command -hidden _keep-nth-selection-each-line %{ %sh{ - old_selections=`echo $kak_selections_desc | tr : '\n' | sort -n` + old_selections=`echo $kak_selections_desc | tr : '\n' | sort -t '.' -k 1n,1 -k 2n,2` selections= prev_line=`echo $old_selections | cut -f 1 -d '.'` i=1 @@ -55,7 +55,7 @@ define-command -hidden _keep-nth-selection-each-line %{ %sh{ }} define-command -hidden _drop-last-selection-each-line %{ %sh{ - old_selections=`echo $kak_selections_desc | tr : '\n' | sort -n` + old_selections=`echo $kak_selections_desc | tr : '\n' | sort -t '.' -k 1n,1 -k 2n,2` selections= prev_line=`echo $old_selections | cut -f 1 -d '.'` last_sel= @@ -73,7 +73,7 @@ define-command -hidden _drop-last-selection-each-line %{ %sh{ }} define-command -hidden _drop-nth-selection-each-line %{ %sh{ - old_selections=`echo $kak_selections_desc | tr : '\n' | sort -n` + old_selections=`echo $kak_selections_desc | tr : '\n' | sort -t '.' -k 1n,1 -k 2n,2` selections= prev_line=`echo $old_selections | cut -f 1 -d '.'` i=1