Commit 83de79f
check for valid window before resizing (#306)
when calling `notify` on a notification instance quickly after the
window has been dismissed, the on_close callback was not yet called as
it is handled asynchronously by vim-notify. Yet, the window is gone and
its winID is not valid anymore. Since the on_open callback is also
handled async, the winID has not been replaced by then. Skipping the
resize should be fine as the new notification should be displayed with
the correct size to begin with1 parent 591ae37 commit 83de79f
1 file changed
Lines changed: 10 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| 74 | + | |
74 | 75 | | |
75 | 76 | | |
76 | 77 | | |
| |||
85 | 86 | | |
86 | 87 | | |
87 | 88 | | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
96 | 98 | | |
97 | 99 | | |
98 | 100 | | |
| |||
0 commit comments