Skip to content

Commit

Permalink
Fixed writing a String consisting of a single multi-byte character.
Browse files Browse the repository at this point in the history
  • Loading branch information
megaannum committed Sep 26, 2012
1 parent 6342cac commit 3463b32
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 4 additions & 3 deletions autoload/forms.vim
Expand Up @@ -5,8 +5,8 @@
" File: forms.vim
" Summary: Vim Form Library
" Author: Richard Emberson <richard.n.embersonATgmailDOTcom>
" Last Modified: 09/25/2012
" Version: 1.11
" Last Modified: 09/30/2012
" Version: 1.12
" Modifications:
" 1.0 : initial public release.
"
Expand Down Expand Up @@ -15694,8 +15694,9 @@ endfunction
function! forms#SetStringAt(str, line, column)
let s = a:str
let slen = strchars(s)
" call forms#logforce("forms#SetStringAt: slen=".slen)
if slen == 1
call forms#SetCharAt(s[0], a:line, a:column)
call forms#SetCharAt(s, a:line, a:column)

elseif slen > 1
let slen2 = strlen(s)
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 July 19

Author: Richard Emberson
Version: 1.11
Version: 1.12
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.12 - Fix: ~
Fixed writing a String consisting of a single multi-byte char.
1.11 - Fix: ~
Added guard to make sure popdown list's select list has select list
prior to accessing it.
Expand Down

0 comments on commit 3463b32

Please sign in to comment.