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
{