aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAram Drevekenin <aram@poor.dev>2021-03-24 10:58:50 +0100
committerGitHub <noreply@github.com>2021-03-24 10:58:50 +0100
commite1e1f2104353ca021fe9b5261314ab6248c3b77c (patch)
treef824fdb78fe2b18966f99c9e4f2a1f40191bd141 /src
parentMerge pull request #235 from zellij-org/focused-pane (diff)
downloadsl0ppij-e1e1f2104353ca021fe9b5261314ab6248c3b77c.tar.gz
sl0ppij-e1e1f2104353ca021fe9b5261314ab6248c3b77c.tar.xz
sl0ppij-e1e1f2104353ca021fe9b5261314ab6248c3b77c.zip
fix(render): various rendering issues (#238)
Diffstat (limited to 'src')
-rw-r--r--src/client/panes/terminal_pane.rs9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/client/panes/terminal_pane.rs b/src/client/panes/terminal_pane.rs
index 9fa70d11..f0b15e50 100644
--- a/src/client/panes/terminal_pane.rs
+++ b/src/client/panes/terminal_pane.rs
@@ -188,7 +188,14 @@ impl Pane for TerminalPane {
self.max_height
}
fn render(&mut self) -> Option<String> {
- if self.should_render || cfg!(test) {
+ // FIXME:
+ // the below conditional is commented out because it causes several bugs:
+ // 1. When panes are resized or tabs are switched the previous contents of the screen stick
+ // around
+ // 2. When there are wide characters in a pane, since we don't yet handle them properly,
+ // the spill over to the pane to the right
+ // if self.should_render || cfg!(test) {
+ if true {
let mut vte_output = String::new();
let buffer_lines = &self.read_buffer_as_lines();
let display_cols = self.get_columns();