Skip to content

Commit

Permalink
updated formatting when source snippets is too long
Browse files Browse the repository at this point in the history
  • Loading branch information
adamsau committed Oct 19, 2017
1 parent d53c44a commit 950f5ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libsolidity/interface/SourceReferenceFormatter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ void SourceReferenceFormatter::printSourceLocation(
int locationLength = endColumn - startColumn;
if (locationLength > 150)
{
line = line.substr(0, startColumn + 75) + " ... " + line.substr(endColumn);
endColumn = startColumn + 80;
locationLength = 80;
line = line.substr(0, startColumn + 35) + " ... " + line.substr(endColumn - 35);
endColumn = startColumn + 75;
locationLength = 75;
}
if (line.length() > 150)
{
Expand Down

0 comments on commit 950f5ae

Please sign in to comment.