summaryrefslogtreecommitdiffstats
path: root/src/utils.rs
diff options
context:
space:
mode:
authorqkzk <qu3nt1n@gmail.com>2023-10-01 00:57:09 +0200
committerqkzk <qu3nt1n@gmail.com>2023-10-01 00:57:09 +0200
commitf07dd7763c4965dbd2b3a28600f3710b20e0aff7 (patch)
tree962821a160eef55d420de22f8a2e4e8163e143cb /src/utils.rs
parent42d507d1ec9dbab85e762d569e2d16e16b103424 (diff)
FIX: after scrolling left click doesn't select the correct file
Diffstat (limited to 'src/utils.rs')
-rw-r--r--src/utils.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils.rs b/src/utils.rs
index 2e0dcbb..f74c463 100644
--- a/src/utils.rs
+++ b/src/utils.rs
@@ -152,7 +152,7 @@ pub fn set_clipboard(content: String) -> Result<()> {
Ok(())
}
-pub fn row_to_index(row: u16) -> usize {
+pub fn row_to_window_index(row: u16) -> usize {
row as usize - ContentWindow::HEADER_ROWS
}