diff options
-rw-r--r-- | core/.textadept.lua | 2 | ||||
-rw-r--r-- | src/lua_interface.c | 2 | ||||
-rw-r--r-- | src/textadept.h | 19 |
3 files changed, 11 insertions, 12 deletions
diff --git a/core/.textadept.lua b/core/.textadept.lua index c03d9fbc..db628ce3 100644 --- a/core/.textadept.lua +++ b/core/.textadept.lua @@ -76,7 +76,7 @@ function gtkmenu(menu_table) end -- Pops up a GTK menu at the cursor. -- @param menu The menu userdata returned by gtkmenu. -- @see gtkmenu -function popupmenu(menu) +function popupmenu(menu) end --- -- Checks if the buffer being indexed is the currently focused buffer. diff --git a/src/lua_interface.c b/src/lua_interface.c index edb4f8b4..7f757d0a 100644 --- a/src/lua_interface.c +++ b/src/lua_interface.c @@ -54,7 +54,7 @@ void l_init(int argc, char **argv) { luaL_openlibs(lua); lua_newtable(lua); for (int i = 0; i < argc; i++) { - lua_pushstring( lua, argv[i] ); lua_rawseti(lua, -2, i); + lua_pushstring(lua, argv[i]); lua_rawseti(lua, -2, i); } lua_setglobal(lua, "arg"); diff --git a/src/textadept.h b/src/textadept.h index f482268f..1b4344e9 100644 --- a/src/textadept.h +++ b/src/textadept.h @@ -27,6 +27,15 @@ extern GtkTreeStore *pm_store; extern lua_State *lua; static const char *textadept_home = "/usr/share/textadept/"; +static long SS(ScintillaObject *sci, unsigned int msg, unsigned long wParam=0, + long lParam=0) { + return scintilla_send_message(sci, msg, wParam, lParam); +} +static long SSS(ScintillaObject *sci, unsigned int msg, const char *wParam=0, + const char *lParam=0) { + return scintilla_send_message(sci, msg, reinterpret_cast<long>(wParam), + reinterpret_cast<long>(lParam)); +} static void warn(const char *s) { printf("Warning: %s\n", s); } // textadept.c @@ -44,16 +53,6 @@ void set_statusbar_text(const char *text); void set_docstatusbar_text(const char *text); void command_toggle_focus(); -static long SS(ScintillaObject *sci, unsigned int msg, unsigned long wParam=0, - long lParam=0) { - return scintilla_send_message(sci, msg, wParam, lParam); -} -static long SSS(ScintillaObject *sci, unsigned int msg, const char *wParam=0, - const char *lParam=0) { - return scintilla_send_message(sci, msg, reinterpret_cast<long>(wParam), - reinterpret_cast<long>(lParam)); -} - // lua_interface.c void l_init(int argc, char **argv); void l_close(); |