Skip to content

Commit

Permalink
replace keyEnter ('\r') with keyNewline ('\n')
Browse files Browse the repository at this point in the history
  • Loading branch information
wrgeorge1983 committed Aug 28, 2020
1 parent a43ac12 commit c378398
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vendor/golang.org/x/crypto/ssh/terminal/terminal.go

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

1 comment on commit c378398

@wrgeorge1983
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

alternately could do

  case keyEnter, keyNewline:

that would end up handling \r\n twice though. Given limited scope of Cisgo, I feel this is better, but could easily see it go either way.

Please sign in to comment.