Skip to content

Commit

Permalink
Fix issue with losing last char in error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
mgreter committed Sep 3, 2015
1 parent e5d07c5 commit 9b07cbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2430,8 +2430,8 @@ namespace Sass {
while ((!*last_pos || Prelexer::is_space(*last_pos)) && last_pos > source) -- last_pos;

bool ellipsis_left = false;
const char* pos_left(last_pos);
const char* end_left(last_pos);
const char* pos_left(last_pos + 1);
const char* end_left(last_pos + 1);
while (pos_left > source) {
if (end_left - pos_left > max_len) {
ellipsis_left = true;
Expand Down

0 comments on commit 9b07cbd

Please sign in to comment.