Fix win_id 0 always being included in :tab-take completion

This commit is contained in:
Jay Kamat 2018-04-02 20:34:34 -04:00
parent 79823a9a0b
commit 3b2c0823af
No known key found for this signature in database
GPG Key ID: 5D2E399600F4F7B5

View File

@ -110,7 +110,7 @@ def _buffer(skip_win_id=None):
model = completionmodel.CompletionModel(column_widths=(6, 40, 54))
for win_id in objreg.window_registry:
if skip_win_id and win_id == skip_win_id:
if skip_win_id is not None and win_id == skip_win_id:
continue
tabbed_browser = objreg.get('tabbed-browser', scope='window',
window=win_id)