comparison src/testdir/test_increment.in @ 7011:6cde6404ff7c v7.4.823

patch 7.4.823 Problem: Cursor moves after CTRL-A on alphabetic character. Solution: (Hirohito Higashi, test by Christian Brabandt)
author Bram Moolenaar <bram@vim.org>
date Tue, 11 Aug 2015 19:36:42 +0200
parents b10995a2f7c3
children 05afb5be93bd
comparison
equal deleted inserted replaced
7010:f28fa3fc6821 7011:6cde6404ff7c
266 1a 266 1a
267 267
268 Expected: 268 Expected:
269 1) <Ctrl-V>j$ <ctrl-a> 269 1) <Ctrl-V>j$ <ctrl-a>
270 2 270 2
271 1b 271 2a
272
273 20) increment a single letter
274 Text:
275 a
276
277 Expected:
278 1) <Ctrl-a> and cursor is on a
279 b
272 280
273 281
274 282
275 STARTTEST 283 STARTTEST
276 :so small.vim 284 :so small.vim
384 :/^S19=/+,/^E19=/-y a 392 :/^S19=/+,/^E19=/-y a
385 :/^E19=/+put a 393 :/^E19=/+put a
386 k$ 394 k$
387 :set nrformats&vim 395 :set nrformats&vim
388 396
397 :" Test 20
398 :set nrformats+=alpha
399 :/^S20=/+,/^E20=/-y a
400 :/^E20=/+put a
401 :.put =col('.')
402 :set nrformats&vim
403
389 :" Save the report 404 :" Save the report
390 :/^# Test 1/,$w! test.out 405 :/^# Test 1/,$w! test.out
391 :qa! 406 :qa!
392 407
393 408
570 1a 585 1a
571 E19==== 586 E19====
572 587
573 588
574 589
590 # Test 20
591 S20====
592 a
593 E20====
594
595
596
575 597
576 ENDTEST 598 ENDTEST
577 599