mirror of
https://github.com/neovim/neovim.git
synced 2025-10-01 15:38:33 +00:00
vim-patch:7.4.1925
Problem: Viminfo does not merge file marks properly.
Solution: Use a timestamp. Add the :clearjumps command.
2d35899721
This commit is contained in:
@@ -479,6 +479,12 @@ return {
|
||||
addr_type=ADDR_WINDOWS,
|
||||
func='ex_close',
|
||||
},
|
||||
{
|
||||
command='clearjumps',
|
||||
flags=bit.bor(TRLBAR, CMDWIN),
|
||||
addr_type=ADDR_LINES,
|
||||
func='ex_clearjumps',
|
||||
},
|
||||
{
|
||||
command='cmap',
|
||||
flags=bit.bor(EXTRA, TRLBAR, NOTRLCOM, USECTRLV, CMDWIN),
|
||||
|
@@ -130,17 +130,17 @@ int setmark_pos(int c, pos_T *pos, int fnum)
|
||||
return OK;
|
||||
}
|
||||
|
||||
if (c > 'z') /* some islower() and isupper() cannot handle
|
||||
characters above 127 */
|
||||
return FAIL;
|
||||
if (islower(c)) {
|
||||
if (ASCII_ISLOWER(c)) {
|
||||
i = c - 'a';
|
||||
RESET_FMARK(curbuf->b_namedm + i, *pos, curbuf->b_fnum);
|
||||
return OK;
|
||||
}
|
||||
if (isupper(c)) {
|
||||
assert(c >= 'A' && c <= 'Z');
|
||||
i = c - 'A';
|
||||
if (ASCII_ISUPPER(c) || ascii_isdigit(c)) {
|
||||
if (ascii_isdigit(c)) {
|
||||
i = c - '0' + NMARKS;
|
||||
} else {
|
||||
i = c - 'A';
|
||||
}
|
||||
RESET_XFMARK(namedfm + i, *pos, fnum, NULL);
|
||||
return OK;
|
||||
}
|
||||
@@ -798,6 +798,13 @@ void ex_jumps(exarg_T *eap)
|
||||
MSG_PUTS("\n>");
|
||||
}
|
||||
|
||||
void ex_clearjumps(exarg_T *eap)
|
||||
{
|
||||
free_jumplist(curwin);
|
||||
curwin->w_jumplistlen = 0;
|
||||
curwin->w_jumplistidx = 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* print the changelist
|
||||
*/
|
||||
|
@@ -4424,8 +4424,8 @@ msgstr ""
|
||||
"перед записом: %s"
|
||||
|
||||
#, c-format
|
||||
msgid "E138: All %s.tmp.X files exist, cannot write ShaDa file!"
|
||||
msgstr "E138: Усі файли %s.tmp.X зайнято, неможливо записати файл ShaDa!"
|
||||
msgid "E929: All %s.tmp.X files exist, cannot write ShaDa file!"
|
||||
msgstr "E929: Усі файли %s.tmp.X зайнято, неможливо записати файл ShaDa!"
|
||||
|
||||
#, c-format
|
||||
msgid "System error while opening temporary ShaDa file %s for writing: %s"
|
||||
|
@@ -118,9 +118,10 @@ KHASH_SET_INIT_STR(strset)
|
||||
// E576: Missing '>'
|
||||
// E577: Illegal register name
|
||||
// E886: Can't rename viminfo file to %s!
|
||||
// E929: Too many viminfo temp files, like %s!
|
||||
// Now only six of them are used:
|
||||
// E137: ShaDa file is not writeable (for pre-open checks)
|
||||
// E138: All %s.tmp.X files exist, cannot write ShaDa file!
|
||||
// E929: All %s.tmp.X files exist, cannot write ShaDa file!
|
||||
// RCERR (E576) for critical read errors.
|
||||
// RNERR (E136) for various errors when renaming.
|
||||
// RERR (E575) for various errors inside read ShaDa file.
|
||||
|
@@ -515,7 +515,7 @@ static int included_patches[] = {
|
||||
1928,
|
||||
// 1927 NA
|
||||
// 1926 NA
|
||||
// 1925 NA
|
||||
1925,
|
||||
// 1924 NA
|
||||
1923,
|
||||
// 1922 NA
|
||||
|
Reference in New Issue
Block a user