1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 03:00:04 +08:00

Change: DefxSmartL() cancel action, ipynb.vim file head (#2780)

This commit is contained in:
AlanDing 2019-05-04 07:25:52 +08:00 committed by Wang Shidong
parent 348d51d300
commit 9a4c72f1b6
2 changed files with 3 additions and 10 deletions

View File

@ -1,5 +1,5 @@
"============================================================================= "=============================================================================
" ipynb.vim --- lang#ipynb layer for SpaceVim " ipynb.vim --- SpaceVim lang#ipynb layer
" Copyright (c) 2016-2017 Wang Shidong & Contributors " Copyright (c) 2016-2017 Wang Shidong & Contributors
" Author: Wang Shidong < wsdjeg at 163.com > " Author: Wang Shidong < wsdjeg at 163.com >
" URL: https://spacevim.org " URL: https://spacevim.org

View File

@ -145,15 +145,8 @@ function! DefxSmartL(_)
if exists(':ChooseWin') == 2 if exists(':ChooseWin') == 2
ChooseWin ChooseWin
else else
if has('nvim') let input = input('ChooseWin No./Cancel(n): ')
let input = input({ if input ==# 'n' | return | endif
\ 'prompt' : 'ChooseWin No.: ',
\ 'cancelreturn': 0,
\ })
if input == 0 | return | endif
else
let input = input('ChooseWin No.: ')
endif
if input == winnr() | return | endif if input == winnr() | return | endif
exec input . 'wincmd w' exec input . 'wincmd w'
endif endif