fix(popup): support relative: cusror on vim#281
fix(popup): support relative: cusror on vim#281Warashi wants to merge 13 commits intovim-denops:mainfrom
Conversation
Signed-off-by: Shinnosuke Sawada-Dazai <shin@warashi.dev>
Signed-off-by: Shinnosuke Sawada-Dazai <shin@warashi.dev>
Signed-off-by: Shinnosuke Sawada-Dazai <shin@warashi.dev>
Signed-off-by: Shinnosuke Sawada-Dazai <shin@warashi.dev>
Signed-off-by: Shinnosuke Sawada-Dazai <shin@warashi.dev>
Signed-off-by: Shinnosuke Sawada-Dazai <shin@warashi.dev>
Signed-off-by: Shinnosuke Sawada-Dazai <shin@warashi.dev>
Signed-off-by: Shinnosuke Sawada-Dazai <shin@warashi.dev>
…handling Signed-off-by: Shinnosuke Sawada-Dazai <shin@warashi.dev>
Signed-off-by: Shinnosuke Sawada-Dazai <shin@warashi.dev>
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Warashi
left a comment
There was a problem hiding this comment.
I tested Vim's behavior with the script below and got a weird result.
script
set lines=100 columns=100
call append(0, [
\ '0123456789',
\ '0123456789',
\ '0123456789',
\ '0123456789',
\ '0123456789',
\ '0123456789',
\ '0123456789',
\ '0123456789',
\ '0123456789',
\ '0123456789',
\ ])
call cursor([5, 5])
echo popup_create('a', #{line: "cursor+3", col: "cursor+3"})->getwininfo()
echo getcurpos()
quitall!shell command to run the above script
vim -V10 -u NONE -i NONE -N -n -e -s -S test.vimresult
Opening the X display failed
line 0: sourcing "test.vim"
[{'winnr': 0, 'variables': {}, 'botline': 1, 'height': 1, 'bufnr': 2, 'winbar': 0, 'width': 1, 'leftcol': 0, 'tabnr': 0, 'quickfix': 0, 'topline': 1, 'loclist': 0, 'wincol': 4, 'winrow': 4, 'textoff': 0, 'winid': 1001, 'terminal': 0}]
[0, 5, 5, 0, 5]
When I did the same thing in the cmdline, I got another result.
[{'winnr': 0, 'variables': {}, 'botline': 1, 'height': 1, 'bufnr': 2, 'winbar': 0, 'width': 1, 'lef
col': 0, 'tabnr': 0, 'quickfix': 0, 'topline': 1, 'loclist': 0, 'wincol': 8, 'winrow': 8, 'textoff't
0, 'winid': 1001, 'terminal': 0}] :
[0, 5, 5, 0, 5]
| assertEquals(info.winrow, 7, "winrow should be 7"); | ||
| assertEquals(info.wincol, 7, "wincol should be 7"); |
There was a problem hiding this comment.
The 7 comes from the nvim's test result.
This PR adds support for popup.open's relative option on vim.