How to scroll across large diffs in mini.diff overlay. #1987
-
Contributing guidelines
Module(s)mini.diff QuestionHi echasnovski! I recently had this issue where I had a huge number of lines added and enabled overlay. Since the number of lines added are greater than the number of lines the terminal can show at a time, once I go to the next line, it automatically goes to the end of all the added lines diff. I was not able to look at the huge diff in overlay since scrolling would take me to the end of diff, thus missing the content in the middle. So to sum up my question, how can we scroll across large diffs. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I guess the problem is not with visualization of added lines, because they are highlighted "in place" (i.e. over real buffer lines). This problem might occur with:
Unfortunately, the answer here is that I don't think it is possible to scroll through virtual lines only. Neovim buffers have to show at least one real line in the window (it seems), so scrolling even by a single line (with |
Beta Was this translation helpful? Give feedback.
I guess the problem is not with visualization of added lines, because they are highlighted "in place" (i.e. over real buffer lines). This problem might occur with:
linematch
can not match lines to break them into more smaller hunks.Unfortunately, the answer here is that I don't think it is possible to scroll through virtual lines only. Neovim buffers have to show at least one real line in the window (it seems), so scrolling even by a single line (with
<C-y>
or<C-e>
) in this case will scroll from one real line to the other.