Skip to content

fix(statusline): don't show symbols from other tabpages#652

Open
cameronr wants to merge 1 commit into
folke:mainfrom
cameronr:fix/statusline-tabpage-symbol
Open

fix(statusline): don't show symbols from other tabpages#652
cameronr wants to merge 1 commit into
folke:mainfrom
cameronr:fix/statusline-tabpage-symbol

Conversation

@cameronr

Copy link
Copy Markdown

When trying to find a window, only look at windows in the current tabpage (not all windows)

Fixes #602

Screenshots

Trouble symbol on statusline:
Screenshot 2025-08-26 at 14 20 59

Cleared when in checkhealth:
Screenshot 2025-08-26 at 14 20 53

@cameronr cameronr changed the title fix: statusline shows symbol from other tabpage fix(statusline): don't show symbols from other tabpages Sep 26, 2025
When trying to find a window, only look at windows in the current
tabpage (not all windows)

Fixes folke#602
@cameronr cameronr force-pushed the fix/statusline-tabpage-symbol branch from 98a1fe8 to e1b05b1 Compare June 16, 2026 04:23
Copilot AI review requested due to automatic review settings June 16, 2026 04:23
@github-actions github-actions Bot added the size/xs Extra small PR (<3 lines changed) label Jun 16, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Limits the window search in Trouble’s main view to the current tabpage to avoid scanning windows across all tabs.

Changes:

  • Switches from listing all Neovim windows to listing only windows in the current tabpage when finding a target window/buffer.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread lua/trouble/view/main.lua
Comment on lines +56 to 57
local wins = vim.api.nvim_tabpage_list_wins(0)
table.insert(wins, 1, vim.api.nvim_get_current_win())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/xs Extra small PR (<3 lines changed)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: Statusline symbols from previous buffer shown on buffer with buftype = 'nofile'

2 participants