Skip to content

Commit

Permalink
fix kakoune hanging on large files
Browse files Browse the repository at this point in the history
  • Loading branch information
crizan committed Dec 31, 2023
1 parent 692c196 commit b038d63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rc/rainbow.kak
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ define-command -hidden rainbow-view %{
set-option window window_range %val{window_range}
execute-keys -save-regs _ ' ;Z<ret>' # save original main selection in ^ reg
evaluate-commands -save-regs '|' %{
execute-keys -draft '%<a-|>${kak_opt_kak_rainbower_source}/rainbower ${kak_client} "${kak_timestamp}" ${kak_opt_rainbow_mode} $(echo $kak_reg_caret | cut -d" " -f2) $(echo $kak_opt_window_range | cut -d " " --output-delimiter="." -f1-2) $(echo $kak_opt_window_range | cut -d " " --output-delimiter="." -f3-4) $kak_opt_filetype "$kak_opt_rainbow_check_templates" "$kak_opt_rainbow_check_pound_ifs" $kak_opt_rainbow_colors ! $kak_opt_background_rainbow_colors | kak -p "${kak_session}"<ret>'
execute-keys -draft '%<a-|>${kak_opt_kak_rainbower_source}/rainbower ${kak_client} "${kak_timestamp}" ${kak_opt_rainbow_mode} $(echo $kak_reg_caret | cut -d" " -f2) $(echo $kak_opt_window_range | cut -d " " --output-delimiter="." -f1-2) $(echo $kak_opt_window_range | cut -d " " --output-delimiter="." -f3-4) $kak_opt_filetype "$kak_opt_rainbow_check_templates" "$kak_opt_rainbow_check_pound_ifs" $kak_opt_rainbow_colors ! $kak_opt_background_rainbow_colors | kak -p "${kak_session}" &<ret>'
}
}
}
Expand All @@ -67,7 +67,7 @@ define-command -hidden rainbow-full-view %{
try %{
execute-keys -save-regs _ ' ;Z<ret>' # save original main selection in ^ reg
evaluate-commands -save-regs '|' %{
execute-keys -draft '%<a-|>${kak_opt_kak_rainbower_source}/rainbower ${kak_client} "${kak_timestamp}" ${kak_opt_rainbow_mode} $(echo $kak_reg_caret | cut -d" " -f2) 0.0 9999999.9999999 $kak_opt_filetype "$kak_opt_rainbow_check_templates" "$kak_opt_rainbow_check_pound_ifs" $kak_opt_rainbow_colors ! $kak_opt_background_rainbow_colors | kak -p "${kak_session}"<ret>'
execute-keys -draft '%<a-|>${kak_opt_kak_rainbower_source}/rainbower ${kak_client} "${kak_timestamp}" ${kak_opt_rainbow_mode} $(echo $kak_reg_caret | cut -d" " -f2) 0.0 9999999.9999999 $kak_opt_filetype "$kak_opt_rainbow_check_templates" "$kak_opt_rainbow_check_pound_ifs" $kak_opt_rainbow_colors ! $kak_opt_background_rainbow_colors | kak -p "${kak_session}" &<ret>'
}
}
}
Expand Down

0 comments on commit b038d63

Please sign in to comment.