aboutsummaryrefslogtreecommitdiffstats
path: root/zellij-server/src/unit
diff options
context:
space:
mode:
authorAram Drevekenin <aram@poor.dev>2024-07-08 14:30:31 +0200
committerGitHub <noreply@github.com>2024-07-08 14:30:31 +0200
commitffca97f5a9bc74a7ccac5dee20845959793bc24b (patch)
tree2494f7f70e561d65255f8b628ff4d0408ea7e45b /zellij-server/src/unit
parentcargo: Remove `rust-version` (msrv) field (#3480) (diff)
downloadsl0ppij-ffca97f5a9bc74a7ccac5dee20845959793bc24b.tar.gz
sl0ppij-ffca97f5a9bc74a7ccac5dee20845959793bc24b.tar.xz
sl0ppij-ffca97f5a9bc74a7ccac5dee20845959793bc24b.zip
fix(terminal): properly cache cursor position for synchronized renders (#3483)
* fix(terminal): properly cache cursor position for synchronized renders * style(fmt): rustfmt
Diffstat (limited to 'zellij-server/src/unit')
-rw-r--r--zellij-server/src/unit/snapshots/zellij_server__screen__screen_tests__screen_can_break_floating_plugin_pane_to_a_new_tab-2.snap28
-rw-r--r--zellij-server/src/unit/snapshots/zellij_server__screen__screen_tests__screen_can_break_floating_plugin_pane_to_a_new_tab-3.snap24
-rw-r--r--zellij-server/src/unit/snapshots/zellij_server__screen__screen_tests__screen_can_break_floating_plugin_pane_to_a_new_tab-5.snap26
-rw-r--r--zellij-server/src/unit/snapshots/zellij_server__screen__screen_tests__screen_can_break_plugin_pane_to_a_new_tab-4.snap6
-rw-r--r--zellij-server/src/unit/snapshots/zellij_server__screen__screen_tests__screen_can_break_plugin_pane_to_a_new_tab-5.snap26
5 files changed, 75 insertions, 35 deletions
diff --git a/zellij-server/src/unit/snapshots/zellij_server__screen__screen_tests__screen_can_break_floating_plugin_pane_to_a_new_tab-2.snap b/zellij-server/src/unit/snapshots/zellij_server__screen__screen_tests__screen_can_break_floating_plugin_pane_to_a_new_tab-2.snap
index e12b6aaa..6e6cd79a 100644
--- a/zellij-server/src/unit/snapshots/zellij_server__screen__screen_tests__screen_can_break_floating_plugin_pane_to_a_new_tab-2.snap
+++ b/zellij-server/src/unit/snapshots/zellij_server__screen__screen_tests__screen_can_break_floating_plugin_pane_to_a_new_tab-2.snap
@@ -1,25 +1,25 @@
---
source: zellij-server/src/./unit/screen_tests.rs
-assertion_line: 3501
+assertion_line: 3502
expression: "format!(\"{}\", snapshot)"
---
-00 (C): ┌ Pane #1 ─────────────────────────────────────────────────────────────────────┐
+00 (C): ┌ tiled_pane ──────────────────────────────────────────────────────────────────┐
01 (C): │ │
02 (C): │ │
03 (C): │ │
04 (C): │ │
-05 (C): │ │
-06 (C): │ │
-07 (C): │ ┌ file:/path/to/fake/plugin ───────────┐ │
-08 (C): │ │Loading file:/path/to/fake/plugin │ │
-09 (C): │ │ │ │
-10 (C): │ │ │ │
-11 (C): │ │ │ │
-12 (C): │ │ │ │
-13 (C): │ │ │ │
-14 (C): │ │ │ │
-15 (C): │ │ │ │
-16 (C): │ └──────────────────────────────────────┘ │
+05 (C): │ ┌ file:/path/to/fake/plugin ───────────┐ │
+06 (C): │ │Loading file:/path/to/fake/plugin │ │
+07 (C): │ │ │ │
+08 (C): │ │ │ │
+09 (C): │ │ │ │
+10 (C): │ │ │ │
+11 (C): │ │ │ │
+12 (C): │ │ │ │
+13 (C): │ │ │ │
+14 (C): │ └──────────────────────────────────────┘ │
+15 (C): │ │
+16 (C): │ │
17 (C): │ │
18 (C): │ │
19 (C): └──────────────────────────────────────────────────────────────────────────────┘
diff --git a/zellij-server/src/unit/snapshots/zellij_server__screen__screen_tests__screen_can_break_floating_plugin_pane_to_a_new_tab-3.snap b/zellij-server/src/unit/snapshots/zellij_server__screen__screen_tests__screen_can_break_floating_plugin_pane_to_a_new_tab-3.snap
index 652b5726..53ae655c 100644
--- a/zellij-server/src/unit/snapshots/zellij_server__screen__screen_tests__screen_can_break_floating_plugin_pane_to_a_new_tab-3.snap
+++ b/zellij-server/src/unit/snapshots/zellij_server__screen__screen_tests__screen_can_break_floating_plugin_pane_to_a_new_tab-3.snap
@@ -1,25 +1,25 @@
---
source: zellij-server/src/./unit/screen_tests.rs
-assertion_line: 3501
+assertion_line: 3502
expression: "format!(\"{}\", snapshot)"
---
-00 (C): ┌ tiled_pane ──────────────────────────────────────────────────────────────────┐
+00 (C): ┌ Pane #1 ─────────────────────────────────────────────────────────────────────┐
01 (C): │ │
02 (C): │ │
03 (C): │ │
04 (C): │ │
05 (C): │ │
06 (C): │ │
-07 (C): │ │
-08 (C): │ │
-09 (C): │ │
-10 (C): │ │
-11 (C): │ │
-12 (C): │ │
-13 (C): │ │
-14 (C): │ │
-15 (C): │ │
-16 (C): │ │
+07 (C): │ ┌ file:/path/to/fake/plugin ───────────┐ │
+08 (C): │ │Loading file:/path/to/fake/plugin │ │
+09 (C): │ │ │ │
+10 (C): │ │ │ │
+11 (C): │ │ │ │
+12 (C): │ │ │ │
+13 (C): │ │ │ │
+14 (C): │ │ │ │
+15 (C): │ │ │ │
+16 (C): │ └──────────────────────────────────────┘ │
17 (C): │ │
18 (C): │ │
19 (C): └──────────────────────────────────────────────────────────────────────────────┘
diff --git a/zellij-server/src/unit/snapshots/zellij_server__screen__screen_tests__screen_can_break_floating_plugin_pane_to_a_new_tab-5.snap b/zellij-server/src/unit/snapshots/zellij_server__screen__screen_tests__screen_can_break_floating_plugin_pane_to_a_new_tab-5.snap
index 78be0977..8fc16e07 100644
--- a/zellij-server/src/unit/snapshots/zellij_server__screen__screen_tests__screen_can_break_floating_plugin_pane_to_a_new_tab-5.snap
+++ b/zellij-server/src/unit/snapshots/zellij_server__screen__screen_tests__screen_can_break_floating_plugin_pane_to_a_new_tab-5.snap
@@ -1,6 +1,26 @@
---
source: zellij-server/src/./unit/screen_tests.rs
-assertion_line: 3503
-expression: "format!(\"{}\", snapshot_count)"
+assertion_line: 3502
+expression: "format!(\"{}\", snapshot)"
---
-4
+00 (C): ┌ tiled_pane ──────────────────────────────────────────────────────────────────┐
+01 (C): │ │
+02 (C): │ │
+03 (C): │ │
+04 (C): │ │
+05 (C): │ │
+06 (C): │ │
+07 (C): │ │
+08 (C): │ │
+09 (C): │ │
+10 (C): │ │
+11 (C): │ │
+12 (C): │ │
+13 (C): │ │
+14 (C): │ │
+15 (C): │ │
+16 (C): │ │
+17 (C): │ │
+18 (C): │ │
+19 (C): └──────────────────────────────────────────────────────────────────────────────┘
+
diff --git a/zellij-server/src/unit/snapshots/zellij_server__screen__screen_tests__screen_can_break_plugin_pane_to_a_new_tab-4.snap b/zellij-server/src/unit/snapshots/zellij_server__screen__screen_tests__screen_can_break_plugin_pane_to_a_new_tab-4.snap
index 2681e18e..a55bc4d2 100644
--- a/zellij-server/src/unit/snapshots/zellij_server__screen__screen_tests__screen_can_break_plugin_pane_to_a_new_tab-4.snap
+++ b/zellij-server/src/unit/snapshots/zellij_server__screen__screen_tests__screen_can_break_plugin_pane_to_a_new_tab-4.snap
@@ -1,10 +1,10 @@
---
source: zellij-server/src/./unit/screen_tests.rs
-assertion_line: 3428
+assertion_line: 3429
expression: "format!(\"{}\", snapshot)"
---
-00 (C): ┌ pane_to_stay ────────────────────────────────────────────────────────────────┐
-01 (C): │ │
+00 (C): ┌ plugin_pane_to_break_free ───────────────────────────────────────────────────┐
+01 (C): │Loading file:/path/to/fake/plugin │
02 (C): │ │
03 (C): │ │
04 (C): │ │
diff --git a/zellij-server/src/unit/snapshots/zellij_server__screen__screen_tests__screen_can_break_plugin_pane_to_a_new_tab-5.snap b/zellij-server/src/unit/snapshots/zellij_server__screen__screen_tests__screen_can_break_plugin_pane_to_a_new_tab-5.snap
index 5f701fea..91a3ecd4 100644
--- a/zellij-server/src/unit/snapshots/zellij_server__screen__screen_tests__screen_can_break_plugin_pane_to_a_new_tab-5.snap
+++ b/zellij-server/src/unit/snapshots/zellij_server__screen__screen_tests__screen_can_break_plugin_pane_to_a_new_tab-5.snap
@@ -1,6 +1,26 @@
---
source: zellij-server/src/./unit/screen_tests.rs
-assertion_line: 3430
-expression: "format!(\"{}\", snapshot_count)"
+assertion_line: 3429
+expression: "format!(\"{}\", snapshot)"
---
-4
+00 (C): ┌ pane_to_stay ────────────────────────────────────────────────────────────────┐
+01 (C): │ │
+02 (C): │ │
+03 (C): │ │
+04 (C): │ │
+05 (C): │ │
+06 (C): │ │
+07 (C): │ │
+08 (C): │ │
+09 (C): │ │
+10 (C): │ │
+11 (C): │ │
+12 (C): │ │
+13 (C): │ │
+14 (C): │ │
+15 (C): │ │
+16 (C): │ │
+17 (C): │ │
+18 (C): │ │
+19 (C): └──────────────────────────────────────────────────────────────────────────────┘
+