Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F18281160
D11319.id27188.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
901 B
Referenced Files
None
Subscribers
None
D11319.id27188.diff
View Options
diff --git a/src/lint/renderer/ArcanistConsoleLintRenderer.php b/src/lint/renderer/ArcanistConsoleLintRenderer.php
--- a/src/lint/renderer/ArcanistConsoleLintRenderer.php
+++ b/src/lint/renderer/ArcanistConsoleLintRenderer.php
@@ -152,10 +152,9 @@
$data = substr_replace(
$data,
phutil_console_format('##%s##', $text_line),
- ($cursor == $line_num ? $start : 0),
+ ($cursor == $line_num ? ($start > 0 ? $start : null) : 0),
strlen($text_line));
}
-
$out[] = $this->renderLine($cursor, $data, $chevron, $diff);
}
}
@@ -194,6 +193,7 @@
}
$end = min($num_lines, $cursor + $lines_of_context);
+
for (; $cursor < $end; $cursor++) {
// If there is no original text, we didn't print out a chevron or any
// highlighted text above, so print it out here. This allows messages
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Aug 23, 10:40 PM (1 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
9777203
Default Alt Text
D11319.id27188.diff (901 B)
Attached To
Mode
D11319: Fix a lint renderering issue
Attached
Detach File
Event Timeline
Log In to Comment