|
Karsten Hopp |
73d4fa |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
73d4fa |
Subject: Patch 7.4.848
|
|
Karsten Hopp |
73d4fa |
Fcc: outbox
|
|
Karsten Hopp |
73d4fa |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
73d4fa |
Mime-Version: 1.0
|
|
Karsten Hopp |
73d4fa |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
73d4fa |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
73d4fa |
------------
|
|
Karsten Hopp |
73d4fa |
|
|
Karsten Hopp |
73d4fa |
Patch 7.4.848
|
|
Karsten Hopp |
73d4fa |
Problem: CTRL-A on hex number in Visual block mode is incorrect.
|
|
Karsten Hopp |
73d4fa |
Solution: Account for the "0x". (Hirohito Higashi)
|
|
Karsten Hopp |
73d4fa |
Files: src/charset.c, src/testdir/test_increment.in,
|
|
Karsten Hopp |
73d4fa |
src/testdir/test_increment.ok
|
|
Karsten Hopp |
73d4fa |
|
|
Karsten Hopp |
73d4fa |
|
|
Karsten Hopp |
73d4fa |
*** ../vim-7.4.847/src/charset.c 2015-07-17 13:03:42.092357617 +0200
|
|
Karsten Hopp |
73d4fa |
--- src/charset.c 2015-09-01 18:42:30.984009677 +0200
|
|
Karsten Hopp |
73d4fa |
***************
|
|
Karsten Hopp |
73d4fa |
*** 1909,1914 ****
|
|
Karsten Hopp |
73d4fa |
--- 1909,1916 ----
|
|
Karsten Hopp |
73d4fa |
else if (hex != 0 || dohex > 1)
|
|
Karsten Hopp |
73d4fa |
{
|
|
Karsten Hopp |
73d4fa |
/* hex */
|
|
Karsten Hopp |
73d4fa |
+ if (hex != 0)
|
|
Karsten Hopp |
73d4fa |
+ n += 2; /* skip over "0x" */
|
|
Karsten Hopp |
73d4fa |
while (vim_isxdigit(*ptr))
|
|
Karsten Hopp |
73d4fa |
{
|
|
Karsten Hopp |
73d4fa |
un = 16 * un + (unsigned long)hex2nr(*ptr);
|
|
Karsten Hopp |
73d4fa |
*** ../vim-7.4.847/src/testdir/test_increment.in 2015-08-11 19:36:37.050004181 +0200
|
|
Karsten Hopp |
73d4fa |
--- src/testdir/test_increment.in 2015-09-01 18:39:25.813940564 +0200
|
|
Karsten Hopp |
73d4fa |
***************
|
|
Karsten Hopp |
73d4fa |
*** 277,283 ****
|
|
Karsten Hopp |
73d4fa |
Expected:
|
|
Karsten Hopp |
73d4fa |
1) <Ctrl-a> and cursor is on a
|
|
Karsten Hopp |
73d4fa |
b
|
|
Karsten Hopp |
73d4fa |
!
|
|
Karsten Hopp |
73d4fa |
|
|
Karsten Hopp |
73d4fa |
|
|
Karsten Hopp |
73d4fa |
STARTTEST
|
|
Karsten Hopp |
73d4fa |
--- 277,291 ----
|
|
Karsten Hopp |
73d4fa |
Expected:
|
|
Karsten Hopp |
73d4fa |
1) <Ctrl-a> and cursor is on a
|
|
Karsten Hopp |
73d4fa |
b
|
|
Karsten Hopp |
73d4fa |
!
|
|
Karsten Hopp |
73d4fa |
! 21) block-wise increment on part of hexadecimal
|
|
Karsten Hopp |
73d4fa |
! Text:
|
|
Karsten Hopp |
73d4fa |
! 0x123456
|
|
Karsten Hopp |
73d4fa |
!
|
|
Karsten Hopp |
73d4fa |
! Expected:
|
|
Karsten Hopp |
73d4fa |
! 1) Ctrl-V f3 <ctrl-a>
|
|
Karsten Hopp |
73d4fa |
! 0x124456
|
|
Karsten Hopp |
73d4fa |
!
|
|
Karsten Hopp |
73d4fa |
|
|
Karsten Hopp |
73d4fa |
|
|
Karsten Hopp |
73d4fa |
STARTTEST
|
|
Karsten Hopp |
73d4fa |
***************
|
|
Karsten Hopp |
73d4fa |
*** 401,406 ****
|
|
Karsten Hopp |
73d4fa |
--- 409,420 ----
|
|
Karsten Hopp |
73d4fa |
?:.put =col('.')
|
|
Karsten Hopp |
73d4fa |
:set nrformats&vim
|
|
Karsten Hopp |
73d4fa |
|
|
Karsten Hopp |
73d4fa |
+ :" Test 21
|
|
Karsten Hopp |
73d4fa |
+ :/^S21=/+,/^E21=/-y a
|
|
Karsten Hopp |
73d4fa |
+ :/^E21=/+put a
|
|
Karsten Hopp |
73d4fa |
+ :set nrformats&vim
|
|
Karsten Hopp |
73d4fa |
+ ?f3?
|
|
Karsten Hopp |
73d4fa |
+
|
|
Karsten Hopp |
73d4fa |
:" Save the report
|
|
Karsten Hopp |
73d4fa |
:/^# Test 1/,$w! test.out
|
|
Karsten Hopp |
73d4fa |
:qa!
|
|
Karsten Hopp |
73d4fa |
***************
|
|
Karsten Hopp |
73d4fa |
*** 594,599 ****
|
|
Karsten Hopp |
73d4fa |
--- 608,620 ----
|
|
Karsten Hopp |
73d4fa |
|
|
Karsten Hopp |
73d4fa |
|
|
Karsten Hopp |
73d4fa |
|
|
Karsten Hopp |
73d4fa |
+ # Test 21
|
|
Karsten Hopp |
73d4fa |
+ S21====
|
|
Karsten Hopp |
73d4fa |
+ 0x123456
|
|
Karsten Hopp |
73d4fa |
+ E21====
|
|
Karsten Hopp |
73d4fa |
+
|
|
Karsten Hopp |
73d4fa |
+
|
|
Karsten Hopp |
73d4fa |
+
|
|
Karsten Hopp |
73d4fa |
|
|
Karsten Hopp |
73d4fa |
ENDTEST
|
|
Karsten Hopp |
73d4fa |
|
|
Karsten Hopp |
73d4fa |
*** ../vim-7.4.847/src/testdir/test_increment.ok 2015-08-11 19:36:37.050004181 +0200
|
|
Karsten Hopp |
73d4fa |
--- src/testdir/test_increment.ok 2015-09-01 18:39:25.813940564 +0200
|
|
Karsten Hopp |
73d4fa |
***************
|
|
Karsten Hopp |
73d4fa |
*** 280,285 ****
|
|
Karsten Hopp |
73d4fa |
--- 280,293 ----
|
|
Karsten Hopp |
73d4fa |
1
|
|
Karsten Hopp |
73d4fa |
|
|
Karsten Hopp |
73d4fa |
|
|
Karsten Hopp |
73d4fa |
+ # Test 21
|
|
Karsten Hopp |
73d4fa |
+ S21====
|
|
Karsten Hopp |
73d4fa |
+ 0x123456
|
|
Karsten Hopp |
73d4fa |
+ E21====
|
|
Karsten Hopp |
73d4fa |
+
|
|
Karsten Hopp |
73d4fa |
+ 0x124456
|
|
Karsten Hopp |
73d4fa |
+
|
|
Karsten Hopp |
73d4fa |
+
|
|
Karsten Hopp |
73d4fa |
|
|
Karsten Hopp |
73d4fa |
ENDTEST
|
|
Karsten Hopp |
73d4fa |
|
|
Karsten Hopp |
73d4fa |
*** ../vim-7.4.847/src/version.c 2015-09-01 18:27:45.117248852 +0200
|
|
Karsten Hopp |
73d4fa |
--- src/version.c 2015-09-01 18:38:56.586245357 +0200
|
|
Karsten Hopp |
73d4fa |
***************
|
|
Karsten Hopp |
73d4fa |
*** 743,744 ****
|
|
Karsten Hopp |
73d4fa |
--- 743,746 ----
|
|
Karsten Hopp |
73d4fa |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
73d4fa |
+ /**/
|
|
Karsten Hopp |
73d4fa |
+ 848,
|
|
Karsten Hopp |
73d4fa |
/**/
|
|
Karsten Hopp |
73d4fa |
|
|
Karsten Hopp |
73d4fa |
--
|
|
Karsten Hopp |
73d4fa |
An SQL statement walks into a bar. He approaches two tables
|
|
Karsten Hopp |
73d4fa |
and says, "Mind if I join you?"
|
|
Karsten Hopp |
73d4fa |
|
|
Karsten Hopp |
73d4fa |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
73d4fa |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
73d4fa |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
73d4fa |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|