Fix cursor print when inpos is at the end
This commit is contained in:
parent
a99a224a60
commit
e03acd7365
1 changed files with 4 additions and 4 deletions
|
|
@ -633,10 +633,6 @@ inbuf_load()
|
||||||
|
|
||||||
getyx(ingest.input, iy, ix);
|
getyx(ingest.input, iy, ix);
|
||||||
|
|
||||||
/* nothing left to write... */
|
|
||||||
if (p >= ingest.inlen)
|
|
||||||
break;
|
|
||||||
|
|
||||||
/* print the cursor at this position */
|
/* print the cursor at this position */
|
||||||
if (p == ingest.inpos) {
|
if (p == ingest.inpos) {
|
||||||
cy = iy;
|
cy = iy;
|
||||||
|
|
@ -644,6 +640,10 @@ inbuf_load()
|
||||||
hit_cursor = 1;
|
hit_cursor = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* nothing left to write... */
|
||||||
|
if (p >= ingest.inlen)
|
||||||
|
break;
|
||||||
|
|
||||||
/* we want to leave a blank character for printing the cursor at the end of the line */
|
/* we want to leave a blank character for printing the cursor at the end of the line */
|
||||||
if (ix >= (win_len-2)) {
|
if (ix >= (win_len-2)) {
|
||||||
/* we printed the cursor, so we can break */
|
/* we printed the cursor, so we can break */
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue