diff options
author | 2013-09-23 23:25:15 -0400 | |
---|---|---|
committer | 2013-09-23 23:25:15 -0400 | |
commit | 3f566741f708030014a56ad0c69e874db7ec4240 (patch) | |
tree | a1e686d8ce3d75db73c322e29fc4c1659ad72b50 /modules | |
parent | 32edfc6757c760100487e6b1dae562464ad73992 (diff) | |
download | textadept-3f566741f708030014a56ad0c69e874db7ec4240.tar.gz textadept-3f566741f708030014a56ad0c69e874db7ec4240.zip |
Code and documentation cleanup.
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. |