Skip to content

Commit 4c1938f

Browse files
committed
refactor(boxes): use != operator from Coord
1 parent c433ce0 commit 4c1938f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/boxes.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ void run() {
180180

181181
do {
182182
state.size = Coord::screen_size();
183-
if (!(prev_size == state.size)) {
183+
if (prev_size != state.size) {
184184
prev_size = state.size;
185185
tui::screen::clear();
186186
} else if (!state.new_input) {

0 commit comments

Comments
 (0)