Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15368420
D20695.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
597 B
Referenced Files
None
Subscribers
None
D20695.diff
View Options
diff --git a/src/applications/diffusion/view/DiffusionPatternSearchView.php b/src/applications/diffusion/view/DiffusionPatternSearchView.php
--- a/src/applications/diffusion/view/DiffusionPatternSearchView.php
+++ b/src/applications/diffusion/view/DiffusionPatternSearchView.php
@@ -47,7 +47,7 @@
$offset = $match[1];
if ($cursor != $offset) {
$output[] = array(
- 'text' => substr($string, $cursor, $offset),
+ 'text' => substr($string, $cursor, ($offset - $cursor)),
'highlight' => false,
);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Mar 13, 2:02 AM (6 d, 3 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7600265
Default Alt Text
D20695.diff (597 B)
Attached To
Mode
D20695: Fix an issue where lines with more than one pattern match highlighted improperly in Diffusion
Attached
Detach File
Event Timeline
Log In to Comment