aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/termptyops.c
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2014-05-03 22:16:27 +0200
committerBoris Faure <billiob@gmail.com>2014-05-13 22:23:34 +0200
commit73930a67125d5d5879caa0130874c4f706469cb8 (patch)
tree036e3e0d8dbafaa9a163a865ead284ac181c29e1 /src/bin/termptyops.c
parentminiview: toggle miniview from miniview (diff)
downloadterminology-73930a67125d5d5879caa0130874c4f706469cb8.tar.gz
miniview: have only one buffer
Diffstat (limited to 'src/bin/termptyops.c')
-rw-r--r--src/bin/termptyops.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/termptyops.c b/src/bin/termptyops.c
index 881972e..05ec5f1 100644
--- a/src/bin/termptyops.c
+++ b/src/bin/termptyops.c
@@ -6,6 +6,7 @@
#include "termptyops.h"
#include "termptygfx.h"
#include "termptysave.h"
+#include "miniview.h"
#undef CRITICAL
#undef ERR
@@ -46,7 +47,7 @@ termpty_text_save_top(Termpty *ty, Termcell *cells, ssize_t w_max)
if (ty->back[ty->backpos])
{
Termsave *ts2;
-
+
ts2 = termpty_save_extract(ty->back[ty->backpos]);
termpty_save_free(ts2);
ty->back[ty->backpos] = NULL;