projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allow remote-to-local forwardings to use IPv6.
[u/mdw/putty]
/
terminal.c
diff --git
a/terminal.c
b/terminal.c
index
cc4b0d8
..
72bfbc9
100644
(file)
--- a/
terminal.c
+++ b/
terminal.c
@@
-1065,32
+1065,32
@@
static termline *lineptr(Terminal *term, int y, int lineno, int screen)
static void term_schedule_tblink(Terminal *term);
static void term_schedule_cblink(Terminal *term);
static void term_schedule_tblink(Terminal *term);
static void term_schedule_cblink(Terminal *term);
-static void term_timer(void *ctx, long now)
+static void term_timer(void *ctx,
unsigned
long now)
{
Terminal *term = (Terminal *)ctx;
int update = FALSE;
{
Terminal *term = (Terminal *)ctx;
int update = FALSE;
- if (term->tblink_pending && now
- term->next_tblink >= 0
) {
+ if (term->tblink_pending && now
== term->next_tblink
) {
term->tblinker = !term->tblinker;
term->tblink_pending = FALSE;
term_schedule_tblink(term);
update = TRUE;
}
term->tblinker = !term->tblinker;
term->tblink_pending = FALSE;
term_schedule_tblink(term);
update = TRUE;
}
- if (term->cblink_pending && now
- term->next_cblink >= 0
) {
+ if (term->cblink_pending && now
== term->next_cblink
) {
term->cblinker = !term->cblinker;
term->cblink_pending = FALSE;
term_schedule_cblink(term);
update = TRUE;
}
term->cblinker = !term->cblinker;
term->cblink_pending = FALSE;
term_schedule_cblink(term);
update = TRUE;
}
- if (term->in_vbell && now
- term->vbell_end >= 0
) {
+ if (term->in_vbell && now
== term->vbell_end
) {
term->in_vbell = FALSE;
update = TRUE;
}
if (update ||
term->in_vbell = FALSE;
update = TRUE;
}
if (update ||
- (term->window_update_pending && now
- term->next_update >= 0
))
+ (term->window_update_pending && now
== term->next_update
))
term_update(term);
}
term_update(term);
}