1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-12-24 06:20: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:
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, $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));
} }