diff options
| author | Neil <nyamatongwe@gmail.com> | 2014-03-25 23:24:17 +1100 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2014-03-25 23:24:17 +1100 |
| commit | 33db3e26329bf4e94cb19fe52b89273ff7518811 (patch) | |
| tree | 6ff01fd30c95fd6fddc82df4be4d5cc5b47e4392 | |
| parent | 43039e6bfae886e642ac23bc105a601a20bd75e1 (diff) | |
| download | scintilla-mirror-33db3e26329bf4e94cb19fe52b89273ff7518811.tar.gz | |
Bug [#1586]. Automatic indentation wrong when caret in virtual space.
| -rw-r--r-- | doc/ScintillaHistory.html | 4 | ||||
| -rw-r--r-- | src/Editor.cxx | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index caf39dec9..5005b3003 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -469,6 +469,10 @@ Bug fixed where cursor down failed on wrapped lines. <a href="http://sourceforge.net/p/scintilla/bugs/1585/">Bug #1585</a>. </li> + <li> + Bug fixed where automatic indentation wrong when caret in virtual space. + <a href="http://sourceforge.net/p/scintilla/bugs/1586/">Bug #1586</a>. + </li> </ul> <h3> <a href="http://prdownloads.sourceforge.net/scintilla/scite340.zip?download">Release 3.4.0</a> diff --git a/src/Editor.cxx b/src/Editor.cxx index ac25189a2..c340bedf2 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -5090,6 +5090,7 @@ void Editor::NewLine() { // Remove non-main ranges InvalidateSelection(sel.RangeMain(), true); sel.SetSelection(sel.RangeMain()); + sel.RangeMain().ClearVirtualSpace(); // Clear main range and insert line end bool needGroupUndo = !sel.Empty(); |
