From ee41ed3563d0b38a22bd1a881e95b07e238a5999 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 28 Mar 2001 00:00:43 +0000 Subject: Patch from Stephan to prevent double recording of newlines in macros. --- src/Editor.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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 -- cgit v1.2.3