projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
multiple window
[unix-history]
/
usr
/
src
/
usr.bin
/
window
/
wwwrite.c
diff --git
a/usr/src/usr.bin/window/wwwrite.c
b/usr/src/usr.bin/window/wwwrite.c
index
8797d37
..
ce19499
100644
(file)
--- a/
usr/src/usr.bin/window/wwwrite.c
+++ b/
usr/src/usr.bin/window/wwwrite.c
@@
-1,5
+1,5
@@
#ifndef lint
#ifndef lint
-static char *sccsid = "@(#)wwwrite.c 1.
1 83/07/17
";
+static char *sccsid = "@(#)wwwrite.c 1.
2 83/07/18
";
#endif
#include "ww.h"
#endif
#include "ww.h"
@@
-95,23
+95,15
@@
register n;
}
break;
case 2:
}
break;
case 2:
- w->ww_newrow = (c - ' ') % w->ww_nrow;
+ WWcursor(w->ww_win, (c - ' ') % w->ww_inrow,
+ w->ww_win->w_cursor.col);
w->ww_wstate++;
break;
case 3:
w->ww_wstate++;
break;
case 3:
- WWcursor(w->ww_win, w->ww_
new
row,
- (c - ' ') % w->ww_ncol);
+ WWcursor(w->ww_win, w->ww_
win->w_cursor.
row,
+ (c - ' ') % w->ww_
i
ncol);
w->ww_wstate = 0;
break;
}
}
}
w->ww_wstate = 0;
break;
}
}
}
-
-wwflush()
-{
- register Win *w = curwin->ww_win;
-
- WRCurRow = WCurRow(w);
- WRCurCol = WCurCol(w);
- Wrefresh(1);
-}