Skip to content

Commit

Permalink
don't use binary literal
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronjanse committed Apr 23, 2020
1 parent f4c2c94 commit cf23270
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ecma48/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -328,9 +328,9 @@ func (p *Parser) dispatchCsi() {
p.out <- p.wrap(CursorMovement{
N: n, Direction: dir,

Shift: (seq[1]-1)&0b001 > 0,
Alt: (seq[1]-1)&0b010 > 0,
Ctrl: (seq[1]-1)&0b100 > 0,
Shift: (seq[1]-1)&1 > 0,
Alt: (seq[1]-1)&2 > 0,
Ctrl: (seq[1]-1)&4 > 0,
})
} else {
p.out <- p.wrap(CursorMovement{N: n, Direction: dir})
Expand Down

0 comments on commit cf23270

Please sign in to comment.