Skip to content
This repository has been archived by the owner on Feb 26, 2021. It is now read-only.

Commit

Permalink
Fix unable to input certain symbols before agda-mode:load
Browse files Browse the repository at this point in the history
To be specific: '{', '[', '(', '"', '\'', and '`'.
  • Loading branch information
banacorn committed Nov 8, 2016
1 parent 551cc1f commit 9f74907
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
9 changes: 8 additions & 1 deletion lib/commander.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 8 additions & 1 deletion src/commander.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,14 @@ export default class Commander {

activate(command: Command) {
// some commands can only be executed after 'loaded'
const exception = ['Load', 'Quit', 'Info', 'InputSymbol'];
const exception = ['Load', 'Quit', 'Info', 'InputSymbol',
'InputSymbolCurlyBracket',
'InputSymbolBracket',
'InputSymbolParenthesis',
'InputSymbolDoubleQuote',
'InputSymbolSingleQuote',
'InputSymbolBackQuote'
];
if(this.loaded || _.includes(exception, command.kind)) {
this.dispatchCommand(command)
.then((result) => {
Expand Down

0 comments on commit 9f74907

Please sign in to comment.