aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/textadept.c
diff options
context:
space:
mode:
authorGravatar mitchell <70453897+667e-11@users.noreply.github.com>2016-04-09 15:18:03 -0400
committerGravatar mitchell <70453897+667e-11@users.noreply.github.com>2016-04-09 15:18:03 -0400
commitf6319f01dece433f0e66aff19b2e1de5cbfc17b5 (patch)
tree8f6076893924ac7d510edc0d9a0306860b41b530 /src/textadept.c
parentd731793244b3a548b7677c321457d0c31d605af5 (diff)
More efficient window refreshing in the terminal version; src/textadept.c
Requires Scinterm r150 (changeset ca37264a865c).
Diffstat (limited to 'src/textadept.c')
-rw-r--r--src/textadept.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/textadept.c b/src/textadept.c
index fcd5da62..9f54d270 100644
--- a/src/textadept.c
+++ b/src/textadept.c
@@ -184,7 +184,7 @@ TermKey *ta_tk; // global for CDK use
SS(view, SCI_SETFOCUS, 1, 0))
#define refresh_all() do { \
pane_refresh(pane); \
- if (command_entry_focused) scintilla_refresh(command_entry); \
+ if (command_entry_focused) scintilla_noutrefresh(command_entry); \
refresh(); \
} while (0)
#define flushch() (timeout(0), getch(), timeout(-1))
@@ -430,7 +430,7 @@ static void pane_refresh(Pane *pane) {
} else if (pane->type == HSPLIT) {
mvwhline(pane->win, 0, 0, 0, pane->cols), wrefresh(pane->win);
pane_refresh(pane->child1), pane_refresh(pane->child2);
- } else scintilla_refresh(pane->view);
+ } else scintilla_noutrefresh(pane->view);
}
#endif
@@ -1751,7 +1751,7 @@ static int unsplit_view(Scintilla *view) {
g_object_unref(view), g_object_unref(other);
#elif CURSES
if (pane->type == SINGLE) return FALSE;
- pane_unsplit_view(pane, view, NULL), scintilla_refresh(view);
+ pane_unsplit_view(pane, view, NULL), scintilla_noutrefresh(view);
#endif
return TRUE;
}