diff --git a/src/fn_strings.cpp b/src/fn_strings.cpp index b09fce9a6..b30e7bf27 100644 --- a/src/fn_strings.cpp +++ b/src/fn_strings.cpp @@ -185,7 +185,7 @@ namespace Sass { if (end_at > size) { end_at = (double)size; } if (start_at < 0) { start_at += size + 1; - if (start_at < 0) start_at = 0; + if (start_at <= 0) start_at = 1; } else if (start_at == 0) { ++ start_at; }