Skip to content

Commit c9ec4f7

Browse files
Charles Campbellvim-scripts
Charles Campbell
authored andcommitted
Version 9: Bugfix: Johann-Guenter Simon fixed a bug with s:DrawErase()
1 parent ac9fa9a commit c9ec4f7

File tree

3 files changed

+29
-9
lines changed

3 files changed

+29
-9
lines changed

autoload/DrawIt.vim

+6-5
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
" Maintainer: Charles E. Campbell, Jr. ([email protected])
44
" Authors: Charles E. Campbell, Jr. ([email protected] - NOSPAM)
55
" Sylvain Viart ([email protected])
6-
" Version: 8
7-
" Date: Jul 26, 2007
6+
" Version: 9
7+
" Date: Oct 10, 2007
88
"
99
" Quick Setup: {{{1
1010
" tar -oxvf DrawIt.tar
@@ -49,7 +49,7 @@ set cpo&vim
4949
if !exists("s:saveposn_count")
5050
let s:saveposn_count= 0
5151
endif
52-
let g:loaded_DrawIt= "v8"
52+
let g:loaded_DrawIt= "v9"
5353
"DechoTabOn
5454

5555
" =====================================================================
@@ -569,11 +569,12 @@ fun! s:DrawErase()
569569
let b:di_upright_save = b:di_upright
570570
let b:di_upleft_save = b:di_upleft
571571
let b:di_cross_save = b:di_cross
572-
call SetDrawIt(' ',' ',' ',' ',' ',' ')
572+
let b:di_ellipse_save = b:di_ellipse
573+
call SetDrawIt(' ',' ',' ',' ',' ',' ',' ')
573574
else
574575
let b:di_erase= 0
575576
echo "[DrawIt]"
576-
call SetDrawIt(b:di_vert_save,b:di_horiz_save,b:di_plus_save,b:di_upleft_save,b:di_upright_save,b:di_cross_save)
577+
call SetDrawIt(b:di_vert_save,b:di_horiz_save,b:di_plus_save,b:di_upleft_save,b:di_upright_save,b:di_cross_save,b:di_ellipse_save)
577578
endif
578579
" call Dret("s:DrawErase")
579580
endfun

doc/DrawIt.txt

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*drawit.txt* The DrawIt Tool Jul 26, 2007
1+
*drawit.txt* The DrawIt Tool Sep 14, 2007
22

33
Authors: Charles E. Campbell, Jr. <[email protected]> {{{1
44
Sylvain Viart <[email protected]>
@@ -353,6 +353,10 @@ DRAWIT MODES *drawit-modes* {{{2
353353
==============================================================================
354354
4. History *drawit-history* {{{1
355355

356+
9 Sep 14, 2007 * Johann-Guenter Simon fixed a bug with s:DrawErase();
357+
it called SetDrawIt() and that call hadn't been
358+
updated to account for the new b:di_ellipse
359+
parameter.
356360
8 Feb 12, 2007 * fixed a bug which prevented multi-character user
357361
maps from being restored properly
358362
May 03, 2007 * Extended SetDrawIt() to handle b:di_ellipse, the

plugin/cecutil.vim

+18-3
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
" save/restore mark position
33
" save/restore selected user maps
44
" Author: Charles E. Campbell, Jr.
5-
" Version: 16
6-
" Date: Feb 12, 2007
5+
" Version: 17
6+
" Date: Sep 04, 2007
77
"
88
" Saving Restoring Destroying Marks: {{{1
99
" call SaveMark(markname) let savemark= SaveMark(markname)
@@ -32,7 +32,7 @@
3232
if &cp || exists("g:loaded_cecutil")
3333
finish
3434
endif
35-
let g:loaded_cecutil = "v16"
35+
let g:loaded_cecutil = "v17"
3636
let s:keepcpo = &cpo
3737
set cpo&vim
3838
"DechoVarOn
@@ -328,6 +328,21 @@ fun! DestroyMark(markname)
328328
" call Dret("DestroyMark")
329329
endfun
330330

331+
" ---------------------------------------------------------------------
332+
" QArgSplitter: to avoid \ processing by <f-args>, <q-args> is needed. {{{1
333+
" However, <q-args> doesn't split at all, so this one returns a list
334+
" with splits at all whitespace (only!), plus a leading length-of-list.
335+
" The resulting list: qarglist[0] corresponds to a:0
336+
" qarglist[i] corresponds to a:{i}
337+
fun! QArgSplitter(qarg)
338+
" call Dfunc("QArgSplitter(qarg<".a:qarg.">)")
339+
let qarglist = split(a:qarg)
340+
let qarglistlen = len(qarglist)
341+
let qarglist = insert(qarglist,qarglistlen)
342+
" call Dret("QArgSplitter ".string(qarglist))
343+
return qarglist
344+
endfun
345+
331346
" ---------------------------------------------------------------------
332347
" ListWinPosn:
333348
"fun! ListWinPosn() " Decho

0 commit comments

Comments
 (0)