show find in console

This commit is contained in:
Shin'ya Ueoka 2017-11-06 20:13:15 +09:00
parent cb4b26e03f
commit be37c42d28
11 changed files with 45 additions and 9 deletions

View file

@ -68,8 +68,10 @@ export default class ConsoleComponent {
update() {
let state = this.store.getState();
if (this.prevState.mode !== 'command' && state.mode === 'command') {
this.showCommand(state.commandText);
} else if (state.mode !== 'command') {
this.showCommand(state.consoleText);
} else if (this.prevState.mode !== 'find' && state.mode === 'find') {
this.showFind();
} else if (state.mode !== 'command' && state.mode !== 'find') {
this.hideCommand();
}