aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept
diff options
context:
space:
mode:
Diffstat (limited to 'modules/textadept')
-rw-r--r--modules/textadept/adeptsense.lua19
-rw-r--r--modules/textadept/bookmarks.lua2
2 files changed, 5 insertions, 16 deletions
diff --git a/modules/textadept/adeptsense.lua b/modules/textadept/adeptsense.lua
index 560b20cb..01fb1ced 100644
--- a/modules/textadept/adeptsense.lua
+++ b/modules/textadept/adeptsense.lua
@@ -40,28 +40,17 @@ module('_m.textadept.adeptsense', package.seeall)
--
-- #### Introduction
--
--- In the language-specific module, create an Adeptsense module.
+-- Open the language-specific module for editing and create a new instance of an
+-- Adeptsense.
--
-- $> # from either _HOME or _USERHOME:
-- $> cd modules/lua/
--- $> textadept adeptsense.lua
---
--- The Adeptsense should look like the following:
+-- $> textadept init.lua
--
--- --- Adeptsense for the lua module.
--- module('_m.lua.adeptsense', package.seeall)
-- sense = _m.textadept.adeptsense.new('lua')
--
-- Where 'lua' is replaced by your language's name.
--
--- Then edit the module's `init.lua` to include the Adeptsense.
---
--- $> textadept init.lua
---
--- require 'lua.adeptsense' -- add this line
--- require 'lua.commands'
--- require 'lua.snippets'
---
-- #### Syntax Options
--
-- The syntax of different languages varies so the Adeptsense must be configured
@@ -261,7 +250,7 @@ module('_m.textadept.adeptsense', package.seeall)
-- Since Adeptsense ignores any tags not mapped to `classes`, `functions`, or
-- `fields` in [`ctags_kinds`](#ctags_kinds), it passes an unknown tag to the
-- [`handle_ctag()`](#handle_ctag) function. In this case, package (`p`) tags
--- are need to be handled.
+-- need to be handled.
--
-- function sense:handle_ctag(tag_name, file_name, ex_cmd, ext_fields)
-- if ext_fields:sub(1, 1) ~= 'p' then return end -- not a package
diff --git a/modules/textadept/bookmarks.lua b/modules/textadept/bookmarks.lua
index 072cca67..97121547 100644
--- a/modules/textadept/bookmarks.lua
+++ b/modules/textadept/bookmarks.lua
@@ -85,7 +85,7 @@ function goto()
line = buffer:marker_next(line + 1, 2^MARK_BOOKMARK)
until line < 0
local line = gui.filteredlist(L('Select Bookmark'), 'Bookmark', markers)
- if line then _m.textadept.editing.goto_line(tonumber(line:match('^%d+'))) end
+ if line then _m.textadept.editing.goto_line(line:match('^%d+')) end
end
if buffer then buffer:marker_set_back(MARK_BOOKMARK, MARK_BOOKMARK_COLOR) end