patch 8.2.1940: Vim9: browse modifier test fails on Mac
Problem: Vim9: browse modifier test fails on Mac.
Solution: Only test when the +browse feature is available.
diff --git a/src/testdir/test_vim9_cmd.vim b/src/testdir/test_vim9_cmd.vim
index a87d9b2..dc4dc76 100644
--- a/src/testdir/test_vim9_cmd.vim
+++ b/src/testdir/test_vim9_cmd.vim
@@ -347,9 +347,11 @@
assert_equal(2, winnr())
close
- browse set
- assert_equal('option-window', expand('%'))
- close
+ if has('browse')
+ browse set
+ assert_equal('option-window', expand('%'))
+ close
+ endif
vsplit
botright split