ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/perl/selection
(Generate patch)

Comparing rxvt-unicode/src/perl/selection (file contents):
Revision 1.38 by root, Sat May 20 18:17:38 2006 UTC vs.
Revision 1.41 by root, Sat Nov 4 22:56:30 2006 UTC

44 qr{ \[ ([^{}[:space:]]+) \] }x, 44 qr{ \[ ([^{}[:space:]]+) \] }x,
45 qr{ \( ([^()[:space:]]+) \) }x, 45 qr{ \( ([^()[:space:]]+) \) }x,
46 46
47 # urls, just a heuristic 47 # urls, just a heuristic
48 qr{( 48 qr{(
49 (?:https?://|ftp://|news://|mailto:|file://)[ab-zA-Z0-9\-\@;\/?:&=%\$_.+!*\x27(),~]+ 49 (?:https?://|ftp://|news://|mailto:|file://|\bwww\.)[ab-zA-Z0-9\-\@;\/?:&=%\$_.+!*\x27(),~#]+
50 [ab-zA-Z0-9\-\@;\/?:&=%\$_+!*\x27()~] # exclude some trailing characters (heuristic) 50 [ab-zA-Z0-9\-\@;\/?:&=%\$_+*()~] # exclude some trailing characters (heuristic)
51 )}x, 51 )}x,
52 52
53 # shell-like argument quoting, basically always matches 53 # shell-like argument quoting, basically always matches
54 qr{\G [\ \t|&;<>()]* ( 54 qr{\G [\ \t|&;<>()]* (
55 (?: 55 (?:
81 - $line->offset_of ($self->selection_beg); 81 - $line->offset_of ($self->selection_beg);
82 82
83 my @matches; 83 my @matches;
84 84
85 if ($markofs < $line->l) { 85 if ($markofs < $line->l) {
86 # convert markofs form character to UTF-8 offset space 86 # convert markofs from character to UTF-8 offset space
87 { 87 {
88 my $prefix = substr $text, 0, $markofs; 88 my $prefix = substr $text, 0, $markofs;
89 utf8::encode $prefix; 89 utf8::encode $prefix;
90 $markofs = length $prefix; 90 $markofs = length $prefix;
91 } 91 }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines