mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-10 08:52:39 +01:00
Correctly mark patched text in lint console renderer
Summary: Before: ` >>> - 4 `**1**`* Copyright 2011 Facebook, Inc.` After: ` >>> - 4 * Copyright 201`**1**` Facebook, Inc.` Test Plan: Rendered patchable message, multiline patchable message, unpatchable message. Reviewers: andrewjcg, epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D3604
This commit is contained in:
parent
b880dfd4c8
commit
d83a884a91
1 changed files with 1 additions and 1 deletions
|
@ -159,7 +159,7 @@ final class ArcanistLintConsoleRenderer implements ArcanistLintRenderer {
|
||||||
$data,
|
$data,
|
||||||
phutil_console_format('##%s##', $text_line),
|
phutil_console_format('##%s##', $text_line),
|
||||||
($cursor == $line_num)
|
($cursor == $line_num)
|
||||||
? $message->getChar() - 1
|
? ($message->isPatchable() ? $start : $message->getChar() - 1)
|
||||||
: 0,
|
: 0,
|
||||||
strlen($text_line));
|
strlen($text_line));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue