diff options
| author | nyamatongwe <unknown> | 2005-10-29 23:48:10 +0000 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2005-10-29 23:48:10 +0000 | 
| commit | e28524199be4de54942dbad76e3d98de15d3e0e0 (patch) | |
| tree | 4d46734123172bf60e0369edfae8130d5baa93db /src/Editor.cxx | |
| parent | 75ef73cea6502368508f74c8c770dac334449998 (diff) | |
| download | scintilla-mirror-e28524199be4de54942dbad76e3d98de15d3e0e0.tar.gz | |
Only redraw line affected when changing markers.
Diffstat (limited to 'src/Editor.cxx')
| -rw-r--r-- | src/Editor.cxx | 10 | 
1 files changed, 8 insertions, 2 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index 2b100fd49..8ebdbd9ae 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -875,13 +875,19 @@ void Editor::Redraw() {  	//wMain.InvalidateAll();  } -void Editor::RedrawSelMargin() { +void Editor::RedrawSelMargin(int line) {  	if (!AbandonPaint()) {  		if (vs.maskInLine) {  			Redraw();  		} else {  			PRectangle rcSelMargin = GetClientRectangle();  			rcSelMargin.right = vs.fixedColumnWidth; +			if (line != -1) { +				int position = pdoc->LineStart(line); +				PRectangle rcLine = RectangleFromRange(position, position); +				rcSelMargin.top = rcLine.top; +				rcSelMargin.bottom = rcLine.bottom; +			}  			wMain.InvalidateRectangle(rcSelMargin);  		}  	} @@ -3742,7 +3748,7 @@ void Editor::NotifyModified(Document*, DocModification mh, void *) {  	if (mh.modificationType & SC_MOD_CHANGEMARKER) {  		if (paintState == notPainting) { -			RedrawSelMargin(); +			RedrawSelMargin(mh.line);  		}  	}  | 
