Skip to content

Commit 4cac59c

Browse files
committed
Comment out newline replacements
As suggested by gliderlabs#129 to fix side-by-side splits in screen/tmux
1 parent c9fc441 commit 4cac59c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

session.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,8 @@ func (sess *session) Write(p []byte) (n int, err error) {
133133
m := len(p)
134134
// normalize \n to \r\n when pty is accepted.
135135
// this is a hardcoded shortcut since we don't support terminal modes.
136-
p = bytes.Replace(p, []byte{'\n'}, []byte{'\r', '\n'}, -1)
137-
p = bytes.Replace(p, []byte{'\r', '\r', '\n'}, []byte{'\r', '\n'}, -1)
136+
// p = bytes.Replace(p, []byte{'\n'}, []byte{'\r', '\n'}, -1)
137+
// p = bytes.Replace(p, []byte{'\r', '\r', '\n'}, []byte{'\r', '\n'}, -1)
138138
n, err = sess.Channel.Write(p)
139139
if n > m {
140140
n = m

0 commit comments

Comments
 (0)