mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-01-19 22:52:46 +08:00
20d77c3220
The current way to parse the statusline content and decide whether a section is empty, has some flaws: That is for the following reasons: - accents are considered to be empty (which they really shouldn't) - manually parsing the expressions using a `:while ... matchlist() ... endwhile` loop is slow and fragile - grouping items such as %( %) are not considered So replace the logic by using `substitute('pat', '\=add()', '')` to capture all single expression groups into a list and then looping over those to decide whether the section is empty. fixes #2411 |
||
---|---|---|
.. | ||
airline | ||
airline.vim |