FIX: vector capacity reset(STUDIO-2239)

Change-Id: Ie40e8c6d3a42b6a40f4f73d6906acdc6e26d0b41
This commit is contained in:
liz.li 2023-04-07 14:56:57 +08:00 committed by Lane.Wei
parent 9c402384ac
commit 62af2b9608
3 changed files with 11 additions and 0 deletions

View file

@ -666,8 +666,11 @@ public:
void reset() {
stop_mapping_file();
m_lines_ends.clear();
m_lines_ends.shrink_to_fit();
m_lines.clear();
m_lines.shrink_to_fit();
m_filename.clear();
m_filename.shrink_to_fit();
}
void toggle_visibility() { m_visible = !m_visible; }