Skip to content

Commit

Permalink
Include find/replace on undo stack (#3459)
Browse files Browse the repository at this point in the history
  • Loading branch information
pablopunk authored May 11, 2020
1 parent e540521 commit 87d3a1b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ spec/**/*.js
npm-debug.log
index.html
yarn-error.log
yarn.lock

# VIM related files
*.swo
Expand Down
2 changes: 1 addition & 1 deletion scripts/core/editor3/reducers/find-replace.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ const render = (state) => {
});

if (changedContent) {
editorState = quietPush(editorState, newContent);
editorState = EditorState.push(editorState, newContent, 'insert-characters');
}

return {...state, editorState};
Expand Down

0 comments on commit 87d3a1b

Please sign in to comment.