diff options
| author | Neil <nyamatongwe@gmail.com> | 2014-08-06 09:19:19 +1000 | 
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2014-08-06 09:19:19 +1000 | 
| commit | 019d30666cea1b0175bd69b1ae151c12b1d6b89a (patch) | |
| tree | d76a03f6a5f31032816e21dca3dc6547cc129340 | |
| parent | 3d99868b3ef1ede5385c96a408aaa97c7be19065 (diff) | |
| download | scintilla-mirror-019d30666cea1b0175bd69b1ae151c12b1d6b89a.tar.gz | |
Bug [#1633]. Redraw selection after SCI_DELWORDRIGHT.
| -rw-r--r-- | doc/ScintillaHistory.html | 4 | ||||
| -rw-r--r-- | src/Editor.cxx | 2 | 
2 files changed, 6 insertions, 0 deletions
| diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index 618049687..eb07ac904 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -518,6 +518,10 @@  	Bug fixed where annotations disappeared when SCI_CLEARDOCUMENTSTYLE called.  	</li>  	<li> +	Bug fixed where selection not redrawn after SCI_DELWORDRIGHT. +	<a href="http://sourceforge.net/p/scintilla/bugs/1633/">Bug #1633</a>. +	</li> +	<li>  	Change the function prototypes to be complete for functions exported as "C".  	<a href="http://sourceforge.net/p/scintilla/bugs/1618/">Bug #1618</a>.  	</li> diff --git a/src/Editor.cxx b/src/Editor.cxx index 13997de9f..7fb849114 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -3377,6 +3377,7 @@ int Editor::KeyCommand(unsigned int iMessage) {  		break;  	case SCI_DELWORDRIGHT: {  			UndoGroup ug(pdoc); +			InvalidateSelection(sel.RangeMain(), true);  			sel.RangeMain().caret = SelectionPosition(  				InsertSpace(sel.RangeMain().caret.Position(), sel.RangeMain().caret.VirtualSpace()));  			sel.RangeMain().anchor = sel.RangeMain().caret; @@ -3386,6 +3387,7 @@ int Editor::KeyCommand(unsigned int iMessage) {  		break;  	case SCI_DELWORDRIGHTEND: {  			UndoGroup ug(pdoc); +			InvalidateSelection(sel.RangeMain(), true);  			sel.RangeMain().caret = SelectionPosition(  				InsertSpace(sel.RangeMain().caret.Position(), sel.RangeMain().caret.VirtualSpace()));  			int endWord = pdoc->NextWordEnd(sel.MainCaret(), 1); | 
