From f6319f01dece433f0e66aff19b2e1de5cbfc17b5 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sat, 9 Apr 2016 15:18:03 -0400 Subject: More efficient window refreshing in the terminal version; src/textadept.c Requires Scinterm r150 (changeset ca37264a865c). --- src/textadept.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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; } -- cgit v1.2.3