comparison src/testdir/test_increment.in @ 7072:05afb5be93bd v7.4.848

commit https://github.com/vim/vim/commit/5adfea1ac63e252556bccce54e92e8e10b58f592 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Sep 1 18:51:39 2015 +0200 patch 7.4.848 Problem: CTRL-A on hex number in Visual block mode is incorrect. Solution: Account for the "0x". (Hirohito Higashi)
author Christian Brabandt <cb@256bit.org>
date Tue, 01 Sep 2015 19:00:04 +0200
parents 6cde6404ff7c
children ad432f8f68fb
comparison
equal deleted inserted replaced
7071:9d559fd7c415 7072:05afb5be93bd
275 a 275 a
276 276
277 Expected: 277 Expected:
278 1) <Ctrl-a> and cursor is on a 278 1) <Ctrl-a> and cursor is on a
279 b 279 b
280 280
281 21) block-wise increment on part of hexadecimal
282 Text:
283 0x123456
284
285 Expected:
286 1) Ctrl-V f3 <ctrl-a>
287 0x124456
288
281 289
282 290
283 STARTTEST 291 STARTTEST
284 :so small.vim 292 :so small.vim
285 :" 293 :"
399 :/^S20=/+,/^E20=/-y a 407 :/^S20=/+,/^E20=/-y a
400 :/^E20=/+put a 408 :/^E20=/+put a
401 :.put =col('.') 409 :.put =col('.')
402 :set nrformats&vim 410 :set nrformats&vim
403 411
412 :" Test 21
413 :/^S21=/+,/^E21=/-y a
414 :/^E21=/+put a
415 :set nrformats&vim
416 f3
417
404 :" Save the report 418 :" Save the report
405 :/^# Test 1/,$w! test.out 419 :/^# Test 1/,$w! test.out
406 :qa! 420 :qa!
407 421
408 422
592 a 606 a
593 E20==== 607 E20====
594 608
595 609
596 610
611 # Test 21
612 S21====
613 0x123456
614 E21====
615
616
617
597 618
598 ENDTEST 619 ENDTEST
599 620