diff options
author | nyamatongwe <unknown> | 2001-03-28 00:00:43 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2001-03-28 00:00:43 +0000 |
commit | ee41ed3563d0b38a22bd1a881e95b07e238a5999 (patch) | |
tree | 3e4e6684c6e1bc8ddea64c2d8b073cb5de6ecb4e /src | |
parent | 30d756cb5d202b3adb5609dd517a14c97774129d (diff) | |
download | scintilla-mirror-ee41ed3563d0b38a22bd1a881e95b07e238a5999.tar.gz |
Patch from Stephan to prevent double recording of newlines in macros.
Diffstat (limited to 'src')
-rw-r--r-- | src/Editor.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index 81b6cf27a..738f25c05 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -2006,7 +2006,6 @@ void Editor::NotifyMacroRecord(unsigned int iMessage, unsigned long wParam, long case SCI_DELETEBACK: case SCI_TAB: case SCI_BACKTAB: - case SCI_NEWLINE: case SCI_FORMFEED: case SCI_VCHOME: case SCI_VCHOMEEXTEND: @@ -2021,11 +2020,12 @@ void Editor::NotifyMacroRecord(unsigned int iMessage, unsigned long wParam, long case SCI_UPPERCASE: break; - // Filter out all others (display changes, etc) + // Filter out all others like display changes. Also, newlines are redundant + // with char insert messages. + case SCI_NEWLINE: default: // printf("Filtered out %ld of macro recording\n", iMessage); - - return ; + return; } // Send notification |