Fix bug when launching hx file.rs:10 (#1676)
This commit is contained in:
parent
afec54485a
commit
368064e316
1 changed files with 1 additions and 1 deletions
|
@ -82,7 +82,7 @@ fn split_path_row_col(s: &str) -> Option<(PathBuf, Position)> {
|
|||
///
|
||||
/// Does not validate if file.rs is a file or directory.
|
||||
fn split_path_row(s: &str) -> Option<(PathBuf, Position)> {
|
||||
let (row, path) = s.rsplit_once(':')?;
|
||||
let (path, row) = s.rsplit_once(':')?;
|
||||
let row: usize = row.parse().ok()?;
|
||||
let path = path.into();
|
||||
let pos = Position::new(row.saturating_sub(1), 0);
|
||||
|
|
Loading…
Add table
Reference in a new issue