Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added guard to make sure popdown list's select list has select list p…

…rior to accessing it.
  • Loading branch information...
commit 6342caccf93a57c19d2c5d9d8282c4190e560911 1 parent 78e0545
megaannum authored
Showing with 12 additions and 7 deletions.
  1. +8 −6 autoload/forms.vim
  2. +4 −1 doc/forms.txt
View
14 autoload/forms.vim
@@ -5,8 +5,8 @@
" File: forms.vim
" Summary: Vim Form Library
" Author: Richard Emberson <richard.n.embersonATgmailDOTcom>
-" Last Modified: 08/30/2012
-" Version: 1.10
+" Last Modified: 09/25/2012
+" Version: 1.11
" Modifications:
" 1.0 : initial public release.
"
@@ -5943,10 +5943,12 @@ function! forms#loadPopDownListPrototype()
let slist.__pos = pos
call slist.adjustWinStart()
- let [idx, sid] = slist.__selections[0]
- if idx != pos
- call ClearSelectionId(sid)
- let slist.__selections = [[pos, -1]]
+ if ! empty(slist.__selections)
+ let [idx, sid] = slist.__selections[0]
+ if idx != pos
+ call ClearSelectionId(sid)
+ let slist.__selections = [[pos, -1]]
+ endif
endif
call self.__on_selection_action.execute(pos)
View
5 doc/forms.txt
@@ -1,7 +1,7 @@
*forms.txt* For Vim version 7.3 Last change: 2012 July 19
Author: Richard Emberson
-Version: 1.10
+Version: 1.11
Title: Forms Library
Homepage: TODO
@@ -1058,6 +1058,9 @@ and popup menus. The code is located in 'autoload/forms/menu.vim'.
==============================================================================
12. Release notes *forms-release-notes*
+1.11 - Fix: ~
+ Added guard to make sure popdown list's select list has select list
+ prior to accessing it.
1.10 - Fix: ~
Changed highlight group names from *Hi to *FORMS_HL
1.9 - Fix: ~
Please sign in to comment.
Something went wrong with that request. Please try again.