# HG changeset patch # User Vincent Driessen # Date 1338846751 -7200 # Node ID 600054f4399156fcfa901dcfceacdc5a9ec9d6a1 # Parent fbdd1072a913b0706e60c6d5b46a617345e1e294 No script-local scope for NextNonBlankLine(). The example does not work when used literally, since the NextNonBlankLine() function is defined to be script-local, but is not invoked as such (i.e. using the prefix). As this is left to the reader as an exercise anyway, it should better be removed here. diff -r fbdd1072a913 -r 600054f43991 chapters/49.markdown --- a/chapters/49.markdown Mon Jun 04 22:52:33 2012 +0200 +++ b/chapters/49.markdown Mon Jun 04 23:52:31 2012 +0200 @@ -330,7 +330,7 @@ a given line. Add the following function above `IndentLevel`: :::vim - function! s:NextNonBlankLine(lnum) + function! NextNonBlankLine(lnum) let numlines = line('$') let current = a:lnum + 1