Mercurial > vim
comparison src/proto/ex_getln.pro @ 9240:636cfa97200e v7.4.1903
commit https://github.com/vim/vim/commit/45d2eeaad66939348893b9254171067b0457cd9d
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jun 6 21:07:52 2016 +0200
patch 7.4.1903
Problem: When writing viminfo merging current history with history in
viminfo may drop recent history entries.
Solution: Add new format for viminfo lines, use it for history entries. Use
a timestamp for ordering the entries. Add test_settime().
Add the viminfo version. Does not do merging on timestamp yet.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 06 Jun 2016 21:15:07 +0200 |
parents | 21b0a39d13ed |
children | 26c7bf23ec1d |
comparison
equal
deleted
inserted
replaced
9239:a744b63c4ed0 | 9240:636cfa97200e |
---|---|
35 void globpath(char_u *path, char_u *file, garray_T *ga, int expand_options); | 35 void globpath(char_u *path, char_u *file, garray_T *ga, int expand_options); |
36 void init_history(void); | 36 void init_history(void); |
37 int get_histtype(char_u *name); | 37 int get_histtype(char_u *name); |
38 void add_to_history(int histype, char_u *new_entry, int in_map, int sep); | 38 void add_to_history(int histype, char_u *new_entry, int in_map, int sep); |
39 int get_history_idx(int histype); | 39 int get_history_idx(int histype); |
40 char_u *get_cmdline_str(void); | |
41 int get_cmdline_pos(void); | |
42 int set_cmdline_pos(int pos); | |
43 int get_cmdline_type(void); | |
44 char_u *get_history_entry(int histype, int idx); | 40 char_u *get_history_entry(int histype, int idx); |
45 int clr_history(int histype); | 41 int clr_history(int histype); |
46 int del_history_entry(int histype, char_u *str); | 42 int del_history_entry(int histype, char_u *str); |
47 int del_history_idx(int histype, int idx); | 43 int del_history_idx(int histype, int idx); |
48 void remove_key_from_history(void); | 44 void remove_key_from_history(void); |
45 char_u *get_cmdline_str(void); | |
46 int get_cmdline_pos(void); | |
47 int set_cmdline_pos(int pos); | |
48 int get_cmdline_type(void); | |
49 int get_list_range(char_u **str, int *num1, int *num2); | 49 int get_list_range(char_u **str, int *num1, int *num2); |
50 void ex_history(exarg_T *eap); | 50 void ex_history(exarg_T *eap); |
51 void prepare_viminfo_history(int asklen, int writing); | 51 void prepare_viminfo_history(int asklen, int writing); |
52 int read_viminfo_history(vir_T *virp, int writing); | 52 int read_viminfo_history(vir_T *virp, int writing); |
53 void handle_viminfo_history(bval_T *values, int count, int writing); | |
53 void finish_viminfo_history(void); | 54 void finish_viminfo_history(void); |
54 void write_viminfo_history(FILE *fp, int merge); | 55 void write_viminfo_history(FILE *fp, int merge); |
55 void cmd_pchar(int c, int offset); | 56 void cmd_pchar(int c, int offset); |
56 int cmd_gchar(int offset); | 57 int cmd_gchar(int offset); |
57 char_u *script_get(exarg_T *eap, char_u *cmd); | 58 char_u *script_get(exarg_T *eap, char_u *cmd); |