mirror of
https://github.com/tmux/tmux.git
synced 2024-12-25 02:48:47 +00:00
Fix use-after-free.
This commit is contained in:
parent
ef18b7d637
commit
ad1541913f
@ -1,4 +1,4 @@
|
|||||||
/* $Id: window-scroll.c,v 1.3 2007-11-21 14:39:46 nicm Exp $ */
|
/* $Id: window-scroll.c,v 1.4 2007-11-21 14:57:08 nicm Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||||
@ -97,11 +97,11 @@ window_scroll_key(struct window *w, int key)
|
|||||||
|
|
||||||
recalculate_sizes();
|
recalculate_sizes();
|
||||||
server_redraw_window_all(w);
|
server_redraw_window_all(w);
|
||||||
break;
|
return;
|
||||||
case 'k':
|
case 'k':
|
||||||
case 'K':
|
case 'K':
|
||||||
case KEYC_UP:
|
case KEYC_UP:
|
||||||
if (data->off < data->size)
|
if (data->off < data->size)
|
||||||
data->off++;
|
data->off++;
|
||||||
break;
|
break;
|
||||||
case 'j':
|
case 'j':
|
||||||
|
Loading…
Reference in New Issue
Block a user