Unexpected buffer background highlighting when file is opened after using preview
See original GitHub issue- vim or neovim?
- vim
- neovim
- Output of
vim --version
ornvim --version
: v0.4.3 - Output of
:echo has("python")
: 0 - Output of
:echo has("python3")
: 1 - Output of
:echo &pythondll
(only vim, not neovim): - Output of
:echo &pythonthreedll
(only vim, not neovim): - Output of
:py print(sys.version)
: - Output of
:py3 print(sys.version)
: 3.7.3 (default, Mar 27 2019, 09:23:15) [Clang 10.0.1 (clang-1001.0.46.3)] - Output of
:echo g:Lf_Debug_Cmd
: rg --no-messages --files --color never - Output of
:echo g:Lf_FilesFromCache
: 1 - Operating system:
- Linux
- Mac OS X
- Windows
- Etc.
- Configurations related to LeaderF in vimrc:
This is the full content from my minimal_vimrc file:
set number
let mapleader = " "
call plug#begin('~/.vim/plugins')
Plug 'Yggdroot/LeaderF', { 'do': './install.sh' }
let g:Lf_HideHelp = 1
let g:Lf_PreviewInPopup = 1
let g:Lf_StlSeparator = { 'left': "\ue0b0", 'right': "\ue0b2" }
let g:Lf_WindowPosition = 'popup'
call plug#end()
Describe your question, feature request, or bug.
I noticed a strange highlighting on the background of a buffer whenever I preview a file before opening it. I have some gifs below, hopefully it will be clear what the problem is. Notice that after the previewed file is open, its buffer retains the same background color as the preview window, and you can also see that the sign column color is different.
Steps to reproduce
- Call
Leaderf file
- Hit
<C-P>
to toggle preview - Open the file that was previewed (it doesn’t matter if the preview window was open or closed when you open the previewed file)
Actual behaviour
Expected behaviour
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Highlight, underline, and strike out text in a PDF using Preview ...
Remove a highlight, an underline, or a strikethrough: Control-click the text, then choose Remove item from the shortcut menu. View all the highlights...
Read more >norcalli/nvim-colorizer.lua: The fastest Neovim colorizer.
colorizer.lua. luadoc. A high-performance color highlighter for Neovim which has no external dependencies! Written in performant Luajit.
Read more >Todo Tree - Visual Studio Marketplace
Clicking a TODO within the tree will open the file and put the cursor on the line containing the TODO. Found TODOs can...
Read more >Vim file navigation - editor - Stack Overflow
Just :e a new file in the same window. Then, use :b <tab> to cycle through buffers that are already open in the...
Read more >Modern IDEs are magic. Why are so many coders still using ...
“Since then it's become a question of 'code speed.' If I start with a new IDE or even switch to something like Emacs,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@hzchirs fixed.
This issue has been fixed by a workaround.