mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-19 14:22:46 +08:00
Fix regression causing builtin commandline to report wrong relative cursor
Regressed in55fd43d86c
(Port reader, 2023-12-22). Cherry-picked fromc651a79c
This commit is contained in:
parent
92582d5b1f
commit
9882849fda
|
@ -633,7 +633,9 @@ pub fn commandline(parser: &Parser, streams: &mut IoStreams, args: &mut [&wstr])
|
||||||
);
|
);
|
||||||
commandline_set_buffer(None, Some(new_pos));
|
commandline_set_buffer(None, Some(new_pos));
|
||||||
} else {
|
} else {
|
||||||
streams.out.append(sprintf!("%lu\n", current_cursor_pos));
|
streams
|
||||||
|
.out
|
||||||
|
.append(sprintf!("%lu\n", current_cursor_pos - range.start));
|
||||||
}
|
}
|
||||||
return STATUS_CMD_OK;
|
return STATUS_CMD_OK;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user