summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAram Drevekenin <aram@poor.dev>2021-06-04 18:57:26 +0200
committerAram Drevekenin <aram@poor.dev>2021-06-04 18:57:26 +0200
commit056f20ff1f90cd75c03fefda6ef8371c2adeabb7 (patch)
treed7fba41205cd8b3bfd4a03ee300a4b2efb0a1024
parentdc44a006998ae31930ce893e9eda1a93653e32a3 (diff)
style(comments): remove leftovers
-rw-r--r--zellij-server/src/panes/grid.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/zellij-server/src/panes/grid.rs b/zellij-server/src/panes/grid.rs
index d2b30ccc2..7ea62ed6f 100644
--- a/zellij-server/src/panes/grid.rs
+++ b/zellij-server/src/panes/grid.rs
@@ -777,7 +777,6 @@ impl Grid {
match self.viewport.get_mut(self.cursor.y) {
Some(row) => {
row.insert_character_at(terminal_character, self.cursor.x);
- // if row.len() > self.width {
if row.width() > self.width {
row.truncate(self.width);
}
@@ -1131,7 +1130,6 @@ impl Grid {
self.erasure_mode = false;
self.disable_linewrap = false;
self.cursor.change_shape(CursorShape::Block);
- //debug_log_to_file(format!("u20"));
self.output_buffer.update_all_lines();
}
fn set_preceding_character(&mut self, terminal_character: TerminalCharacter) {
@@ -1142,8 +1140,6 @@ impl Grid {
impl Perform for Grid {
fn print(&mut self, c: char) {
let c = self.cursor.charsets[self.active_charset].map(c);
- // TODO: CONTINUE HERE - the slowness is coming from this function, do some debugging to
- // see if it can be mitigated somehow?
// apparently, building TerminalCharacter like this without a "new" method
// is a little faster
let terminal_character = TerminalCharacter {