Permalink
Browse files

Fixed writing a String consisting of a single multi-byte character.

  • Loading branch information...
1 parent 6342cac commit 3463b32f1d4f2a65e7ff3c1902cdd9c490c4c5a3 megaannum committed Sep 26, 2012
Showing with 7 additions and 4 deletions.
  1. +4 −3 autoload/forms.vim
  2. +3 −1 doc/forms.txt
View
@@ -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.
"
@@ -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)
View
@@ -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
@@ -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.

0 comments on commit 3463b32

Please sign in to comment.