summaryrefslogtreecommitdiffstats
path: root/src/canvas/drawing_utils.rs
diff options
context:
space:
mode:
authorClementTsang <cjhtsang@uwaterloo.ca>2020-02-27 17:15:09 -0500
committerClementTsang <cjhtsang@uwaterloo.ca>2020-02-27 17:15:09 -0500
commitcc751e19aec4252cd280f35172e3263bef9c938d (patch)
tree72a66c176647b9232abf6bc9e1dcadbf2e56cd6c /src/canvas/drawing_utils.rs
parent2d02c53296eab133815b4865ebe145a8caf7ffe4 (diff)
Fix issue with cursor on canvas due to not incrementing by the SIZE of the grapheme.
Diffstat (limited to 'src/canvas/drawing_utils.rs')
-rw-r--r--src/canvas/drawing_utils.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/canvas/drawing_utils.rs b/src/canvas/drawing_utils.rs
index ef4a441f..5fb67373 100644
--- a/src/canvas/drawing_utils.rs
+++ b/src/canvas/drawing_utils.rs
@@ -70,6 +70,15 @@ pub fn get_variable_intrinsic_widths(
(resulting_widths, last_index)
}
+#[allow(dead_code, unused_variables)]
+pub fn get_search_start_position(
+ num_rows: u64, scroll_direction: &app::ScrollDirection, scroll_position_bar: &mut u64,
+ currently_selected_position: u64, is_resized: bool,
+) -> u64 {
+ //TODO: [Scroll] Gotta fix this too lol
+ 0
+}
+
pub fn get_start_position(
num_rows: u64, scroll_direction: &app::ScrollDirection, scroll_position_bar: &mut u64,
currently_selected_position: u64, is_resized: bool,