mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-12-23 14:00:55 +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,
|
||||
phutil_console_format('##%s##', $text_line),
|
||||
($cursor == $line_num)
|
||||
? $message->getChar() - 1
|
||||
? ($message->isPatchable() ? $start : $message->getChar() - 1)
|
||||
: 0,
|
||||
strlen($text_line));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue