Skip to content

Commit

Permalink
fix #1
Browse files Browse the repository at this point in the history
  • Loading branch information
h-youhei committed Mar 31, 2018
1 parent 40bacba commit 15016fa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions each-line-selection.kak
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand All @@ -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
Expand All @@ -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=
Expand All @@ -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
Expand Down

0 comments on commit 15016fa

Please sign in to comment.