Re: [code] Bug in bookmarks.lua

From: Mitchell <m.att.foicica.com>
Date: Tue, 12 Jan 2016 20:03:39 -0500 (EST)

Hi Brian,

On Tue, 12 Jan 2016, Brian Schott wrote:

> http://foicica.com/hg/textadept/file/917cfa3541e5/modules/textadept/bookmarks.lua#l72
>
> This needs to read:
>
> if button ~= 1 or not mark then return end
>
> because filtered lists return numbers, not strings. Right now it's
> impossible to actually go to bookmarks that have been set.

Hmm. Line 70, "string_output = true" instructs a string return, which
would be the button's label. Therefore I'm able to jump to the selected
bookmark.

Cheers,
Mitchell

-- 
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 Tue 12 Jan 2016 - 20:03:39 EST

This archive was generated by hypermail 2.2.0 : Wed 13 Jan 2016 - 06:30:55 EST