Skip to content

Commit

Permalink
Fix #180857. Empty cmd+f should not unset search keyword. (#180901)
Browse files Browse the repository at this point in the history
  • Loading branch information
rebornix authored Apr 26, 2023
1 parent 2c51b3d commit 8e4aae8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ class NotebookFindWidget extends SimpleFindReplaceWidget implements INotebookEdi
override async show(initialInput?: string, options?: IShowNotebookFindWidgetOptions): Promise<void> {
const searchStringUpdate = this._state.searchString !== initialInput;
super.show(initialInput, options);
this._state.change({ searchString: initialInput ?? '', isRevealed: true }, false);
this._state.change({ searchString: initialInput ?? this._state.searchString, isRevealed: true }, false);

if (typeof options?.matchIndex === 'number') {
if (!this._findModel.findMatches.length) {
Expand Down

0 comments on commit 8e4aae8

Please sign in to comment.