To: vim_dev@googlegroups.com Subject: Patch 7.4.1982 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 7.4.1982 Problem: Viminfo file contains duplicate change marks. Solution: Drop duplicate marks. Files: src/mark.c *** ../vim-7.4.1981/src/mark.c 2016-06-17 22:38:41.404177210 +0200 --- src/mark.c 2016-07-02 19:11:10.040689968 +0200 *************** *** 1859,1865 **** #ifdef FEAT_JUMPLIST /* changelist positions are stored oldest first */ for (i = 0; i < buf->b_changelistlen; ++i) ! write_one_mark(fp_out, '+', &buf->b_changelist[i]); #endif for (i = 0; i < NMARKS; i++) write_one_mark(fp_out, 'a' + i, &buf->b_namedm[i]); --- 1859,1870 ---- #ifdef FEAT_JUMPLIST /* changelist positions are stored oldest first */ for (i = 0; i < buf->b_changelistlen; ++i) ! { ! /* skip duplicates */ ! if (i == 0 || !equalpos(buf->b_changelist[i - 1], ! buf->b_changelist[i])) ! write_one_mark(fp_out, '+', &buf->b_changelist[i]); ! } #endif for (i = 0; i < NMARKS; i++) write_one_mark(fp_out, 'a' + i, &buf->b_namedm[i]); *** ../vim-7.4.1981/src/version.c 2016-07-02 18:25:15.724879148 +0200 --- src/version.c 2016-07-02 19:19:21.273451072 +0200 *************** *** 760,761 **** --- 760,763 ---- { /* Add new patch number below this line */ + /**/ + 1982, /**/ -- hundred-and-one symptoms of being an internet addict: 182. You may not know what is happening in the world, but you know every bit of net-gossip there is. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///