From 71f84c2ca051fb3f4e0e98faaba05e9449598b81 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Sat, 24 Nov 2012 19:57:07 +0100 Subject: support auto-completion of symbols in the scintilla command (ES) * does not yet handle case-insensitive completions * does not handle omitting of the SCI_ prefix --- interface-ncurses.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'interface-ncurses.cpp') diff --git a/interface-ncurses.cpp b/interface-ncurses.cpp index 0d7b9ad..9b22826 100644 --- a/interface-ncurses.cpp +++ b/interface-ncurses.cpp @@ -147,6 +147,8 @@ InterfaceNCurses::vmsg(MessageType type, const gchar *fmt, va_list ap) #ifdef PDCURSES_WIN32A stdio_vmsg(type, fmt, ap); + if (isendwin()) /* batch mode */ + return; #else if (isendwin()) { /* batch mode */ stdio_vmsg(type, fmt, ap); @@ -237,17 +239,17 @@ InterfaceNCurses::cmdline_update(const gchar *cmdline) } void -InterfaceNCurses::popup_add_filename(PopupFileType type, - const gchar *filename, bool highlight) +InterfaceNCurses::popup_add(PopupEntryType type __attribute__((unused)), + const gchar *name, bool highlight) { gchar *entry; if (isendwin()) /* batch mode */ return; - entry = g_strconcat(highlight ? "*" : " ", filename, NULL); + entry = g_strconcat(highlight ? "*" : " ", name, NULL); - popup.longest = MAX(popup.longest, (gint)strlen(filename)); + popup.longest = MAX(popup.longest, (gint)strlen(name)); popup.length++; popup.list = g_slist_prepend(popup.list, entry); -- cgit v1.2.3