aboutsummaryrefslogtreecommitdiffhomepage
path: root/interface-ncurses.cpp
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2012-11-24 19:57:07 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2012-11-24 19:57:07 +0100
commit71f84c2ca051fb3f4e0e98faaba05e9449598b81 (patch)
treecdcf22acae633132c2690c9c4035be915760a450 /interface-ncurses.cpp
parent2add69b7f08f19ae2687276ebafcf6989915aa69 (diff)
downloadsciteco-71f84c2ca051fb3f4e0e98faaba05e9449598b81.tar.gz
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
Diffstat (limited to 'interface-ncurses.cpp')
-rw-r--r--interface-ncurses.cpp10
1 files changed, 6 insertions, 4 deletions
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);