Skip to content

Commit

Permalink
Remove a check for if code is valid that could be annoying
Browse files Browse the repository at this point in the history
  • Loading branch information
xyproto committed Aug 22, 2024
1 parent 180cd82 commit 409b5bd
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions v2/keyloop.go
Original file line number Diff line number Diff line change
Expand Up @@ -1960,19 +1960,6 @@ func Loop(tty *vt100.TTY, fnord FilenameOrData, lineNumber LineNumber, colNumber

undo.Snapshot(e)

if e.mode == mode.Go { // TODO: And e.onlyValidCode
if e.Empty() {
r := keyRunes[0]
// Only "/" or "p" is allowed
if r != 'p' && r != '/' {
status.Clear(c)
status.SetMessage("Not valid Go: " + string(r))
status.Show(c, e)
break
}
}
}

// Type in the letters that were pressed
for _, r := range keyRunes {
// Insert a letter. This is what normally happens.
Expand Down

0 comments on commit 409b5bd

Please sign in to comment.