mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-04 06:36:24 +00:00
Bump go version to 1.21
Allows us to use the much faster builtin min/max functions for two variable min/max
This commit is contained in:
parent
f125ffe3e0
commit
49ea26968c
17 changed files with 44 additions and 53 deletions
|
|
@ -105,7 +105,7 @@ func edit_loop(data_to_send string, kill_if_signaled bool, on_data OnDataCallbac
|
|||
lp.OnInitialize = func() (string, error) {
|
||||
pos, chunk_num := 0, 0
|
||||
for {
|
||||
limit := utils.Min(pos+2048, len(data_to_send))
|
||||
limit := min(pos+2048, len(data_to_send))
|
||||
if limit <= pos {
|
||||
break
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue