mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-02 21:10:05 +08:00
Change: DefxSmartL() cancel action, ipynb.vim file head (#2780)
This commit is contained in:
parent
348d51d300
commit
9a4c72f1b6
@ -1,5 +1,5 @@
|
||||
"=============================================================================
|
||||
" ipynb.vim --- lang#ipynb layer for SpaceVim
|
||||
" ipynb.vim --- SpaceVim lang#ipynb layer
|
||||
" Copyright (c) 2016-2017 Wang Shidong & Contributors
|
||||
" Author: Wang Shidong < wsdjeg at 163.com >
|
||||
" URL: https://spacevim.org
|
||||
|
@ -145,15 +145,8 @@ function! DefxSmartL(_)
|
||||
if exists(':ChooseWin') == 2
|
||||
ChooseWin
|
||||
else
|
||||
if has('nvim')
|
||||
let input = input({
|
||||
\ 'prompt' : 'ChooseWin No.: ',
|
||||
\ 'cancelreturn': 0,
|
||||
\ })
|
||||
if input == 0 | return | endif
|
||||
else
|
||||
let input = input('ChooseWin No.: ')
|
||||
endif
|
||||
let input = input('ChooseWin No./Cancel(n): ')
|
||||
if input ==# 'n' | return | endif
|
||||
if input == winnr() | return | endif
|
||||
exec input . 'wincmd w'
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user