Use 2048 chunk size in fish as well

This commit is contained in:
Kovid Goyal
2022-04-13 22:50:24 +05:30
parent 3ddea42660
commit cc07b1f79d

View File

@@ -127,8 +127,8 @@ function clone-in-kitty -d "Clone the current fish session into a new kitty wind
set --function data_len (builtin string length "$data")
echo $data_len
while builtin test $pos -le $data_len;
set -l chunk (builtin string sub -s $pos -l 1024 $data)
set --function pos (math $pos + 1024)
set -l chunk (builtin string sub -s $pos -l 2048 $data)
set --function pos (math $pos + 2048)
builtin printf '\eP@kitty-clone|%s:%s\e\\' "$chunk_num" "$chunk" # '
set --function chunk_num (math $chunk_num + 1)
end