Mercurial > vim
annotate src/testdir/test_move.vim @ 18769:011cc1d22520 v8.1.2374
patch 8.1.2374: unused parts of libvterm are included
Commit: https://github.com/vim/vim/commit/269e4bd9d2a52dd55eb4b05a6d2313e705f5edee
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Dec 1 15:31:12 2019 +0100
patch 8.1.2374: unused parts of libvterm are included
Problem: Unused parts of libvterm are included.
Solution: Delete the unused files.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 01 Dec 2019 15:45:03 +0100 |
parents | e3910b9827d0 |
children | b8fd7364befd |
rev | line source |
---|---|
15010
e3910b9827d0
patch 8.1.0516: :move command marks buffer modified when nothing changed
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
1 " Test the ":move" command. |
e3910b9827d0
patch 8.1.0516: :move command marks buffer modified when nothing changed
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
2 |
e3910b9827d0
patch 8.1.0516: :move command marks buffer modified when nothing changed
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
3 func Test_move() |
e3910b9827d0
patch 8.1.0516: :move command marks buffer modified when nothing changed
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
4 enew! |
e3910b9827d0
patch 8.1.0516: :move command marks buffer modified when nothing changed
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
5 call append(0, ['line 1', 'line 2', 'line 3']) |
e3910b9827d0
patch 8.1.0516: :move command marks buffer modified when nothing changed
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
6 g /^$/ delete _ |
e3910b9827d0
patch 8.1.0516: :move command marks buffer modified when nothing changed
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
7 set nomodified |
e3910b9827d0
patch 8.1.0516: :move command marks buffer modified when nothing changed
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
8 |
e3910b9827d0
patch 8.1.0516: :move command marks buffer modified when nothing changed
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
9 move . |
e3910b9827d0
patch 8.1.0516: :move command marks buffer modified when nothing changed
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
10 call assert_equal(['line 1', 'line 2', 'line 3'], getline(1, 3)) |
e3910b9827d0
patch 8.1.0516: :move command marks buffer modified when nothing changed
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
11 call assert_false(&modified) |
e3910b9827d0
patch 8.1.0516: :move command marks buffer modified when nothing changed
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
12 |
e3910b9827d0
patch 8.1.0516: :move command marks buffer modified when nothing changed
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
13 1,2move 0 |
e3910b9827d0
patch 8.1.0516: :move command marks buffer modified when nothing changed
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
14 call assert_equal(['line 1', 'line 2', 'line 3'], getline(1, 3)) |
e3910b9827d0
patch 8.1.0516: :move command marks buffer modified when nothing changed
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
15 call assert_false(&modified) |
e3910b9827d0
patch 8.1.0516: :move command marks buffer modified when nothing changed
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
16 |
e3910b9827d0
patch 8.1.0516: :move command marks buffer modified when nothing changed
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
17 1,3move 3 |
e3910b9827d0
patch 8.1.0516: :move command marks buffer modified when nothing changed
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
18 call assert_equal(['line 1', 'line 2', 'line 3'], getline(1, 3)) |
e3910b9827d0
patch 8.1.0516: :move command marks buffer modified when nothing changed
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
19 call assert_false(&modified) |
e3910b9827d0
patch 8.1.0516: :move command marks buffer modified when nothing changed
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
20 |
e3910b9827d0
patch 8.1.0516: :move command marks buffer modified when nothing changed
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
21 1move 2 |
e3910b9827d0
patch 8.1.0516: :move command marks buffer modified when nothing changed
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
22 call assert_equal(['line 2', 'line 1', 'line 3'], getline(1, 3)) |
e3910b9827d0
patch 8.1.0516: :move command marks buffer modified when nothing changed
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
23 call assert_true(&modified) |
e3910b9827d0
patch 8.1.0516: :move command marks buffer modified when nothing changed
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
24 set nomodified |
e3910b9827d0
patch 8.1.0516: :move command marks buffer modified when nothing changed
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
25 |
e3910b9827d0
patch 8.1.0516: :move command marks buffer modified when nothing changed
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
26 3move 0 |
e3910b9827d0
patch 8.1.0516: :move command marks buffer modified when nothing changed
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
27 call assert_equal(['line 3', 'line 2', 'line 1'], getline(1, 3)) |
e3910b9827d0
patch 8.1.0516: :move command marks buffer modified when nothing changed
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
28 call assert_true(&modified) |
e3910b9827d0
patch 8.1.0516: :move command marks buffer modified when nothing changed
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
29 set nomodified |
e3910b9827d0
patch 8.1.0516: :move command marks buffer modified when nothing changed
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
30 |
e3910b9827d0
patch 8.1.0516: :move command marks buffer modified when nothing changed
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
31 2,3move 0 |
e3910b9827d0
patch 8.1.0516: :move command marks buffer modified when nothing changed
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
32 call assert_equal(['line 2', 'line 1', 'line 3'], getline(1, 3)) |
e3910b9827d0
patch 8.1.0516: :move command marks buffer modified when nothing changed
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
33 call assert_true(&modified) |
e3910b9827d0
patch 8.1.0516: :move command marks buffer modified when nothing changed
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
34 set nomodified |
e3910b9827d0
patch 8.1.0516: :move command marks buffer modified when nothing changed
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
35 |
e3910b9827d0
patch 8.1.0516: :move command marks buffer modified when nothing changed
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
36 call assert_fails('1,2move 1', 'E134') |
e3910b9827d0
patch 8.1.0516: :move command marks buffer modified when nothing changed
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
37 call assert_fails('2,3move 2', 'E134') |
e3910b9827d0
patch 8.1.0516: :move command marks buffer modified when nothing changed
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
38 |
e3910b9827d0
patch 8.1.0516: :move command marks buffer modified when nothing changed
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
39 %bwipeout! |
e3910b9827d0
patch 8.1.0516: :move command marks buffer modified when nothing changed
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
40 endfunc |