mirror of
git://slackware.nl/current.git
synced 2025-02-15 08:50:09 +01:00
![Patrick J Volkerding](/assets/img/avatar_default.png)
Mon Apr 25 13:37:00 UTC 2011 Slackware 13.37 x86_64 stable is released! Thanks to everyone who pitched in on this release: the Slackware team, the folks producing upstream code, and linuxquestions.org for providing a great forum for collaboration and testing. The ISOs are off to be replicated, a 6 CD-ROM 32-bit set and a dual-sided 32-bit/64-bit x86/x86_64 DVD. Please consider supporting the Slackware project by picking up a copy from store.slackware.com. We're taking pre-orders now, and offer a discount if you sign up for a subscription. As always, thanks to the Slackware community for testing, suggestions, and feedback. :-) Have fun!
87 lines
2.4 KiB
Text
87 lines
2.4 KiB
Text
To: vim-dev@vim.org
|
|
Subject: Patch 7.3.014
|
|
Fcc: outbox
|
|
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Mime-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
------------
|
|
|
|
Patch 7.3.014
|
|
Problem: Ending a line in a backslash inside an ":append" or ":insert"
|
|
command in Ex mode doesn't work properly. (Ray Frush)
|
|
Solution: Halve the number of backslashes, only insert a NUL after an odd
|
|
number of backslashes.
|
|
Files: src/ex_getln.c
|
|
|
|
|
|
*** ../vim-7.3.013/src/ex_getln.c 2010-09-21 16:56:29.000000000 +0200
|
|
--- src/ex_getln.c 2010-09-29 15:47:56.000000000 +0200
|
|
***************
|
|
*** 2342,2356 ****
|
|
windgoto(msg_row, msg_col);
|
|
pend = (char_u *)(line_ga.ga_data) + line_ga.ga_len;
|
|
|
|
! /* we are done when a NL is entered, but not when it comes after a
|
|
! * backslash */
|
|
! if (line_ga.ga_len > 0 && pend[-1] == '\n'
|
|
! && (line_ga.ga_len <= 1 || pend[-2] != '\\'))
|
|
! {
|
|
! --line_ga.ga_len;
|
|
! --pend;
|
|
! *pend = NUL;
|
|
! break;
|
|
}
|
|
}
|
|
|
|
--- 2342,2372 ----
|
|
windgoto(msg_row, msg_col);
|
|
pend = (char_u *)(line_ga.ga_data) + line_ga.ga_len;
|
|
|
|
! /* We are done when a NL is entered, but not when it comes after an
|
|
! * odd number of backslashes, that results in a NUL. */
|
|
! if (line_ga.ga_len > 0 && pend[-1] == '\n')
|
|
! {
|
|
! int bcount = 0;
|
|
!
|
|
! while (line_ga.ga_len - 2 >= bcount && pend[-2 - bcount] == '\\')
|
|
! ++bcount;
|
|
!
|
|
! if (bcount > 0)
|
|
! {
|
|
! /* Halve the number of backslashes: "\NL" -> "NUL", "\\NL" ->
|
|
! * "\NL", etc. */
|
|
! line_ga.ga_len -= (bcount + 1) / 2;
|
|
! pend -= (bcount + 1) / 2;
|
|
! pend[-1] = '\n';
|
|
! }
|
|
!
|
|
! if ((bcount & 1) == 0)
|
|
! {
|
|
! --line_ga.ga_len;
|
|
! --pend;
|
|
! *pend = NUL;
|
|
! break;
|
|
! }
|
|
}
|
|
}
|
|
|
|
*** ../vim-7.3.013/src/version.c 2010-09-29 13:02:48.000000000 +0200
|
|
--- src/version.c 2010-09-29 15:45:57.000000000 +0200
|
|
***************
|
|
*** 716,717 ****
|
|
--- 716,719 ----
|
|
{ /* Add new patch number below this line */
|
|
+ /**/
|
|
+ 14,
|
|
/**/
|
|
|
|
--
|
|
hundred-and-one symptoms of being an internet addict:
|
|
224. You set up your own Web page. You set up a Web page for each
|
|
of your kids... and your pets.
|
|
|
|
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|