diff options
| author | nyamatongwe <unknown> | 2003-03-20 11:22:14 +0000 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2003-03-20 11:22:14 +0000 | 
| commit | ca17c0cc2e37c264782d3f1db49278366e562dcb (patch) | |
| tree | 269e3f31c3495acbd880f76129f6f16b0a51da96 /src/Document.cxx | |
| parent | 79fee676f20f4847e666bff5d73bfe029b24aca0 (diff) | |
| download | scintilla-mirror-ca17c0cc2e37c264782d3f1db49278366e562dcb.tar.gz | |
Patch from Simon Steele to implement the hotspot style and associated
notifications.
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 | 
