Re: [code][textadept] Re: Error in core/ui.lua

From: Mitchell <m.att.foicica.com>
Date: Wed, 2 Apr 2014 11:18:32 -0400 (Eastern Daylight Time)

Hi Gabriel,

On Wed, 2 Apr 2014, Gabriel Dubatti wrote:

> Hi,
>
> I generate this error pressing [Esc] in a dropdown:
> "ui.dialogs.dropdown".
>
> Line 117 (in beta3) correspond to line 122 in latest nightly.
>
> The offending line is:
> ----
> return tonumber(i), k ~= 'dropdown' and value or tonumber(value) + 1
> ----
> (the error ocurrs when you try to add 1 to tonumber(value)=nil)
>
> I replaced that line with this, and the error was solved:
> ----
> local v= nil
> if tonumber(value) then
> v= tonumber(value) + 1
> end
> return tonumber(i), k ~= 'dropdown' and value or v
> ----
> Hope it helps.

Thanks for the report. I will fix this.

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 Wed 02 Apr 2014 - 11:18:32 EDT

This archive was generated by hypermail 2.2.0 : Thu 03 Apr 2014 - 06:34:21 EDT