Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/Enoumy/capy
Browse files Browse the repository at this point in the history
  • Loading branch information
Enoumy committed Dec 12, 2024
2 parents 7b8c52d + d196cd6 commit 3e99061
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/capytui/src/loop.ml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ open Async
let clear_images () =
let _ : _ =
Sys_unix.command
"kitten icat --clear --silent >/dev/tty </dev/tty 2>/dev/null"
"kitty +kitten icat --clear --silent >/dev/tty </dev/tty 2>/dev/null"
in
()
;;
Expand All @@ -15,7 +15,7 @@ let draw_command_for_image
=
let args =
List.concat
[ [ "kitten"; "icat"; "--silent" ]
[ [ "kitty"; "+kitten"; "icat"; "--silent" ]
; (if scale then [ "--scale-up" ] else [])
; [ "--place"
; [%string "'%{width#Int}x%{height#Int}@%{column#Int}x%{row#Int}'"]
Expand Down
7 changes: 5 additions & 2 deletions lib/capytui/tui/scroller/test/test_capytui_scroller.ml
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,9 @@ let%expect_test "Testing the injection function" =
handle
[ Inject (Scroll_to { top = 100; bottom = 300 }) ];
Handle.show handle;
(* NOTE: When the range is bigger than the viewport we go to the bottom. Not totally sure if this is ideal in all situations though at least there is a test showing this... *)
(* NOTE: When the range is bigger than the viewport we go to the bottom.
Not totally sure if this is ideal in all situations though at least
there is a test showing this... *)
[%expect
{|
┌────────────────────────────────────────┐
Expand All @@ -654,7 +656,8 @@ let%expect_test "Testing the injection function" =
handle
[ Inject (Scroll_to { top = 100; bottom = 300 }) ];
Handle.show handle;
[%expect {|
[%expect
{|
┌────────────────────────────────────────┐
│ │
│ │
Expand Down

0 comments on commit 3e99061

Please sign in to comment.