diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/Editor.cxx | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/src/Editor.cxx b/src/Editor.cxx index 07f7beb39..c1f30e124 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -3228,7 +3228,7 @@ void Editor::DrawBlockCaret(Surface *surface, ViewStyle &vsDraw, LineLayout *ll,  	// glyph / combining character. If so we'll need to draw that too.  	int offsetFirstChar = offset;  	int offsetLastChar = offset + (posAfter - posCaret); -	while ((offsetLastChar - numCharsToDraw) >= lineStart) { +	while ((posBefore > 0) && ((offsetLastChar - numCharsToDraw) >= lineStart)) {  		if ((ll->positions[offsetLastChar] - ll->positions[offsetLastChar - numCharsToDraw]) > 0) {  			// The char does not share horizontal space  			break; | 
