Mercurial > vim
annotate src/testdir/test_erasebackword.in @ 10575:01a5f64a7a20 v8.0.0177
patch 8.0.0177: BufEnter autocommand not fired for a directory
commit https://github.com/vim/vim/commit/e13b9afe1283f5ae43232b5992372a0eb570666c
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jan 13 22:01:02 2017 +0100
patch 8.0.0177: BufEnter autocommand not fired for a directory
Problem: When opening a buffer on a directory and inside a try/catch then
the BufEnter event is not triggered.
Solution: Return NOTDONE from readfile() for a directory and deal with the
three possible return values. (Justin M. Keyes, closes #1375,
closes #1353)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 13 Jan 2017 22:15:03 +0100 |
parents | f202e335d491 |
children | ae45d497868f |
rev | line source |
---|---|
6716
f202e335d491
Add test files for patch 7.4.680.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
1 Test for erasing backword |
f202e335d491
Add test files for patch 7.4.680.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
2 |
f202e335d491
Add test files for patch 7.4.680.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
3 STARTTEST |
f202e335d491
Add test files for patch 7.4.680.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
4 :so small.vim |
f202e335d491
Add test files for patch 7.4.680.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
5 :so mbyte.vim |
f202e335d491
Add test files for patch 7.4.680.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
6 :set encoding=utf-8 |
f202e335d491
Add test files for patch 7.4.680.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
7 G |
f202e335d491
Add test files for patch 7.4.680.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
8 o wwwこんにちわ世界ワールドvim |
f202e335d491
Add test files for patch 7.4.680.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
9 o wwwこんにちわ世界ワールドvim |
f202e335d491
Add test files for patch 7.4.680.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
10 o wwwこんにちわ世界ワールドvim |
f202e335d491
Add test files for patch 7.4.680.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
11 o wwwこんにちわ世界ワールドvim |
f202e335d491
Add test files for patch 7.4.680.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
12 o wwwこんにちわ世界ワールドvim |
f202e335d491
Add test files for patch 7.4.680.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
13 o wwwこんにちわ世界ワールドvim |
f202e335d491
Add test files for patch 7.4.680.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
14 :/^test/,$w! test.out |
f202e335d491
Add test files for patch 7.4.680.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
15 :qa! |
f202e335d491
Add test files for patch 7.4.680.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
16 ENDTEST |
f202e335d491
Add test files for patch 7.4.680.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
17 |
f202e335d491
Add test files for patch 7.4.680.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
18 test starts here: |
f202e335d491
Add test files for patch 7.4.680.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
19 |