Mercurial > vim
view src/testdir/test80.ok @ 11488:9473793c7bb5 v8.0.0627
patch 8.0.0627: "gn" selects only one character with 'nowrapscan'
commit https://github.com/vim/vim/commit/add8dce38de65a0c64e8f54d6bdcadb45a8de2cf
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jun 5 19:56:04 2017 +0200
patch 8.0.0627: "gn" selects only one character with 'nowrapscan'
Problem: When 'wrapscan' is off "gn" does not select the whole pattern when
it's the last one in the text. (KeyboardFire)
Solution: Check if the search fails. (Christian Brabandt, closes #1683)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 05 Jun 2017 20:00:04 +0200 |
parents | a63d0cd691dc |
children |
line wrap: on
line source
Results of test72: TEST_1: AA & C123456789987654321 d ~ ~ Gg Hh iI jJ Kk l l m m n n o o pp q q r\r scs u u vv w\w x x YyyY zZZz TEST_2: AA & C123456789987654321 d ~ ~ Gg Hh iI jJ Kk l l m m n n o o pp q q r\r scs t t u u vv w\w XxxX yYYy TEST_3: a\a b\\b c c d\ d e\\ e f\rf j\nj k k l l TEST_4: a\a b\b c c d d e\ e f f j j k k l l TEST_5: A123456789987654321 [['A123456789'], ['9'], ['8'], ['7'], ['6'], ['5'], ['4'], ['3'], ['2'], ['1']] TEST_6: a % c % TEST_7: A A B B ['B ']B -abab c-cbcbc TEST_8: N,,NX N,,NY N,,NZ TEST_9: XXx TEST_10: a1a2a3a aaa 1a2a3a a1a2a3a a1a2a3 aaa aa2a3a 1aaa