Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
refs
  • Loading branch information
juleswritescode committed Apr 21, 2025
commit f24c0724ede290483bf730ec8eba7e12c2b8187c
6 changes: 3 additions & 3 deletions crates/pgt_completions/src/sanitization.rs
Original file line number Diff line number Diff line change
Expand Up @@ -275,13 +275,13 @@ mod tests {
let input = "select * from private.";

// select * from private.| <-- on a dot
assert!(cursor_on_a_dot(&input, TextSize::new(22)));
assert!(cursor_on_a_dot(input, TextSize::new(22)));

// select * from private|. <-- before the dot
assert!(!cursor_on_a_dot(&input, TextSize::new(21)));
assert!(!cursor_on_a_dot(input, TextSize::new(21)));

// select * from private. | <-- too far off the dot
assert!(!cursor_on_a_dot(&input, TextSize::new(23)));
assert!(!cursor_on_a_dot(input, TextSize::new(23)));
}

#[test]
Expand Down