diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/textadept/bookmarks.lua | 2 | ||||
-rw-r--r-- | modules/textadept/command_entry.lua | 4 | ||||
-rw-r--r-- | modules/textadept/session.lua | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/modules/textadept/bookmarks.lua b/modules/textadept/bookmarks.lua index c70983a1..6c9f7a03 100644 --- a/modules/textadept/bookmarks.lua +++ b/modules/textadept/bookmarks.lua @@ -49,7 +49,7 @@ function M.goto_mark(next) local marks, line = {}, buffer:marker_next(0, 2^M.MARK_BOOKMARK) if line == -1 then return end repeat - local text = buffer:get_line(line):sub(1, -2) -- chop \n + local text = buffer:get_line(line):match('^[^\r\n]*') marks[#marks + 1] = tostring(line + 1)..': '..text line = buffer:marker_next(line + 1, 2^M.MARK_BOOKMARK) until line < 0 diff --git a/modules/textadept/command_entry.lua b/modules/textadept/command_entry.lua index 103ea54b..dd1b6bc2 100644 --- a/modules/textadept/command_entry.lua +++ b/modules/textadept/command_entry.lua @@ -92,8 +92,8 @@ local env = setmetatable({}, { --- -- Executes string *code* as Lua code. --- Code is subject to an "abbreviated" environment where the `buffer`, `view`, --- and `ui` tables are also considered as globals. +-- Code is subject to an "abbreviated" environment where the contents of the +-- `buffer`, `view`, and `ui` tables are also considered as globals. -- Prints the results of '=' expressions like in the Lua prompt. -- @param code The Lua code to execute. -- @name execute_lua diff --git a/modules/textadept/session.lua b/modules/textadept/session.lua index 7d10ab46..c7984481 100644 --- a/modules/textadept/session.lua +++ b/modules/textadept/session.lua @@ -119,7 +119,7 @@ events.connect(events.ARG_NONE, function() end) --- --- Saves a Textadept session to file *filename* or a user-selected file. +-- Saves a Textadept session to file *filename* or user-selected file. -- Saves split views, opened buffers, cursor information, and recent files. -- @param filename Optional absolute path to the session file to save. If `nil`, -- the user is prompted for one. |