Hi Elimar!

On Sa, 30 Aug 2014, Elimar Riesebieter wrote:

> Trying to build a tiny version gives me:
> 
> normal.c: In function 'nv_screengo':
> normal.c:4521:36: error: 'p_sbr' undeclared (first use in this function)
>   if (virtcol > (colnr_T)width1 && *p_sbr != NUL)
>                                     ^
> normal.c:4521:36: note: each undeclared identifier is reported only once for 
> each function it appears in
> Makefile:2693: recipe for target 'objects/normal.o' failed
> make[1]: *** [objects/normal.o] Error 1

This should fix it:

diff --git a/src/normal.c b/src/normal.c
--- a/src/normal.c
+++ b/src/normal.c
@@ -4518,8 +4518,10 @@ nv_screengo(oap, dir, dist)
         */
        validate_virtcol();
        virtcol = curwin->w_virtcol;
+#ifdef FEAT_LINEBREAK
        if (virtcol > (colnr_T)width1 && *p_sbr != NUL)
            virtcol -= vim_strsize(p_sbr);
+#endif
 
        if (virtcol > curwin->w_curswant
                && (curwin->w_curswant < (colnr_T)width1


Best,
Christian
-- 
Das Entscheidende bei Autoren und Fürsten ist weder die Kenntnis der
Menschen noch die des Menschen, noch weniger die des einzelnen,
sondern die Vereinigung davon.
                -- Jean Paul

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui