Hello,
I have configured g:scratch_persistence_file option and set the g:scratch_autohide and g:scratch_insert_autohide to 1. When I open vim for the first time and triggered the scratch buffer by pressing 'gs' the scratch window open but when I press the scratch window doesnot close. Because the bufwinnr(bufnr('#')) will return -1. But if I close the scratch window manually and open it agian and then press , it will close automatically.
The above screenshot shows the piece of code where the problem is there.
Hello, I have configured g:scratch_persistence_file option and set the g:scratch_autohide and g:scratch_insert_autohide to 1. When I open vim for the first time and triggered the scratch buffer by pressing 'gs' the scratch window open but when I press the scratch window doesnot close. Because the bufwinnr(bufnr('#')) will return -1. But if I close the scratch window manually and open it agian and then press , it will close automatically.
The above screenshot shows the piece of code where the problem is there.
Thank you.