Page MenuHomePhabricator

D11319.id27188.diff
No OneTemporary

D11319.id27188.diff

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

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)

Event Timeline