mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-27 00:21:15 -03:00
Fix to restore an optimization from parse_util_get_line_from_offset in a more thread-safe way
This commit is contained in:
3
parser.h
3
parser.h
@@ -392,6 +392,9 @@ class parser_t {
|
||||
|
||||
/** Returns the current line number */
|
||||
int get_lineno() const;
|
||||
|
||||
/** Returns the line number for the character at the given index */
|
||||
int line_number_of_character_at_offset(size_t idx) const;
|
||||
|
||||
/** Returns the current position in the latest string of the tokenizer. */
|
||||
int get_pos() const;
|
||||
|
||||
Reference in New Issue
Block a user