mirror of
https://github.com/neovim/neovim.git
synced 2025-09-14 23:38:17 +00:00
vim-patch:7.4.1895
Problem: Cannot use a window ID where a window number is expected.
Solution: Add LOWEST_WIN_ID, so that the window ID can be used where a
number is expected.
888ccac890
This commit is contained in:
@@ -10268,7 +10268,11 @@ find_win_by_nr (
|
||||
}
|
||||
|
||||
FOR_ALL_WINDOWS_IN_TAB(wp, tp) {
|
||||
if (--nr <= 0) {
|
||||
if (nr >= LOWEST_WIN_ID) {
|
||||
if (wp->handle == nr) {
|
||||
return wp;
|
||||
}
|
||||
} else if (--nr <= 0) {
|
||||
return wp;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user