diff options
author | rsc <devnull@localhost> | 2005-11-26 15:53:37 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-11-26 15:53:37 +0000 |
commit | 540eaf9828948dccfecf75dd970e23a6942d3033 (patch) | |
tree | beb8ee9d254768a966909fac09845f4db0eb0c9a /src/cmd/9term | |
parent | 66ffeb4245904f76467650a806f3f0027413f15f (diff) | |
download | plan9port-540eaf9828948dccfecf75dd970e23a6942d3033.tar.gz plan9port-540eaf9828948dccfecf75dd970e23a6942d3033.tar.bz2 plan9port-540eaf9828948dccfecf75dd970e23a6942d3033.zip |
fix \r
Diffstat (limited to 'src/cmd/9term')
-rw-r--r-- | src/cmd/9term/wind.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/9term/wind.c b/src/cmd/9term/wind.c index e9d7ab0f..fae6756a 100644 --- a/src/cmd/9term/wind.c +++ b/src/cmd/9term/wind.c @@ -350,7 +350,7 @@ winctl(void *arg) while(up > rp && *(up-1) != '\n') up--; if(up == rp) - initial = wbswidth(w, 0x15); + initial = wbswidth(w, '\r'); }else if(i == nr-1) *up = '\n'; break; @@ -757,7 +757,7 @@ wbswidth(Window *w, Rune c) while(q > stop){ r = w->r[q-1]; if(r == '\n'){ /* eat at most one more character */ - if(q == w->q0) /* eat the newline */ + if(q == w->q0 && c != '\r') /* eat the newline */ --q; break; } |