Assume a C source file with the following contents:
1 int main()
2 {
3 printf("This is main().\n");
4 return 0;
5 }
Position the cursor at the closing brace in line 5, perform:
echo searchpair('{', '', '}', 'cn')
echo searchpairpos('{', '', '}', 'cn')
Output (as expected):
5,
[5, 1]
For the following commands I would expect the same result:
echo searchpair('{', '', '}', 'bcn')
echo searchpairpos('{', '', '}', 'bcn')
but I get:
0
[0, 0]
Is this a bug or is there a good explanation of such an inconsistency
in these behaviours?
--
Cheers,
Lech
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---