Open the location list to the bottom of the current window with its height automatically set to fit all entries. This behavior can be overridden by using the YcmLocationOpened autocommand. When focus is set to True, the location list window becomes the active window. When autoclose is set to T
( focus = False, autoclose = False )
| 476 | |
| 477 | |
| 478 | def OpenLocationList( focus = False, autoclose = False ): |
| 479 | """Open the location list to the bottom of the current window with its |
| 480 | height automatically set to fit all entries. This behavior can be overridden |
| 481 | by using the YcmLocationOpened autocommand. When focus is set to True, the |
| 482 | location list window becomes the active window. When autoclose is set to True, |
| 483 | the location list window is automatically closed after an entry is |
| 484 | selected.""" |
| 485 | vim.command( 'lopen' ) |
| 486 | |
| 487 | SetFittingHeightForCurrentWindow() |
| 488 | |
| 489 | if autoclose: |
| 490 | AutoCloseOnCurrentBuffer( 'ycmlocation' ) |
| 491 | |
| 492 | if VariableExists( '#User#YcmLocationOpened' ): |
| 493 | vim.command( 'doautocmd User YcmLocationOpened' ) |
| 494 | |
| 495 | if not focus: |
| 496 | JumpToPreviousWindow() |
| 497 | |
| 498 | |
| 499 | def SetQuickFixList( quickfix_list ): |
nothing calls this directly
no test coverage detected