nvim-lualine / lualine.nvim

A blazing fast and easy to configure neovim statusline plugin written in pure lua.
MIT License
6.03k stars 464 forks source link

Bug: fzf extension shows 'nil' instead of selected element on split pickers #1197

Closed trevarj closed 7 months ago

trevarj commented 7 months ago

In the code for the fzf extension, there was a section added to lualine to show the current selected element. This only works for "floating" fzf pickers and not "split" pickers.

Self Checks

How to reproduce the problem

  1. Install fzf plugin
  2. Enable fzf extension for lualine
  3. Open a SPLIT fzf picker and notice the lualine on the bottom has section y as nil

Expected behaviour

This section should not show 'nil' on fzf split pickers

Actual behaviour

The section shows 'nil' because of this line, where "selected" is no longer in the table returned by get_info().