add PieceTable.tabstop attribute
This commit is contained in:
parent
f6338da8d0
commit
81e6a53c08
@ -9,6 +9,7 @@ PieceTable::PieceTable(const uint8_t * file_buffer, unsigned long file_buffer_si
|
||||
start_piece->next = end_piece;
|
||||
end_piece->prev = start_piece;
|
||||
m_piece_index = 2u;
|
||||
tabstop = 4u;
|
||||
}
|
||||
|
||||
void PieceTable::append_initial_line_piece(uint8_t * start, uint32_t length, bool eol)
|
||||
|
@ -71,6 +71,10 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
Piece * start_piece;
|
||||
Piece * end_piece;
|
||||
uint8_t tabstop;
|
||||
|
||||
PieceTable(const uint8_t * file_buffer, unsigned long file_buffer_size);
|
||||
|
||||
Piece * add_piece()
|
||||
@ -85,9 +89,6 @@ public:
|
||||
|
||||
uint32_t get_num_lines() { return m_num_lines; }
|
||||
|
||||
Piece * start_piece;
|
||||
Piece * end_piece;
|
||||
|
||||
void append_initial_line_piece(uint8_t * start, uint32_t length, bool eol);
|
||||
|
||||
Piece * get_start_of_line(Piece * start) const;
|
||||
|
Loading…
x
Reference in New Issue
Block a user