Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flickering when cmdheight=0 #2

Closed
yutkat opened this issue Jul 27, 2022 · 11 comments
Closed

Flickering when cmdheight=0 #2

yutkat opened this issue Jul 27, 2022 · 11 comments

Comments

@yutkat
Copy link
Contributor

yutkat commented Jul 27, 2022

Screen flickers when moving the cursor with cmdheight=0.

wf_220727-171128.mp4

minimal init.lua

vim.cmd [[syntax enable]]
vim.cmd [[filetype plugin indent on]]

local install_path = vim.fn.stdpath('data')..'/site/pack/packer/opt/packer.nvim'
if vim.fn.empty(vim.fn.glob(install_path)) == 1 then
  vim.api.nvim_command('!git clone https://github.com/wbthomason/packer.nvim '..install_path)
end
vim.cmd [[packadd packer.nvim]]

-- Occurs when this option is present
vim.o.cmdheight = 0

local function load_plugins()
  return require('packer').startup(function()
    use {'wbthomason/packer.nvim', opt = true}
    use {'Decodetalkers/csv-tools.lua'}
  end)
end
load_plugins()
@Decodetalkers
Copy link
Owner

Please reupload the video ,it seems it is not uploaded successfully..

@Decodetalkers
Copy link
Owner

I have view the problem in nightly... I will try to find out the solution

@yutkat
Copy link
Contributor Author

yutkat commented Jul 27, 2022

Please reupload the video ,it seems it is not uploaded successfully..

I can see the video properly, but I upload it again just in case.

wf_220727-171128.mp4

@Decodetalkers
Copy link
Owner

Please reupload the video ,it seems it is not uploaded successfully..

I can see the video properly, but I upload it again just in case.
wf_220727-171128.mp4

https://github.com/Decodetalkers/csv-tools.lua/blob/master/lua/csvtools.lua#L121

problem happened when it try to clear highlight.. if you set clearafter= false ,it will not Flicker...

@Decodetalkers
Copy link
Owner

No , not because of it...

@Decodetalkers
Copy link
Owner

Please reupload the video ,it seems it is not uploaded successfully..

I can see the video properly, but I upload it again just in case.
wf_220727-171128.mp4

https://github.com/Decodetalkers/csv-tools.lua/blob/master/lua/csvtools.lua#L197
I see , I use ":+1:lua ..." then everytime ,it call the cmdline.. But I have no idea how to call the function and move to the nextline with the keybinding..

@Decodetalkers
Copy link
Owner

FIxed. wait for a minite

Decodetalkers added a commit that referenced this issue Jul 27, 2022
@Decodetalkers
Copy link
Owner

Please reupload the video ,it seems it is not uploaded successfully..

I can see the video properly, but I upload it again just in case.
wf_220727-171128.mp4

I think I fixed it

@yutkat
Copy link
Contributor Author

yutkat commented Jul 27, 2022

@Decodetalkers
Copy link
Owner

I think this line is -1.

2dc56d0#diff-9f6f9e2b5a839bcd620bb16b9edf03d11646bdbceb600bfde93a5d73c9204f03R189

Oop, I make a mistake.. But I am on the train now.. Can you make a PR for me?

yutkat added a commit to yutkat/csv-tools.lua that referenced this issue Jul 27, 2022
Decodetalkers added a commit that referenced this issue Jul 27, 2022
@yutkat
Copy link
Contributor Author

yutkat commented Jul 27, 2022

Resolved. Thank you 😄

@yutkat yutkat closed this as completed Jul 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants