diff options
Diffstat (limited to 'src/Document.cxx')
| -rw-r--r-- | src/Document.cxx | 13 | 
1 files changed, 13 insertions, 0 deletions
| diff --git a/src/Document.cxx b/src/Document.cxx index a7dcccb0c..635b380f9 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -1316,3 +1316,16 @@ int Document::WordPartRight(int pos) {  	}  	return pos;  } + +int Document::ExtendStyleRange(int pos, int delta) { +	int sStart = cb.StyleAt(pos); +	if (delta < 0) { +		while (pos > 0 && (cb.StyleAt(pos) == sStart)) +			pos--; +		pos++; +	} else { +		while (pos < (Length()) && (cb.StyleAt(pos) == sStart)) +			pos++; +	} +	return pos; +}
\ No newline at end of file | 
