diff options
author | Neil <nyamatongwe@gmail.com> | 2016-08-20 14:48:31 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2016-08-20 14:48:31 +1000 |
commit | 4789f4214261e944fa0824f0a536debc8bc45897 (patch) | |
tree | 237b768697a1e1e9ebae7fae333d333a88d66613 /src | |
parent | 82b5df1e6a44a6e814ce9ad207ab5e106dd9de1d (diff) | |
download | scintilla-mirror-4789f4214261e944fa0824f0a536debc8bc45897.tar.gz |
Bug [#1648]: Option added to prevent left arrow movement and selection wrapping
to previous line.
Diffstat (limited to 'src')
-rw-r--r-- | src/Editor.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index 3fbf4b341..bcba9bdf4 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -3283,7 +3283,7 @@ int Editor::HorizontalMove(unsigned int iMessage) { case SCI_CHARLEFTRECTEXTEND: if (pdoc->IsLineEndPosition(spCaret.Position()) && spCaret.VirtualSpace()) { spCaret.SetVirtualSpace(spCaret.VirtualSpace() - 1); - } else { + } else if ((virtualSpaceOptions & SCVS_NOWRAPLINESTART) == 0 || pdoc->GetColumn(spCaret.Position()) > 0) { spCaret = SelectionPosition(spCaret.Position() - 1); } break; @@ -3328,7 +3328,7 @@ int Editor::HorizontalMove(unsigned int iMessage) { case SCI_CHARLEFTEXTEND: if (spCaret.VirtualSpace()) { spCaret.SetVirtualSpace(spCaret.VirtualSpace() - 1); - } else { + } else if ((virtualSpaceOptions & SCVS_NOWRAPLINESTART) == 0 || pdoc->GetColumn(spCaret.Position()) > 0) { spCaret = SelectionPosition(spCaret.Position() - 1); } break; |