1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-09-20 08:58:55 +02: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:
vrana 2012-10-03 12:27:33 -07:00
parent b880dfd4c8
commit d83a884a91

View file

@ -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));
}