Skip to content

Commit

Permalink
Merge pull request moby#16320 from 0xfoo/remove-unused-var
Browse files Browse the repository at this point in the history
Remove unused variable, fix moby#16310
  • Loading branch information
calavera committed Sep 16, 2015
2 parents 259a0fb + 9c9b748 commit bfc4e38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/term/windows/ansi_reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ func keyToString(keyEvent *winterm.KEY_EVENT_RECORD, escapeSequence []byte) stri
// formatVirtualKey converts a virtual key (e.g., up arrow) into the appropriate ANSI string.
func formatVirtualKey(key winterm.WORD, controlState winterm.DWORD, escapeSequence []byte) string {
shift, alt, control := getControlKeys(controlState)
modifier := getControlKeysModifier(shift, alt, control, false)
modifier := getControlKeysModifier(shift, alt, control)

if format, ok := arrowKeyMapPrefix[key]; ok {
return fmt.Sprintf(format, escapeSequence, modifier)
Expand All @@ -230,7 +230,7 @@ func getControlKeys(controlState winterm.DWORD) (shift, alt, control bool) {
}

// getControlKeysModifier returns the ANSI modifier for the given combination of control keys.
func getControlKeysModifier(shift, alt, control, meta bool) string {
func getControlKeysModifier(shift, alt, control bool) string {
if shift && alt && control {
return ansiterm.KEY_CONTROL_PARAM_8
}
Expand Down

0 comments on commit bfc4e38

Please sign in to comment.