Mercurial > vim
view src/testdir/test_messages.vim @ 13119:729f279fda8d v8.0.1434
patch 8.0.1434: GTK: :promtfind does not put focus on text input
commit https://github.com/vim/vim/commit/d7823d5b7c32f73ca720373ea9c16b1b47f086df
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jan 28 15:36:42 2018 +0100
patch 8.0.1434: GTK: :promtfind does not put focus on text input
Problem: GTK: :promtfind does not put focus on text input. (Adam Novak)
Solution: When re-opening the dialog put focus on the text input. (Kazunobu
Kuriyama, closes #2563)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 28 Jan 2018 15:45:05 +0100 |
parents | 9200836eee15 |
children | d111462e0173 |
line wrap: on
line source
" Tests for :messages function Test_messages() let oldmore = &more try set nomore " Avoid the "message maintainer" line. let $LANG = '' let arr = map(range(10), '"hello" . v:val') for s in arr echomsg s | redraw endfor let result = '' " get last two messages redir => result 2messages | redraw redir END let msg_list = split(result, "\n") call assert_equal(["hello8", "hello9"], msg_list) " clear messages without last one 1messages clear redir => result redraw | messages redir END let msg_list = split(result, "\n") call assert_equal(['hello9'], msg_list) " clear all messages messages clear redir => result redraw | messages redir END call assert_equal('', result) finally let &more = oldmore endtry endfunction