Lines Matching refs:win
212 " Test $win height (get and set window height)
229 " Test $win cursor (get and set cursor)
233 tcl set win $::vim::current(window)
235 tcl $win cursor 2 4
237 call assert_equal('row 2 column 4', TclEval('$win cursor'))
243 call assert_equal('row 1 column 3', TclEval('$win cursor'))
244 tcl $win cursor 2 4
246 call assert_equal('row 2 column 4', TclEval('$win cursor'))
248 call assert_equal('row 3 column 5', TclEval('$win cursor'))
251 " test $win cursor {$var}
253 tcl array set here [$win cursor]
257 tcl $win cursor here
261 tcl $win cursor $here(row) $here(column)
266 call assert_fails('tcl $win cursor pos', "can't read \"pos(row)\":")
268 call assert_fails('tcl $win cursor pos', "expected integer but got \"''\"")
270 call assert_fails('tcl $win cursor pos', "can't read \"pos(column)\":")
272 call assert_fails('tcl $win cursor pos', "expected integer but got \"''\"")
274 call assert_fails("tcl $win cursor '' 2", "expected integer but got \"''\"")
275 call assert_fails("tcl $win cursor 1 ''", "expected integer but got \"''\"")
277 call assert_fails('tcl $win cursor 1 1 1', 'wrong # args:')
279 tcl unset win here
283 " Test $win buffer
304 " Test $win command
329 " Test $win expr
347 " Test $win option
371 " Test $win delcmd {cmd}