Mercurial > vim
comparison src/testdir/test_viminfo.vim @ 17466:15de78cb9f39 v8.1.1731
patch 8.1.1731: command line history not read from viminfo on startup
commit https://github.com/vim/vim/commit/26b654a5df9414e43734eb4c956b67c331d70a50
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jul 22 20:50:17 2019 +0200
patch 8.1.1731: command line history not read from viminfo on startup
Problem: Command line history not read from viminfo on startup.
Solution: Get history length after initializing it.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 22 Jul 2019 21:00:06 +0200 |
parents | 2dcaa860e3fc |
children | 24d7a7d27471 |
comparison
equal
deleted
inserted
replaced
17465:2841dc265ad7 | 17466:15de78cb9f39 |
---|---|
1 " Test for reading and writing .viminfo | 1 " Test for reading and writing .viminfo |
2 | 2 |
3 function Test_viminfo_read_and_write() | 3 function Test_viminfo_read_and_write() |
4 " First clear 'history', so that "hislen" is zero. Then set it again, | |
5 " simulating Vim starting up. | |
6 set history=0 | |
7 wviminfo Xviminfo | |
8 set history=1000 | |
9 | |
4 call histdel(':') | 10 call histdel(':') |
5 let lines = [ | 11 let lines = [ |
6 \ '# comment line', | 12 \ '# comment line', |
7 \ '*encoding=utf-8', | 13 \ '*encoding=utf-8', |
8 \ '~MSle0~/asdf', | 14 \ '~MSle0~/asdf', |