a modern tui library written in zig

screen: fix off by one error in readCell bounds checks

authored by neurocyte.flow-control.dev and committed by rockorager.dev 9906a67e 0333e178

+2 -2
+2 -2
src/Screen.zig
··· 66 66 } 67 67 68 68 pub fn readCell(self: *Screen, col: usize, row: usize) ?Cell { 69 - if (self.width < col) { 69 + if (self.width <= col) { 70 70 // column out of bounds 71 71 return null; 72 72 } 73 - if (self.height < row) { 73 + if (self.height <= row) { 74 74 // height out of bounds 75 75 return null; 76 76 }