[Geany-devel] ui_editable_insert_text_callback

Dimitar Zhekov dimitar.zhekov at xxxxx
Sat Oct 30 13:45:06 UTC 2010


On Fri, 29 Oct 2010 18:22:17 +0100
Nick Treleaven <nick.treleaven at btinternet.com> wrote:

> > > > 2. ui_editable_insert_text_callback() checks only the first character
> > > > (assuming typing?), so you can, say, paste 1boza in Go to line.
> > > 
> > > I can't reproduce this using Go to Line.
> > 
> > Type 1boza in a document, mark it, Ctrl-C, Go to Line, Ctrl-V.
> > It must work, only gchar c = *new_text is checked with isdigit().
> 
> Oops, you're right about pasting.

Here is a proper check.

-- 
E-gards: Jimmy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ui_editable_insert_text_callback.diff
Type: text/x-diff
Size: 1063 bytes
Desc: not available
URL: <http://lists.geany.org/pipermail/devel/attachments/20101030/f5742261/attachment.diff>


More information about the Devel mailing list