diff --git a/src/components/QueryEditor.js b/src/components/QueryEditor.js
index <HASH>..<HASH> 100644
--- a/src/components/QueryEditor.js
+++ b/src/components/QueryEditor.js
@@ -205,11 +205,10 @@ export class QueryEditor extends React.Component {
   }
 
   _onBeforeChange(instance, change) {
-    // the update function is only present on the paste event
+    // The update function is only present on non-redo, non-undo events.
     if (change.origin === 'paste') {
       const text = change.text.map(normalizeWhitespace);
       change.update(change.from, change.to, text);
     }
   }
-
 }
Tweak a comment for accuracy and formatting