diff options
| author | nyamatongwe <devnull@localhost> | 2010-12-30 09:42:05 +1100 | 
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2010-12-30 09:42:05 +1100 | 
| commit | aa38adf01f4d8d5d4fb18c2ccceb272c6c18dd6e (patch) | |
| tree | bbb5adb125a7b27612f7e47a8be89c037f4365c3 /src/RunStyles.cxx | |
| parent | c8fd43d2c0b989a06bf912730b2c6eb14e461c58 (diff) | |
| download | scintilla-mirror-aa38adf01f4d8d5d4fb18c2ccceb272c6c18dd6e.tar.gz | |
Avoid redraws when setting an indicator over positions where it is already set.
From Tino Weinkauf.
Diffstat (limited to 'src/RunStyles.cxx')
| -rw-r--r-- | src/RunStyles.cxx | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/src/RunStyles.cxx b/src/RunStyles.cxx index ae32c7380..460d5d244 100644 --- a/src/RunStyles.cxx +++ b/src/RunStyles.cxx @@ -147,8 +147,10 @@ bool RunStyles::FillRange(int &position, int value, int &fillLength) {  		runEnd = RunFromPosition(end);  		RemoveRunIfSameAsPrevious(runEnd);  		RemoveRunIfSameAsPrevious(runStart); +		return true; +	} else { +		return false;  	} -	return true;  }  void RunStyles::SetValueAt(int position, int value) { | 
