summaryrefslogtreecommitdiffstats
path: root/zellij-server/src/tab
diff options
context:
space:
mode:
authorAram Drevekenin <aram@poor.dev>2023-02-20 17:36:31 +0100
committerGitHub <noreply@github.com>2023-02-20 17:36:31 +0100
commit0101440cbb35d6e465a21dee807cfa677eaa0133 (patch)
treec53bc151d16ff726becba2b626be7ed0674f9d15 /zellij-server/src/tab
parentdf839fe947148209a6f5d9fc74ea32b077946feb (diff)
fix(grid): glitchy resizes (#2182)
* fix(grid): glitchy resizes * style(fmt): rustfmt
Diffstat (limited to 'zellij-server/src/tab')
-rw-r--r--zellij-server/src/tab/unit/snapshots/zellij_server__tab__tab_integration_tests__save_cursor_position_across_resizes.snap4
-rw-r--r--zellij-server/src/tab/unit/tab_integration_tests.rs2
2 files changed, 3 insertions, 3 deletions
diff --git a/zellij-server/src/tab/unit/snapshots/zellij_server__tab__tab_integration_tests__save_cursor_position_across_resizes.snap b/zellij-server/src/tab/unit/snapshots/zellij_server__tab__tab_integration_tests__save_cursor_position_across_resizes.snap
index 278b856a2..dbd6426a6 100644
--- a/zellij-server/src/tab/unit/snapshots/zellij_server__tab__tab_integration_tests__save_cursor_position_across_resizes.snap
+++ b/zellij-server/src/tab/unit/snapshots/zellij_server__tab__tab_integration_tests__save_cursor_position_across_resizes.snap
@@ -1,10 +1,10 @@
---
source: zellij-server/src/tab/./unit/tab_integration_tests.rs
-assertion_line: 1153
+assertion_line: 1952
expression: snapshot
---
00 (C): ┌ Pane #1 ─────────────────────────────────────────────────────────────────────────── SCROLL: 0/4 ┐
-01 (C): │ Let's save the cursor position here this overwrote me!tten │
+01 (C): │Let's save the cursor position here this overwrote me!tten │
02 (C): └──────────────────────────────────────────────────────────────────────────────────────────────────┘
03 (C):
04 (C):
diff --git a/zellij-server/src/tab/unit/tab_integration_tests.rs b/zellij-server/src/tab/unit/tab_integration_tests.rs
index 3defa1e6b..89e856444 100644
--- a/zellij-server/src/tab/unit/tab_integration_tests.rs
+++ b/zellij-server/src/tab/unit/tab_integration_tests.rs
@@ -1935,7 +1935,7 @@ fn save_cursor_position_across_resizes() {
tab.handle_pty_bytes(
1,
- Vec::from("\n\nI am some text\nI am another line of text\nLet's save the cursor position here \u{1b}[sI should be ovewritten".as_bytes()),
+ Vec::from("\n\n\rI am some text\n\rI am another line of text\n\rLet's save the cursor position here \u{1b}[sI should be ovewritten".as_bytes()),
).unwrap();
tab.resize_whole_tab(Size { cols: 100, rows: 3 }).unwrap();
tab.handle_pty_bytes(1, Vec::from("\u{1b}[uthis overwrote me!".as_bytes()))