Re: [code] [textadept] Fix for error in help switch handler

From: Mitchell <m.att.foicica.com>
Date: Sat, 11 Jan 2020 09:11:37 -0500 (EST)

Hi Gabriel,

On Thu, 9 Jan 2020, Gabriel Bertilson wrote:

> When I run "ta --help" (this is the GUI version of Textadept 10.8 on
> Linux), it opens the window with a message buffer that says
> "<textadept directory>/core/args.lua:70: bad argument #3 to 'format'
> (no value)".
>
> [snip]
>
> This can be fixed by adding a description for the arguments added in
> line 357 of modules/textadept/editing.lua:
>
> - args.register('-l', '--line', 1, function(line) M.goto_line(line - 1) end)
> + args.register('-l', '--line', 1, function(line) M.goto_line(line -
> 1) end, "Go to line")
>
> I wonder if this problem hasn't been noticed because almost nobody has
> tried using the --help switch since the --line argument was added!

Thanks, you are correct. I have fixed this[1].

Cheers,
Mitchell

[1]: https://foicica.com/hg/textadept/rev/9d36c0aa6236

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Sat 11 Jan 2020 - 09:11:37 EST

This archive was generated by hypermail 2.2.0 : Sun 12 Jan 2020 - 06:31:00 EST