Mercurial > vim
comparison src/ex_getln.c @ 5467:6367a766027d v7.4.083
updated for version 7.4.083
Problem: It's hard to avoid adding a used pattern to the search history.
Solution: Add the ":keeppatterns" modifier. (Christian Brabandt)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Sat, 09 Nov 2013 05:30:26 +0100 |
parents | 878ed73c7070 |
children | 31217cc48e7d |
comparison
equal
deleted
inserted
replaced
5466:d060c429b21f | 5467:6367a766027d |
---|---|
5496 int len; | 5496 int len; |
5497 | 5497 |
5498 if (hislen == 0) /* no history */ | 5498 if (hislen == 0) /* no history */ |
5499 return; | 5499 return; |
5500 | 5500 |
5501 if (cmdmod.keeppatterns && histype == HIST_SEARCH) | |
5502 return; | |
5503 | |
5501 /* | 5504 /* |
5502 * Searches inside the same mapping overwrite each other, so that only | 5505 * Searches inside the same mapping overwrite each other, so that only |
5503 * the last line is kept. Be careful not to remove a line that was moved | 5506 * the last line is kept. Be careful not to remove a line that was moved |
5504 * down, only lines that were added. | 5507 * down, only lines that were added. |
5505 */ | 5508 */ |