Returns the 1-indexed line on which the pattern matches (going UP from the current position) or 0 if not found
( pattern )
| 1193 | |
| 1194 | |
| 1195 | def SearchInCurrentBuffer( pattern ): |
| 1196 | """ Returns the 1-indexed line on which the pattern matches |
| 1197 | (going UP from the current position) or 0 if not found """ |
| 1198 | return GetIntValue( f"search('{ EscapeForVim( pattern ) }', 'Wcnb')" ) |
| 1199 | |
| 1200 | |
| 1201 | def LineTextInCurrentBuffer( line_number ): |
no test coverage detected