summaryrefslogtreecommitdiff
path: root/src/fe-text
diff options
context:
space:
mode:
authorailin-nemui <ailin-nemui@users.noreply.github.com>2017-05-09 15:05:03 +0200
committerailin-nemui <ailin-nemui@users.noreply.github.com>2018-01-06 00:26:48 +0100
commit63d8e884ddb970d6a8b5c6a7a546f0283d38a055 (patch)
tree81550d66b4feff5b5ab0846f27e1f34254d7aa5a /src/fe-text
parent4e71a1f485d9a546cb92ad94e8918a2363a88b03 (diff)
downloadirssi-63d8e884ddb970d6a8b5c6a7a546f0283d38a055.zip
fix some more
Diffstat (limited to 'src/fe-text')
-rw-r--r--src/fe-text/term-terminfo.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/fe-text/term-terminfo.c b/src/fe-text/term-terminfo.c
index 0b2c7cb0..4d5ca65b 100644
--- a/src/fe-text/term-terminfo.c
+++ b/src/fe-text/term-terminfo.c
@@ -576,8 +576,9 @@ int term_addstr(TERM_WINDOW *window, const char *str)
void term_clrtoeol(TERM_WINDOW *window)
{
if (vcx < window->x) {
- /* we just wrapped outside of the split, put the cursor back into the window */
+ /* we just wrapped outside of the split, warp the cursor back into the window */
vcx += window->x;
+ vcmove = TRUE;
}
if (window->x + window->width < term_width) {
/* we need to fill a vertical split */
@@ -606,6 +607,10 @@ void term_clrtoeol(TERM_WINDOW *window)
void term_window_clrtoeol(TERM_WINDOW* window, int ypos)
{
+ if (ypos >= 0 && window->y + ypos != vcy) {
+ /* the line is already full */
+ return;
+ }
term_clrtoeol(window);
if (window->x + window->width < term_width) {
gui_printtext_window_border(window->x + window->width, window->y + ypos);