fix cursor padding for mouse click
This commit is contained in:
@@ -19,7 +19,7 @@ currently, hexapoda is very unpolished, and missing some major features. if you'
|
|||||||
- split selection(s) into #-byte chunks
|
- split selection(s) into #-byte chunks
|
||||||
- undo/redo
|
- undo/redo
|
||||||
- inspect the current selection(s)
|
- inspect the current selection(s)
|
||||||
- signed, unsigned, fixed-point, UTF-8, color
|
- signed, unsigned, binary, fixed-point, UTF-8, color
|
||||||
- mark notable offsets
|
- mark notable offsets
|
||||||
- jump to selected offset
|
- jump to selected offset
|
||||||
|
|
||||||
|
|||||||
@@ -224,6 +224,7 @@ impl App {
|
|||||||
byte_column
|
byte_column
|
||||||
);
|
);
|
||||||
current_buffer.cursors.clear();
|
current_buffer.cursors.clear();
|
||||||
|
current_buffer.clamp_screen_to_primary_cursor(self.window_size);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
MouseEventKind::ScrollDown => {
|
MouseEventKind::ScrollDown => {
|
||||||
|
|||||||
+1
-1
@@ -33,7 +33,7 @@ const LINES_OF_PADDING: usize = 5;
|
|||||||
const BYTES_OF_PADDING: usize = LINES_OF_PADDING * BYTES_PER_LINE;
|
const BYTES_OF_PADDING: usize = LINES_OF_PADDING * BYTES_PER_LINE;
|
||||||
|
|
||||||
// TODO:
|
// TODO:
|
||||||
// - update showcase
|
// - click and drag selection
|
||||||
// - `go` goto entered offset
|
// - `go` goto entered offset
|
||||||
// - search
|
// - search
|
||||||
// - `/` hex, `A-/` ascii
|
// - `/` hex, `A-/` ascii
|
||||||
|
|||||||
Reference in New Issue
Block a user