diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/PerLine.cxx | 2 | 
1 files changed, 2 insertions, 0 deletions
| diff --git a/src/PerLine.cxx b/src/PerLine.cxx index 59d7882cd..8fc6e2531 100644 --- a/src/PerLine.cxx +++ b/src/PerLine.cxx @@ -322,6 +322,8 @@ int LineState::SetLineState(int line, int state) {  }  int LineState::GetLineState(int line) { +	if (line < 0) +		return 0;  	lineStates.EnsureLength(line + 1);  	return lineStates[line];  } | 
