PieceTable: rename m_cursor_position -> cursor_position
This commit is contained in:
parent
89c0ca0bfa
commit
dc71520a88
@ -9,8 +9,8 @@ PieceTable::PieceTable(const uint8_t * file_buffer, unsigned long file_buffer_si
|
||||
start_descriptor->next = end_descriptor;
|
||||
end_descriptor->prev = start_descriptor;
|
||||
m_piece_descriptor_index = 2u;
|
||||
m_cursor_position.pd = end_descriptor;
|
||||
m_cursor_position.offset = 0u;
|
||||
cursor_position.pd = end_descriptor;
|
||||
cursor_position.offset = 0u;
|
||||
}
|
||||
|
||||
void PieceTable::append_initial_line_piece(uint8_t * start, uint32_t length, uint32_t n_chars, bool eol)
|
||||
@ -26,6 +26,6 @@ void PieceTable::append_initial_line_piece(uint8_t * start, uint32_t length, uin
|
||||
end_descriptor->prev->next = pd;
|
||||
end_descriptor->prev = pd;
|
||||
m_num_lines++;
|
||||
if (m_cursor_position.pd == end_descriptor)
|
||||
m_cursor_position.pd = pd;
|
||||
if (cursor_position.pd == end_descriptor)
|
||||
cursor_position.pd = pd;
|
||||
}
|
||||
|
@ -77,7 +77,7 @@ public:
|
||||
PieceDescriptor * start_descriptor;
|
||||
PieceDescriptor * end_descriptor;
|
||||
|
||||
Position m_cursor_position;
|
||||
Position cursor_position;
|
||||
|
||||
void append_initial_line_piece(uint8_t * start, uint32_t length, uint32_t n_chars, bool eol);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user