Mercurial > vim
comparison src/testdir/test_options.vim @ 16722:19ca17f9e155 v8.1.1363
patch 8.1.1363: ":vert options" does not make a vertical split
commit https://github.com/vim/vim/commit/e0b5949a3b28be9940bb8a46b2579e960100b83b
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue May 21 20:54:45 2019 +0200
patch 8.1.1363: ":vert options" does not make a vertical split
Problem: ":vert options" does not make a vertical split.
Solution: Pass the right modifiers in $OPTWIN_CMD. (Ken Takata,
closes #4401)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 21 May 2019 21:00:07 +0200 |
parents | ca1814eeecf5 |
children | d726d8cce996 |
comparison
equal
deleted
inserted
replaced
16721:1e81d008be84 | 16722:19ca17f9e155 |
---|---|
48 options | 48 options |
49 catch | 49 catch |
50 let caught = v:throwpoint . "\n" . v:exception | 50 let caught = v:throwpoint . "\n" . v:exception |
51 endtry | 51 endtry |
52 call assert_equal('ok', caught) | 52 call assert_equal('ok', caught) |
53 | |
54 " Check if the option-window is opened horizontally. | |
55 wincmd j | |
56 call assert_notequal('option-window', bufname('')) | |
57 wincmd k | |
58 call assert_equal('option-window', bufname('')) | |
59 " close option-window | |
60 close | |
61 | |
62 " Open the option-window vertically. | |
63 vert options | |
64 " Check if the option-window is opened vertically. | |
65 wincmd l | |
66 call assert_notequal('option-window', bufname('')) | |
67 wincmd h | |
68 call assert_equal('option-window', bufname('')) | |
69 " close option-window | |
70 close | |
71 | |
72 " Open the option-window in a new tab. | |
73 tab options | |
74 " Check if the option-window is opened in a tab. | |
75 normal gT | |
76 call assert_notequal('option-window', bufname('')) | |
77 normal gt | |
78 call assert_equal('option-window', bufname('')) | |
53 | 79 |
54 " close option-window | 80 " close option-window |
55 close | 81 close |
56 endfunc | 82 endfunc |
57 | 83 |