view src/testdir/test_tcl.vim @ 13184:2ede8acf65dc v8.0.1466

patch 8.0.1466: older GTK versions don't have gtk_entry_get_text_length() commit https://github.com/vim/vim/commit/06b77ef69f252e1ba8a2136dcbed6622bc2371bb Author: Bram Moolenaar <Bram@vim.org> Date: Sun Feb 4 14:32:57 2018 +0100 patch 8.0.1466: older GTK versions don't have gtk_entry_get_text_length() Problem: Older GTK versions don't have gtk_entry_get_text_length(). Solution: Add a function with #ifdefs to take care of GTK version differences. (Kazunobu Kuriyama, closes #2605)
author Christian Brabandt <cb@256bit.org>
date Sun, 04 Feb 2018 14:45:06 +0100
parents ae0bbbbe2a38
children c80acf74e7df
line wrap: on
line source

" Tests for the Tcl interface.

if !has('tcl')
  finish
end

function Test_tcldo()
  " Check deleting lines does not trigger ml_get error.
  new
  call setline(1, ['one', 'two', 'three'])
  tcldo ::vim::command %d_
  bwipe!

  " Check switching to another buffer does not trigger ml_get error.
  new
  let wincount = winnr('$')
  call setline(1, ['one', 'two', 'three'])
  tcldo ::vim::command new
  call assert_equal(wincount + 1, winnr('$'))
  bwipe!
  bwipe!
endfunc