erik wrote the following on 11.11.2011 21:49

Hello,

-- <snip> --
> Thanks for pointing that one out again. I have applied your patch
> 
> Erik.

It would also be nice if the script would either 'unlet' the variables again, or
limit their scope ':h internal-variables'. See attached patch as example.

It also fixes a comment.

-- 
Regards,
Thilo

4096R/0xC70B1A8F
721B 1BA0 095C 1ABA 3FC6  7C18 89A4 A2A0 C70B 1A8F

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
--- awk.vim.orig	2011-11-12 14:14:10.000000000 +0000
+++ awk.vim	2011-11-12 14:09:16.000000000 +0000
@@ -177,11 +177,11 @@
 " At which line is the open brace for the close brace on the current line
 
 function! s:Get_line_of_matching_brace()
-   let c = col('.')
-   let r = v:lnum
-   cursor(0,1)
+   let l:c = col('.')
+   let l:r = v:lnum
+   call cursor(0,1)
    let the_r = searchpair('{','','}','nbW')
-   cursor(r,c)
+   call cursor(l:r, l:c)
    " if the_r == -1
    "    echomsg 'Searchpair didn't find open brace'
    " endif
@@ -254,7 +254,7 @@
    return substitute( data, '#.*$', '', 'g')
 endfunction
 
-" Get previous relevant line. Search back until a line is that is no
+" Get previous relevant line. Search back until a line that is no
 " comment or blank and return the line number
 
 function! s:Get_prev_line( lineno )

Raspunde prin e-mail lui