From 47c7925ca36cbb078391aea90aa2714bdeea949c Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Fri, 16 Nov 2012 15:04:28 +0100 Subject: NCURSES: simplified notification callback a bit unfortunately it's currently not possible to use the SCN_UPDATEUI notification to refresh the view only if necessary --- interface-ncurses.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'interface-ncurses.cpp') diff --git a/interface-ncurses.cpp b/interface-ncurses.cpp index 9d4c4fe..da54c9c 100644 --- a/interface-ncurses.cpp +++ b/interface-ncurses.cpp @@ -327,9 +327,7 @@ InterfaceNCurses::~InterfaceNCurses() */ static void -scintilla_notify(Scintilla *sci, int idFrom, void *_notify, void *user_data) +scintilla_notify(Scintilla *sci, int idFrom, void *notify, void *user_data) { - SCNotification *notify = (SCNotification *)_notify; - - interface.process_notify(notify); + interface.process_notify((SCNotification *)notify); } -- cgit v1.2.3