1 parent 125839b commit 57495eaCopy full SHA for 57495ea
1 file changed
plugin/refactor.vim
@@ -125,6 +125,10 @@ function! ReorderParameters()
125
return
126
endif
127
if len(parameterList) > 0
128
+ if len(parameterList) > 10
129
+ call confirm('Parameter count should less than 10!')
130
+ return
131
+ endif
132
let text = "Parameters of current function are:"
133
let start = 0
134
while start < len(parameterList)
@@ -136,6 +140,10 @@ function! ReorderParameters()
136
140
while processed == 0
137
141
let order = inputdialog(text)
138
142
if order != ""
143
+ if order =~ '\D'
144
+ call confirm('Just input the indexes without seperator, please!')
145
+ continue
146
139
147
let processed = 1
148
let index = 0
149
while index < len(parameterList)
0 commit comments