mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-22 06:42:41 +01:00
Fix a lint renderering issue
Summary: Currently there is an issue when renderering linter messages with `ArcanistConsoleLintRenderer` if `$message->getChar()` returns `0` (i.e. the value is unset). Test Plan: **Before** {F265586} **After** {F265587} Reviewers: #blessed_reviewers, epriestley Reviewed By: #blessed_reviewers, epriestley Subscribers: Korvin, epriestley Differential Revision: https://secure.phabricator.com/D11319
This commit is contained in:
parent
c2a9d88711
commit
564dab0989
1 changed files with 1 additions and 1 deletions
|
@ -152,7 +152,7 @@ final class ArcanistConsoleLintRenderer extends ArcanistLintRenderer {
|
|||
$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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue