Skip to content

Commit

Permalink
Form Command event not executing properly
Browse files Browse the repository at this point in the history
  • Loading branch information
megaannum committed Oct 28, 2012
1 parent 663261f commit 01add28
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
11 changes: 8 additions & 3 deletions autoload/forms.vim
Expand Up @@ -6,7 +6,7 @@
" Summary: Vim Form Library
" Author: Richard Emberson <richard.n.embersonATgmailDOTcom>
" Last Modified: 2012
" Version: 1.16
" Version: 1.17
" Modifications:
" 1.0 : initial public release.
"
Expand Down Expand Up @@ -64,7 +64,7 @@ let s:keepcpo = &cpo
set cpo&vim

function! forms#version()
return '1.16'
return '1.17'
endfunction

" ++++++++++++++++++++++++++++++++++++++++++++
Expand Down Expand Up @@ -9941,8 +9941,13 @@ endif
elseif rval.type == 'ReSize'
let run_viewer = g:self#IS_TRUE
elseif rval.type == 'Command'
if forms#ViewerStackDepth() > 1
if forms#ViewerStackDepth() > 0
let event = {
\ 'type': 'Command',
\ 'command': rval.command
\ }
call self.unGetChar(event)
break
else
let command = rval.command
endif
Expand Down
4 changes: 3 additions & 1 deletion doc/forms.txt
@@ -1,7 +1,7 @@
*forms.txt* For Vim version 7.3 Last change: 2012 Oct 9

Author: Richard Emberson
Version: 1.16
Version: 1.17
Title: Forms Library
Homepage: TODO

Expand Down Expand Up @@ -1058,6 +1058,8 @@ and popup menus. The code is located in 'autoload/forms/menu.vim'.
==============================================================================
12. Release notes *forms-release-notes*
1.17 - Fix: ~
Form Command event not executing properly.
1.16 - Fix: ~
Made all character varibles globals rather than per-buffer.
1.15 - Fix: ~
Expand Down

0 comments on commit 01add28

Please sign in to comment.