Skip Menu |

This queue is for tickets about the Tickit CPAN distribution.

Report information
The Basics
Id: 68296
Status: resolved
Priority: 0/
Queue: Tickit

People
Owner: Nobody in particular
Requestors: TEAM [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: 0.05
Fixed in: (no value)



Subject: Minor typo in documentation example for Tickit::Widget
Hi, I tried copying and pasting this example but looks like cols definition is left over from somewhere else. Patch attached - works fine with it in place, and removing the "return unless $ev ..." line from on_mouse gives an entertaining mousetrail effect. cheers, Tom
Subject: 20110518-tickit-example-cols.diff
=== modified file 'lib/Tickit/Widget.pm' --- lib/Tickit/Widget.pm 2011-05-18 14:04:21 +0000 +++ lib/Tickit/Widget.pm 2011-05-18 22:33:28 +0000 @@ -479,7 +479,7 @@ my @points; sub lines { 1 } - sub cols { length $text } + sub cols { 1 } sub render {
On Wed May 18 18:37:49 2011, TEAM wrote: Show quoted text
> I tried copying and pasting this example but looks like cols definition > is left over from somewhere else. Patch attached - works fine with it > in place
Ah yes. Oops; had copied that from the previous colour example with keypresses. Awkward upshot of not "use strict"ing in examples... -- Paul Evans