Closed rcasta74 closed 2 years ago
It works well for me in gvim:
Just found out that the issue is due to on_exit callback that is invoked when there are still data to be read from stdout channel (when using job_start function from vim). This is explained by a note of :h job-exit_cb
:
Note that data can be buffered, callbacks may still be
called after the process ends.
As a workaround an handler could be registered for close_cb
; it looks like that exit_cb handler is invoked after close_cb handler (even if I cannot found it documented in the vim help), while close_cb handler is invoked when there is no more data to be passed to callbacks, so even an empty function cuold be used for this handler.
@rcasta74 thanks, I will look into it. does it happend in neovim?
@rcasta74 thanks, I will look into it. does it happend in neovim?
In neovim it doesn't happen. The fix doesn't work for me: only the first line is shown (in neovim still working).
The fix doesn't work for me: only the first line is shown
This is due to issue #4674
While trying to fix issue #4674 using the posted code or forcing python code, I have noted that if there are a lot of commit and I try to open one of them, if the buffer is not fullfilled yet the already inserted commit are dropped and the remaining ones will start from the first line.
I think this is due to getline('$')
, getbufline(s:bufnr, '$')[0]
should be used instead.
Also closing the buffer with q
, if not all commits were added, the buffer is reopened with missing commit starting from the first line. In this case I have no idea how to solve.
When using vim, with default git_plugin, opening git log the buffer is truncated (not all commit are shown); same issue with git diff opening a commit with many changes. It does not happen with nvim.
Expected behavior, english is recommend
Environment Information
The reproduce ways from Vim starting (Required!)
Start vim from .SpaceVim folder and open git log with
SPC g v
, only less than 1000 commits are displayed (with nvim instead I can see at around 7400 rows). Then open a commit with many changes (e360f0c9), only less than 500 rows are displayed (with nvim I can see at around 3600 rows). The number of displayed rows in vim changes every time.Output of the
:SPDebugInfo!
SpaceVim debug information
### SpaceVim options : ```toml auto_disable_touchpad = 1 autocomplete_method = 'deoplete' autocomplete_parens = 1 bootstrap_after = 'myspacevim#after' bootstrap_before = 'myspacevim#before' buffer_index_type = 4 checkinstall = 1 code_runner_focus = 0 colorscheme = 'gruvbox' colorscheme_bg = 'dark' colorscheme_default = 'desert' commandline_prompt = '>' custom_color_palette = [] custom_plugins = [] data_dir = '/home/roberto/.cache/' debug_level = 1 default_custom_leader = 'Screenshots
If you have any screenshots for this issue please upload here. BTW you can use https://asciinema.org/ for recording video in terminal.