We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 12f36ec commit cb08b4dCopy full SHA for cb08b4d
src/cursor/sys/windows.rs
@@ -190,7 +190,9 @@ impl ScreenBufferCursor {
190
fn save_position(&self) -> std::io::Result<()> {
191
let position = self.position()?;
192
193
- let bits = u64::from(u32::from(position.x as u16) << 16 | u32::from(position.y as u16));
+ let upper = u32::from(position.x as u16) << 16;
194
+ let lower = u32::from(position.y as u16);
195
+ let bits = u64::from(upper | lower);
196
SAVED_CURSOR_POS.store(bits, Ordering::Relaxed);
197
198
Ok(())
0 commit comments