diff options
author | nyamatongwe <devnull@localhost> | 2001-03-28 00:00:43 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2001-03-28 00:00:43 +0000 |
commit | 09e2f2e2bcc1222b5689729a0a531436ac407e7a (patch) | |
tree | 3e4e6684c6e1bc8ddea64c2d8b073cb5de6ecb4e /src | |
parent | e040b6ac30156c57492e31150803ffb7b5d0201d (diff) | |
download | scintilla-mirror-09e2f2e2bcc1222b5689729a0a531436ac407e7a.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 |