Skip to content

Commit

Permalink
replace listener with config to be more correct
Browse files Browse the repository at this point in the history
  • Loading branch information
figuerom16 committed Jan 15, 2024
1 parent a51d42f commit 7e878c7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,11 @@ For example to open a terminal to an SSH connection that you have created:
go func() {
rows, cols := uint(0), uint(0)
for {
listener := <-ch
if rows == listener.Rows && cols == listener.Columns {
config := <-ch
if rows == config.Rows && cols == config.Columns {
continue
}
rows, cols = listener.Rows, listener.Columns
rows, cols = config.Rows, config.Columns
session.WindowChange(int(rows), int(cols))
}
}()
Expand Down

0 comments on commit 7e878c7

Please sign in to comment.