if there is a block of code (say 10 lines) is folded before the executing line, then the output window will be shifted downwards (10 lines).
-------- test.py -----------
print('hello') # if execute this single line there, it works just fine
+-- 10 lines: ..... ---- # there are 10 lines being folded
print('hello') # if executing this single line, the output window would be at the bottom. (being shifted downwards 10 lines)
--------end test.py ---------------------
Hint of duplicate this issue, set the vim folding method to be "manual" and press zf after selecting the lines in visual mode
vim.opt.foldmethod = "manual"
So the essential issue would be when there are too many lines folded, no output window would be shown.
The current case is:
if there is a block of code (say 10 lines) is folded before the executing line, then the output window will be shifted downwards (10 lines). -------- test.py ----------- print('hello') # if execute this single line there, it works just fine
+-- 10 lines: ..... ---- # there are 10 lines being folded
print('hello') # if executing this single line, the output window would be at the bottom. (being shifted downwards 10 lines)
--------end test.py ---------------------
Hint of duplicate this issue, set the vim folding method to be "manual" and press zf after selecting the lines in visual mode
vim.opt.foldmethod = "manual"
So the essential issue would be when there are too many lines folded, no output window would be shown.