Fix lints
This commit is contained in:
parent
154e727b96
commit
efc5c76866
2 changed files with 4 additions and 2 deletions
|
|
@ -12,6 +12,7 @@
|
||||||
" WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
" WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
" See the License for the specific language governing permissions and
|
" See the License for the specific language governing permissions and
|
||||||
" limitations under the License.
|
" limitations under the License.
|
||||||
|
scriptencoding utf-8
|
||||||
|
|
||||||
|
|
||||||
" Boilerplate {{{
|
" Boilerplate {{{
|
||||||
|
|
@ -36,7 +37,7 @@ let s:current_selection = 0
|
||||||
let s:selections = []
|
let s:selections = []
|
||||||
let s:text = []
|
let s:text = []
|
||||||
|
|
||||||
function! s:UpdatePopup( id )
|
function! s:UpdatePopup( id ) abort
|
||||||
let buf = copy( s:text )
|
let buf = copy( s:text )
|
||||||
call extend( buf, s:DrawButtons() )
|
call extend( buf, s:DrawButtons() )
|
||||||
call popup_settext( a:id, buf )
|
call popup_settext( a:id, buf )
|
||||||
|
|
@ -128,7 +129,7 @@ function! vimspector#internal#popup#Confirm(
|
||||||
return popup_dialog( buf, config )
|
return popup_dialog( buf, config )
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! vimspector#internal#popup#SetBorderChars( config )
|
function! vimspector#internal#popup#SetBorderChars( config ) abort
|
||||||
" When ambiwidth is single, use prettier characters for the border. This
|
" When ambiwidth is single, use prettier characters for the border. This
|
||||||
" would look silly when ambiwidth is double.
|
" would look silly when ambiwidth is double.
|
||||||
if &ambiwidth ==# 'single' && &encoding ==? 'utf-8'
|
if &ambiwidth ==# 'single' && &encoding ==? 'utf-8'
|
||||||
|
|
|
||||||
|
|
@ -378,6 +378,7 @@ def AskForInput( prompt, default_value = None, completion = None ):
|
||||||
CONFIRM = {}
|
CONFIRM = {}
|
||||||
CONFIRM_ID = 0
|
CONFIRM_ID = 0
|
||||||
|
|
||||||
|
|
||||||
def ConfirmCallback( confirm_id, result ):
|
def ConfirmCallback( confirm_id, result ):
|
||||||
try:
|
try:
|
||||||
handler = CONFIRM.pop( confirm_id )
|
handler = CONFIRM.pop( confirm_id )
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue