diff options
author | nyamatongwe <devnull@localhost> | 2007-08-18 03:45:08 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2007-08-18 03:45:08 +0000 |
commit | 7af28ed0ae8321ec8c871f81598a0313c0dba7f6 (patch) | |
tree | 47d6ae8b89c72fe02d152a43c486196a9f43ce34 /src | |
parent | 4228fb9cd91c9778ec90b3f0d34859684642c85d (diff) | |
download | scintilla-mirror-7af28ed0ae8321ec8c871f81598a0313c0dba7f6.tar.gz |
Addition of DelWordRightEnd by Nick Treleaven eases compatibility with
common GTK+ behaviour.
Diffstat (limited to 'src')
-rw-r--r-- | src/Editor.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index 77e74c75e..a7aff6109 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -3933,6 +3933,7 @@ void Editor::NotifyMacroRecord(unsigned int iMessage, uptr_t wParam, sptr_t lPar case SCI_VCHOMEWRAPEXTEND: case SCI_DELWORDLEFT: case SCI_DELWORDRIGHT: + case SCI_DELWORDRIGHTEND: case SCI_DELLINELEFT: case SCI_DELLINERIGHT: case SCI_LINECOPY: @@ -4494,6 +4495,11 @@ int Editor::KeyCommand(unsigned int iMessage) { pdoc->DeleteChars(currentPos, endWord - currentPos); } break; + case SCI_DELWORDRIGHTEND: { + int endWord = pdoc->NextWordEnd(currentPos, 1); + pdoc->DeleteChars(currentPos, endWord - currentPos); + } + break; case SCI_DELLINELEFT: { int line = pdoc->LineFromPosition(currentPos); int start = pdoc->LineStart(line); @@ -7171,6 +7177,7 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) { case SCI_ZOOMOUT: case SCI_DELWORDLEFT: case SCI_DELWORDRIGHT: + case SCI_DELWORDRIGHTEND: case SCI_DELLINELEFT: case SCI_DELLINERIGHT: case SCI_LINECOPY: |