File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change 1919-- @module format
2020local M = {}
2121
22- -- Localizations.
23- local _L = _L
24- if not rawget (_L , ' Reformat' ) then
25- -- Menu.
26- _L [' Reformat' ] = ' Reformat'
27- _L [' Code' ] = ' _Code'
28- _L [' Paragraph' ] = ' _Paragraph'
29- end
30-
3122--- Helper function that returns whether or not the given config file exists in the current or
3223-- a parent directory of the current buffer's filename.
3324local function has_config_file (filename )
@@ -163,7 +154,10 @@ function M.paragraph()
163154 buffer :end_undo_action ()
164155end
165156
166- -- Add menu entry.
157+ -- Add sub-menu.
158+ _L [' Reformat' ] = ' Reformat'
159+ _L [' Code' ] = ' _Code'
160+ _L [' Paragraph' ] = ' _Paragraph'
167161local m_edit = textadept .menu .menubar [' Edit' ]
168162table.insert (m_edit , # m_edit - 1 , {
169163 title = _L [' Reformat' ], --
You can’t perform that action at this time.
0 commit comments