Skip to content

Commit 57495ea

Browse files
bi dongliangvim-scripts
authored andcommitted
Version 1.03: Updated some messages to help using more easy.
1 parent 125839b commit 57495ea

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎plugin/refactor.vim‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,10 @@ function! ReorderParameters()
125125
return
126126
endif
127127
if len(parameterList) > 0
128+
if len(parameterList) > 10
129+
call confirm('Parameter count should less than 10!')
130+
return
131+
endif
128132
let text = "Parameters of current function are:"
129133
let start = 0
130134
while start < len(parameterList)
@@ -136,6 +140,10 @@ function! ReorderParameters()
136140
while processed == 0
137141
let order = inputdialog(text)
138142
if order != ""
143+
if order =~ '\D'
144+
call confirm('Just input the indexes without seperator, please!')
145+
continue
146+
endif
139147
let processed = 1
140148
let index = 0
141149
while index < len(parameterList)

0 commit comments

Comments
 (0)