Skip to content

Escape to close leaderF window shows error when you have only spaces entered #233

@habamax

Description

@habamax
  • vim or neovim?
    • vim
    • neovim
  • Output of vim --version or nvim --version: vim 8.1, patches 1-477
  • Output of :echo has("python"): 0
  • Output of :echo has("python3"): 1
  • Output of :echo &pythondll(only vim, not neovim): python27.dll
  • Output of :echo &pythonthreedll(only vim, not neovim): python37.dll
  • Output of :py print(sys.version): Could not load library python27.dll
  • Output of :py3 print(sys.version): 3.7.0
  • Output of :echo g:Lf_Debug_Cmd: rg --no-messages --files "."
  • Operating system:
    • Linux
    • Mac OS X
    • Windows
    • Etc.
  • Configurations related to LeaderF in vimrc:
	let g:Lf_StlSeparator = { 'left': '', 'right': '' }
	let g:Lf_ShortcutF = '<leader>ff'
	let g:Lf_Shortcutb = '<leader>b'
	let g:Lf_WindowHeight = 0.30
	cabbrev lf LeaderfFile
	nnoremap <leader>fh :LeaderfHelp<CR>
	nnoremap <leader>fm :LeaderfMru<CR>
	nnoremap <leader>fs :LeaderfSelf<CR>
	nnoremap <leader>fc :LeaderfColorscheme<CR>
	nnoremap <leader>/ :LeaderfLine<CR>
	nnoremap <leader>fdd :LeaderfFile ~/docs<CR>
	packadd leaderF

Describe your question, feature request, or bug.

Error when close the leaderf window
image

Steps to reproduce

  1. :LeaderfFile
  2. input 2+ spaces
  3. press escape

Actual behaviour

Expected behaviour

LeaderF Window should be closed without errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions