|
Karsten Hopp |
34a375 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
34a375 |
Subject: Patch 7.3.400
|
|
Karsten Hopp |
34a375 |
Fcc: outbox
|
|
Karsten Hopp |
34a375 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
34a375 |
Mime-Version: 1.0
|
|
Karsten Hopp |
34a375 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
34a375 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
34a375 |
------------
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
Patch 7.3.400
|
|
Karsten Hopp |
34a375 |
Problem: Compiler warnings for shadowed variables.
|
|
Karsten Hopp |
34a375 |
Solution: Remove or rename the variables.
|
|
Karsten Hopp |
34a375 |
Files: src/charset.c, src/digraph.c, src/edit.c, src/eval.c, src/fold.c,
|
|
Karsten Hopp |
34a375 |
src/getchar.c, src/message.c, src/misc2.c, src/move.c,
|
|
Karsten Hopp |
34a375 |
src/netbeans.c, src/option.c, src/os_unix.c, src/screen.c,
|
|
Karsten Hopp |
34a375 |
src/search.c, src/spell.c, src/syntax.c, src/tag.c, src/window.c
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
*** ../vim-7.3.399/src/charset.c 2010-08-15 21:57:25.000000000 +0200
|
|
Karsten Hopp |
34a375 |
--- src/charset.c 2012-01-10 21:55:50.000000000 +0100
|
|
Karsten Hopp |
34a375 |
***************
|
|
Karsten Hopp |
34a375 |
*** 463,503 ****
|
|
Karsten Hopp |
34a375 |
if (enc_utf8)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
int c = utf_ptr2char(STR_PTR(i));
|
|
Karsten Hopp |
34a375 |
! int ol = utf_ptr2len(STR_PTR(i));
|
|
Karsten Hopp |
34a375 |
int lc = utf_tolower(c);
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
/* Only replace the character when it is not an invalid
|
|
Karsten Hopp |
34a375 |
* sequence (ASCII character or more than one byte) and
|
|
Karsten Hopp |
34a375 |
* utf_tolower() doesn't return the original character. */
|
|
Karsten Hopp |
34a375 |
! if ((c < 0x80 || ol > 1) && c != lc)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
! int nl = utf_char2len(lc);
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
/* If the byte length changes need to shift the following
|
|
Karsten Hopp |
34a375 |
* characters forward or backward. */
|
|
Karsten Hopp |
34a375 |
! if (ol != nl)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
! if (nl > ol)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
! if (buf == NULL ? ga_grow(&ga, nl - ol + 1) == FAIL
|
|
Karsten Hopp |
34a375 |
! : len + nl - ol >= buflen)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
/* out of memory, keep old char */
|
|
Karsten Hopp |
34a375 |
lc = c;
|
|
Karsten Hopp |
34a375 |
! nl = ol;
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
! if (ol != nl)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
if (buf == NULL)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
! STRMOVE(GA_PTR(i) + nl, GA_PTR(i) + ol);
|
|
Karsten Hopp |
34a375 |
! ga.ga_len += nl - ol;
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
else
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
! STRMOVE(buf + i + nl, buf + i + ol);
|
|
Karsten Hopp |
34a375 |
! len += nl - ol;
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
--- 463,504 ----
|
|
Karsten Hopp |
34a375 |
if (enc_utf8)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
int c = utf_ptr2char(STR_PTR(i));
|
|
Karsten Hopp |
34a375 |
! int olen = utf_ptr2len(STR_PTR(i));
|
|
Karsten Hopp |
34a375 |
int lc = utf_tolower(c);
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
/* Only replace the character when it is not an invalid
|
|
Karsten Hopp |
34a375 |
* sequence (ASCII character or more than one byte) and
|
|
Karsten Hopp |
34a375 |
* utf_tolower() doesn't return the original character. */
|
|
Karsten Hopp |
34a375 |
! if ((c < 0x80 || olen > 1) && c != lc)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
! int nlen = utf_char2len(lc);
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
/* If the byte length changes need to shift the following
|
|
Karsten Hopp |
34a375 |
* characters forward or backward. */
|
|
Karsten Hopp |
34a375 |
! if (olen != nlen)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
! if (nlen > olen)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
! if (buf == NULL
|
|
Karsten Hopp |
34a375 |
! ? ga_grow(&ga, nlen - olen + 1) == FAIL
|
|
Karsten Hopp |
34a375 |
! : len + nlen - olen >= buflen)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
/* out of memory, keep old char */
|
|
Karsten Hopp |
34a375 |
lc = c;
|
|
Karsten Hopp |
34a375 |
! nlen = olen;
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
! if (olen != nlen)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
if (buf == NULL)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
! STRMOVE(GA_PTR(i) + nlen, GA_PTR(i) + olen);
|
|
Karsten Hopp |
34a375 |
! ga.ga_len += nlen - olen;
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
else
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
! STRMOVE(buf + i + nlen, buf + i + olen);
|
|
Karsten Hopp |
34a375 |
! len += nlen - olen;
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
*** ../vim-7.3.399/src/digraph.c 2010-08-15 21:57:28.000000000 +0200
|
|
Karsten Hopp |
34a375 |
--- src/digraph.c 2012-01-10 21:57:16.000000000 +0100
|
|
Karsten Hopp |
34a375 |
***************
|
|
Karsten Hopp |
34a375 |
*** 2080,2092 ****
|
|
Karsten Hopp |
34a375 |
/*
|
|
Karsten Hopp |
34a375 |
* Lookup the pair "char1", "char2" in the digraph tables.
|
|
Karsten Hopp |
34a375 |
* If no match, return "char2".
|
|
Karsten Hopp |
34a375 |
! * If "meta" is TRUE and "char1" is a space, return "char2" | 0x80.
|
|
Karsten Hopp |
34a375 |
*/
|
|
Karsten Hopp |
34a375 |
static int
|
|
Karsten Hopp |
34a375 |
! getexactdigraph(char1, char2, meta)
|
|
Karsten Hopp |
34a375 |
int char1;
|
|
Karsten Hopp |
34a375 |
int char2;
|
|
Karsten Hopp |
34a375 |
! int meta;
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
int i;
|
|
Karsten Hopp |
34a375 |
int retval = 0;
|
|
Karsten Hopp |
34a375 |
--- 2080,2092 ----
|
|
Karsten Hopp |
34a375 |
/*
|
|
Karsten Hopp |
34a375 |
* Lookup the pair "char1", "char2" in the digraph tables.
|
|
Karsten Hopp |
34a375 |
* If no match, return "char2".
|
|
Karsten Hopp |
34a375 |
! * If "meta_char" is TRUE and "char1" is a space, return "char2" | 0x80.
|
|
Karsten Hopp |
34a375 |
*/
|
|
Karsten Hopp |
34a375 |
static int
|
|
Karsten Hopp |
34a375 |
! getexactdigraph(char1, char2, meta_char)
|
|
Karsten Hopp |
34a375 |
int char1;
|
|
Karsten Hopp |
34a375 |
int char2;
|
|
Karsten Hopp |
34a375 |
! int meta_char;
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
int i;
|
|
Karsten Hopp |
34a375 |
int retval = 0;
|
|
Karsten Hopp |
34a375 |
***************
|
|
Karsten Hopp |
34a375 |
*** 2159,2165 ****
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
if (retval == 0) /* digraph deleted or not found */
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
! if (char1 == ' ' && meta) /* <space> <char> --> meta-char */
|
|
Karsten Hopp |
34a375 |
return (char2 | 0x80);
|
|
Karsten Hopp |
34a375 |
return char2;
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
--- 2159,2165 ----
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
if (retval == 0) /* digraph deleted or not found */
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
! if (char1 == ' ' && meta_char) /* <space> <char> --> meta-char */
|
|
Karsten Hopp |
34a375 |
return (char2 | 0x80);
|
|
Karsten Hopp |
34a375 |
return char2;
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
***************
|
|
Karsten Hopp |
34a375 |
*** 2171,2186 ****
|
|
Karsten Hopp |
34a375 |
* Allow for both char1-char2 and char2-char1
|
|
Karsten Hopp |
34a375 |
*/
|
|
Karsten Hopp |
34a375 |
int
|
|
Karsten Hopp |
34a375 |
! getdigraph(char1, char2, meta)
|
|
Karsten Hopp |
34a375 |
int char1;
|
|
Karsten Hopp |
34a375 |
int char2;
|
|
Karsten Hopp |
34a375 |
! int meta;
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
int retval;
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
! if (((retval = getexactdigraph(char1, char2, meta)) == char2)
|
|
Karsten Hopp |
34a375 |
&& (char1 != char2)
|
|
Karsten Hopp |
34a375 |
! && ((retval = getexactdigraph(char2, char1, meta)) == char1))
|
|
Karsten Hopp |
34a375 |
return char2;
|
|
Karsten Hopp |
34a375 |
return retval;
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
--- 2171,2186 ----
|
|
Karsten Hopp |
34a375 |
* Allow for both char1-char2 and char2-char1
|
|
Karsten Hopp |
34a375 |
*/
|
|
Karsten Hopp |
34a375 |
int
|
|
Karsten Hopp |
34a375 |
! getdigraph(char1, char2, meta_char)
|
|
Karsten Hopp |
34a375 |
int char1;
|
|
Karsten Hopp |
34a375 |
int char2;
|
|
Karsten Hopp |
34a375 |
! int meta_char;
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
int retval;
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
! if (((retval = getexactdigraph(char1, char2, meta_char)) == char2)
|
|
Karsten Hopp |
34a375 |
&& (char1 != char2)
|
|
Karsten Hopp |
34a375 |
! && ((retval = getexactdigraph(char2, char1, meta_char)) == char1))
|
|
Karsten Hopp |
34a375 |
return char2;
|
|
Karsten Hopp |
34a375 |
return retval;
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
*** ../vim-7.3.399/src/edit.c 2011-12-23 13:14:58.000000000 +0100
|
|
Karsten Hopp |
34a375 |
--- src/edit.c 2012-01-10 21:58:28.000000000 +0100
|
|
Karsten Hopp |
34a375 |
***************
|
|
Karsten Hopp |
34a375 |
*** 4003,4026 ****
|
|
Karsten Hopp |
34a375 |
ins_compl_add_dict(dict)
|
|
Karsten Hopp |
34a375 |
dict_T *dict;
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
! dictitem_T *refresh;
|
|
Karsten Hopp |
34a375 |
! dictitem_T *words;
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
/* Check for optional "refresh" item. */
|
|
Karsten Hopp |
34a375 |
compl_opt_refresh_always = FALSE;
|
|
Karsten Hopp |
34a375 |
! refresh = dict_find(dict, (char_u *)"refresh", 7);
|
|
Karsten Hopp |
34a375 |
! if (refresh != NULL && refresh->di_tv.v_type == VAR_STRING)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
! char_u *v = refresh->di_tv.vval.v_string;
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
if (v != NULL && STRCMP(v, (char_u *)"always") == 0)
|
|
Karsten Hopp |
34a375 |
compl_opt_refresh_always = TRUE;
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
/* Add completions from a "words" list. */
|
|
Karsten Hopp |
34a375 |
! words = dict_find(dict, (char_u *)"words", 5);
|
|
Karsten Hopp |
34a375 |
! if (words != NULL && words->di_tv.v_type == VAR_LIST)
|
|
Karsten Hopp |
34a375 |
! ins_compl_add_list(words->di_tv.vval.v_list);
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
/*
|
|
Karsten Hopp |
34a375 |
--- 4003,4026 ----
|
|
Karsten Hopp |
34a375 |
ins_compl_add_dict(dict)
|
|
Karsten Hopp |
34a375 |
dict_T *dict;
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
! dictitem_T *di_refresh;
|
|
Karsten Hopp |
34a375 |
! dictitem_T *di_words;
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
/* Check for optional "refresh" item. */
|
|
Karsten Hopp |
34a375 |
compl_opt_refresh_always = FALSE;
|
|
Karsten Hopp |
34a375 |
! di_refresh = dict_find(dict, (char_u *)"refresh", 7);
|
|
Karsten Hopp |
34a375 |
! if (di_refresh != NULL && di_refresh->di_tv.v_type == VAR_STRING)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
! char_u *v = di_refresh->di_tv.vval.v_string;
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
if (v != NULL && STRCMP(v, (char_u *)"always") == 0)
|
|
Karsten Hopp |
34a375 |
compl_opt_refresh_always = TRUE;
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
/* Add completions from a "words" list. */
|
|
Karsten Hopp |
34a375 |
! di_words = dict_find(dict, (char_u *)"words", 5);
|
|
Karsten Hopp |
34a375 |
! if (di_words != NULL && di_words->di_tv.v_type == VAR_LIST)
|
|
Karsten Hopp |
34a375 |
! ins_compl_add_list(di_words->di_tv.vval.v_list);
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
/*
|
|
Karsten Hopp |
34a375 |
*** ../vim-7.3.399/src/eval.c 2012-01-04 14:35:31.000000000 +0100
|
|
Karsten Hopp |
34a375 |
--- src/eval.c 2012-01-10 22:00:50.000000000 +0100
|
|
Karsten Hopp |
34a375 |
***************
|
|
Karsten Hopp |
34a375 |
*** 6573,6587 ****
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
/*
|
|
Karsten Hopp |
34a375 |
* Join list "l" into a string in "*gap", using separator "sep".
|
|
Karsten Hopp |
34a375 |
! * When "echo" is TRUE use String as echoed, otherwise as inside a List.
|
|
Karsten Hopp |
34a375 |
* Return FAIL or OK.
|
|
Karsten Hopp |
34a375 |
*/
|
|
Karsten Hopp |
34a375 |
static int
|
|
Karsten Hopp |
34a375 |
! list_join(gap, l, sep, echo, copyID)
|
|
Karsten Hopp |
34a375 |
garray_T *gap;
|
|
Karsten Hopp |
34a375 |
list_T *l;
|
|
Karsten Hopp |
34a375 |
char_u *sep;
|
|
Karsten Hopp |
34a375 |
! int echo;
|
|
Karsten Hopp |
34a375 |
int copyID;
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
int first = TRUE;
|
|
Karsten Hopp |
34a375 |
--- 6573,6587 ----
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
/*
|
|
Karsten Hopp |
34a375 |
* Join list "l" into a string in "*gap", using separator "sep".
|
|
Karsten Hopp |
34a375 |
! * When "echo_style" is TRUE use String as echoed, otherwise as inside a List.
|
|
Karsten Hopp |
34a375 |
* Return FAIL or OK.
|
|
Karsten Hopp |
34a375 |
*/
|
|
Karsten Hopp |
34a375 |
static int
|
|
Karsten Hopp |
34a375 |
! list_join(gap, l, sep, echo_style, copyID)
|
|
Karsten Hopp |
34a375 |
garray_T *gap;
|
|
Karsten Hopp |
34a375 |
list_T *l;
|
|
Karsten Hopp |
34a375 |
char_u *sep;
|
|
Karsten Hopp |
34a375 |
! int echo_style;
|
|
Karsten Hopp |
34a375 |
int copyID;
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
int first = TRUE;
|
|
Karsten Hopp |
34a375 |
***************
|
|
Karsten Hopp |
34a375 |
*** 6597,6603 ****
|
|
Karsten Hopp |
34a375 |
else
|
|
Karsten Hopp |
34a375 |
ga_concat(gap, sep);
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
! if (echo)
|
|
Karsten Hopp |
34a375 |
s = echo_string(&item->li_tv, &tofree, numbuf, copyID);
|
|
Karsten Hopp |
34a375 |
else
|
|
Karsten Hopp |
34a375 |
s = tv2string(&item->li_tv, &tofree, numbuf, copyID);
|
|
Karsten Hopp |
34a375 |
--- 6597,6603 ----
|
|
Karsten Hopp |
34a375 |
else
|
|
Karsten Hopp |
34a375 |
ga_concat(gap, sep);
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
! if (echo_style)
|
|
Karsten Hopp |
34a375 |
s = echo_string(&item->li_tv, &tofree, numbuf, copyID);
|
|
Karsten Hopp |
34a375 |
else
|
|
Karsten Hopp |
34a375 |
s = tv2string(&item->li_tv, &tofree, numbuf, copyID);
|
|
Karsten Hopp |
34a375 |
***************
|
|
Karsten Hopp |
34a375 |
*** 17893,17899 ****
|
|
Karsten Hopp |
34a375 |
typval_T *argvars;
|
|
Karsten Hopp |
34a375 |
typval_T *rettv;
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
! char_u *instr;
|
|
Karsten Hopp |
34a375 |
char_u *fromstr;
|
|
Karsten Hopp |
34a375 |
char_u *tostr;
|
|
Karsten Hopp |
34a375 |
char_u *p;
|
|
Karsten Hopp |
34a375 |
--- 17893,17899 ----
|
|
Karsten Hopp |
34a375 |
typval_T *argvars;
|
|
Karsten Hopp |
34a375 |
typval_T *rettv;
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
! char_u *in_str;
|
|
Karsten Hopp |
34a375 |
char_u *fromstr;
|
|
Karsten Hopp |
34a375 |
char_u *tostr;
|
|
Karsten Hopp |
34a375 |
char_u *p;
|
|
Karsten Hopp |
34a375 |
***************
|
|
Karsten Hopp |
34a375 |
*** 17910,17916 ****
|
|
Karsten Hopp |
34a375 |
char_u buf2[NUMBUFLEN];
|
|
Karsten Hopp |
34a375 |
garray_T ga;
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
! instr = get_tv_string(&argvars[0]);
|
|
Karsten Hopp |
34a375 |
fromstr = get_tv_string_buf_chk(&argvars[1], buf);
|
|
Karsten Hopp |
34a375 |
tostr = get_tv_string_buf_chk(&argvars[2], buf2);
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
--- 17910,17916 ----
|
|
Karsten Hopp |
34a375 |
char_u buf2[NUMBUFLEN];
|
|
Karsten Hopp |
34a375 |
garray_T ga;
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
! in_str = get_tv_string(&argvars[0]);
|
|
Karsten Hopp |
34a375 |
fromstr = get_tv_string_buf_chk(&argvars[1], buf);
|
|
Karsten Hopp |
34a375 |
tostr = get_tv_string_buf_chk(&argvars[2], buf2);
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
***************
|
|
Karsten Hopp |
34a375 |
*** 17936,17954 ****
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
/* fromstr and tostr have to contain the same number of chars */
|
|
Karsten Hopp |
34a375 |
! while (*instr != NUL)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
#ifdef FEAT_MBYTE
|
|
Karsten Hopp |
34a375 |
if (has_mbyte)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
! inlen = (*mb_ptr2len)(instr);
|
|
Karsten Hopp |
34a375 |
! cpstr = instr;
|
|
Karsten Hopp |
34a375 |
cplen = inlen;
|
|
Karsten Hopp |
34a375 |
idx = 0;
|
|
Karsten Hopp |
34a375 |
for (p = fromstr; *p != NUL; p += fromlen)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
fromlen = (*mb_ptr2len)(p);
|
|
Karsten Hopp |
34a375 |
! if (fromlen == inlen && STRNCMP(instr, p, inlen) == 0)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
for (p = tostr; *p != NUL; p += tolen)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
--- 17936,17954 ----
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
/* fromstr and tostr have to contain the same number of chars */
|
|
Karsten Hopp |
34a375 |
! while (*in_str != NUL)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
#ifdef FEAT_MBYTE
|
|
Karsten Hopp |
34a375 |
if (has_mbyte)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
! inlen = (*mb_ptr2len)(in_str);
|
|
Karsten Hopp |
34a375 |
! cpstr = in_str;
|
|
Karsten Hopp |
34a375 |
cplen = inlen;
|
|
Karsten Hopp |
34a375 |
idx = 0;
|
|
Karsten Hopp |
34a375 |
for (p = fromstr; *p != NUL; p += fromlen)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
fromlen = (*mb_ptr2len)(p);
|
|
Karsten Hopp |
34a375 |
! if (fromlen == inlen && STRNCMP(in_str, p, inlen) == 0)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
for (p = tostr; *p != NUL; p += tolen)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
***************
|
|
Karsten Hopp |
34a375 |
*** 17967,17977 ****
|
|
Karsten Hopp |
34a375 |
++idx;
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
! if (first && cpstr == instr)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
/* Check that fromstr and tostr have the same number of
|
|
Karsten Hopp |
34a375 |
* (multi-byte) characters. Done only once when a character
|
|
Karsten Hopp |
34a375 |
! * of instr doesn't appear in fromstr. */
|
|
Karsten Hopp |
34a375 |
first = FALSE;
|
|
Karsten Hopp |
34a375 |
for (p = tostr; *p != NUL; p += tolen)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
--- 17967,17977 ----
|
|
Karsten Hopp |
34a375 |
++idx;
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
! if (first && cpstr == in_str)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
/* Check that fromstr and tostr have the same number of
|
|
Karsten Hopp |
34a375 |
* (multi-byte) characters. Done only once when a character
|
|
Karsten Hopp |
34a375 |
! * of in_str doesn't appear in fromstr. */
|
|
Karsten Hopp |
34a375 |
first = FALSE;
|
|
Karsten Hopp |
34a375 |
for (p = tostr; *p != NUL; p += tolen)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
***************
|
|
Karsten Hopp |
34a375 |
*** 17986,18003 ****
|
|
Karsten Hopp |
34a375 |
mch_memmove((char *)ga.ga_data + ga.ga_len, cpstr, (size_t)cplen);
|
|
Karsten Hopp |
34a375 |
ga.ga_len += cplen;
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
! instr += inlen;
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
else
|
|
Karsten Hopp |
34a375 |
#endif
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
/* When not using multi-byte chars we can do it faster. */
|
|
Karsten Hopp |
34a375 |
! p = vim_strchr(fromstr, *instr);
|
|
Karsten Hopp |
34a375 |
if (p != NULL)
|
|
Karsten Hopp |
34a375 |
ga_append(&ga, tostr[p - fromstr]);
|
|
Karsten Hopp |
34a375 |
else
|
|
Karsten Hopp |
34a375 |
! ga_append(&ga, *instr);
|
|
Karsten Hopp |
34a375 |
! ++instr;
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
--- 17986,18003 ----
|
|
Karsten Hopp |
34a375 |
mch_memmove((char *)ga.ga_data + ga.ga_len, cpstr, (size_t)cplen);
|
|
Karsten Hopp |
34a375 |
ga.ga_len += cplen;
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
! in_str += inlen;
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
else
|
|
Karsten Hopp |
34a375 |
#endif
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
/* When not using multi-byte chars we can do it faster. */
|
|
Karsten Hopp |
34a375 |
! p = vim_strchr(fromstr, *in_str);
|
|
Karsten Hopp |
34a375 |
if (p != NULL)
|
|
Karsten Hopp |
34a375 |
ga_append(&ga, tostr[p - fromstr]);
|
|
Karsten Hopp |
34a375 |
else
|
|
Karsten Hopp |
34a375 |
! ga_append(&ga, *in_str);
|
|
Karsten Hopp |
34a375 |
! ++in_str;
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
*** ../vim-7.3.399/src/fold.c 2011-08-26 16:12:55.000000000 +0200
|
|
Karsten Hopp |
34a375 |
--- src/fold.c 2012-01-10 22:01:26.000000000 +0100
|
|
Karsten Hopp |
34a375 |
***************
|
|
Karsten Hopp |
34a375 |
*** 1033,1042 ****
|
|
Karsten Hopp |
34a375 |
* Init the fold info in a new window.
|
|
Karsten Hopp |
34a375 |
*/
|
|
Karsten Hopp |
34a375 |
void
|
|
Karsten Hopp |
34a375 |
! foldInitWin(newwin)
|
|
Karsten Hopp |
34a375 |
! win_T *newwin;
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
! ga_init2(&newwin->w_folds, (int)sizeof(fold_T), 10);
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
/* find_wl_entry() {{{2 */
|
|
Karsten Hopp |
34a375 |
--- 1033,1042 ----
|
|
Karsten Hopp |
34a375 |
* Init the fold info in a new window.
|
|
Karsten Hopp |
34a375 |
*/
|
|
Karsten Hopp |
34a375 |
void
|
|
Karsten Hopp |
34a375 |
! foldInitWin(new_win)
|
|
Karsten Hopp |
34a375 |
! win_T *new_win;
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
! ga_init2(&new_win->w_folds, (int)sizeof(fold_T), 10);
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
/* find_wl_entry() {{{2 */
|
|
Karsten Hopp |
34a375 |
*** ../vim-7.3.399/src/getchar.c 2011-12-23 14:54:01.000000000 +0100
|
|
Karsten Hopp |
34a375 |
--- src/getchar.c 2012-01-10 22:02:30.000000000 +0100
|
|
Karsten Hopp |
34a375 |
***************
|
|
Karsten Hopp |
34a375 |
*** 418,429 ****
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
/*
|
|
Karsten Hopp |
34a375 |
* Remove the contents of the stuff buffer and the mapped characters in the
|
|
Karsten Hopp |
34a375 |
! * typeahead buffer (used in case of an error). If 'typeahead' is true,
|
|
Karsten Hopp |
34a375 |
* flush all typeahead characters (used when interrupted by a CTRL-C).
|
|
Karsten Hopp |
34a375 |
*/
|
|
Karsten Hopp |
34a375 |
void
|
|
Karsten Hopp |
34a375 |
! flush_buffers(typeahead)
|
|
Karsten Hopp |
34a375 |
! int typeahead;
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
init_typebuf();
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
--- 418,429 ----
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
/*
|
|
Karsten Hopp |
34a375 |
* Remove the contents of the stuff buffer and the mapped characters in the
|
|
Karsten Hopp |
34a375 |
! * typeahead buffer (used in case of an error). If "flush_typeahead" is true,
|
|
Karsten Hopp |
34a375 |
* flush all typeahead characters (used when interrupted by a CTRL-C).
|
|
Karsten Hopp |
34a375 |
*/
|
|
Karsten Hopp |
34a375 |
void
|
|
Karsten Hopp |
34a375 |
! flush_buffers(flush_typeahead)
|
|
Karsten Hopp |
34a375 |
! int flush_typeahead;
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
init_typebuf();
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
***************
|
|
Karsten Hopp |
34a375 |
*** 431,437 ****
|
|
Karsten Hopp |
34a375 |
while (read_stuff(TRUE) != NUL)
|
|
Karsten Hopp |
34a375 |
;
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
! if (typeahead) /* remove all typeahead */
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
/*
|
|
Karsten Hopp |
34a375 |
* We have to get all characters, because we may delete the first part
|
|
Karsten Hopp |
34a375 |
--- 431,437 ----
|
|
Karsten Hopp |
34a375 |
while (read_stuff(TRUE) != NUL)
|
|
Karsten Hopp |
34a375 |
;
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
! if (flush_typeahead) /* remove all typeahead */
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
/*
|
|
Karsten Hopp |
34a375 |
* We have to get all characters, because we may delete the first part
|
|
Karsten Hopp |
34a375 |
*** ../vim-7.3.399/src/message.c 2011-12-30 14:14:16.000000000 +0100
|
|
Karsten Hopp |
34a375 |
--- src/message.c 2012-01-10 22:03:56.000000000 +0100
|
|
Karsten Hopp |
34a375 |
***************
|
|
Karsten Hopp |
34a375 |
*** 2487,2493 ****
|
|
Karsten Hopp |
34a375 |
#ifdef FEAT_CON_DIALOG
|
|
Karsten Hopp |
34a375 |
int retval = FALSE;
|
|
Karsten Hopp |
34a375 |
#endif
|
|
Karsten Hopp |
34a375 |
! int scroll;
|
|
Karsten Hopp |
34a375 |
msgchunk_T *mp_last = NULL;
|
|
Karsten Hopp |
34a375 |
msgchunk_T *mp;
|
|
Karsten Hopp |
34a375 |
int i;
|
|
Karsten Hopp |
34a375 |
--- 2487,2493 ----
|
|
Karsten Hopp |
34a375 |
#ifdef FEAT_CON_DIALOG
|
|
Karsten Hopp |
34a375 |
int retval = FALSE;
|
|
Karsten Hopp |
34a375 |
#endif
|
|
Karsten Hopp |
34a375 |
! int toscroll;
|
|
Karsten Hopp |
34a375 |
msgchunk_T *mp_last = NULL;
|
|
Karsten Hopp |
34a375 |
msgchunk_T *mp;
|
|
Karsten Hopp |
34a375 |
int i;
|
|
Karsten Hopp |
34a375 |
***************
|
|
Karsten Hopp |
34a375 |
*** 2538,2586 ****
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
#endif
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
! scroll = 0;
|
|
Karsten Hopp |
34a375 |
switch (c)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
case BS: /* scroll one line back */
|
|
Karsten Hopp |
34a375 |
case K_BS:
|
|
Karsten Hopp |
34a375 |
case 'k':
|
|
Karsten Hopp |
34a375 |
case K_UP:
|
|
Karsten Hopp |
34a375 |
! scroll = -1;
|
|
Karsten Hopp |
34a375 |
break;
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
case CAR: /* one extra line */
|
|
Karsten Hopp |
34a375 |
case NL:
|
|
Karsten Hopp |
34a375 |
case 'j':
|
|
Karsten Hopp |
34a375 |
case K_DOWN:
|
|
Karsten Hopp |
34a375 |
! scroll = 1;
|
|
Karsten Hopp |
34a375 |
break;
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
case 'u': /* Up half a page */
|
|
Karsten Hopp |
34a375 |
! scroll = -(Rows / 2);
|
|
Karsten Hopp |
34a375 |
break;
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
case 'd': /* Down half a page */
|
|
Karsten Hopp |
34a375 |
! scroll = Rows / 2;
|
|
Karsten Hopp |
34a375 |
break;
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
case 'b': /* one page back */
|
|
Karsten Hopp |
34a375 |
case K_PAGEUP:
|
|
Karsten Hopp |
34a375 |
! scroll = -(Rows - 1);
|
|
Karsten Hopp |
34a375 |
break;
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
case ' ': /* one extra page */
|
|
Karsten Hopp |
34a375 |
case 'f':
|
|
Karsten Hopp |
34a375 |
case K_PAGEDOWN:
|
|
Karsten Hopp |
34a375 |
case K_LEFTMOUSE:
|
|
Karsten Hopp |
34a375 |
! scroll = Rows - 1;
|
|
Karsten Hopp |
34a375 |
break;
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
case 'g': /* all the way back to the start */
|
|
Karsten Hopp |
34a375 |
! scroll = -999999;
|
|
Karsten Hopp |
34a375 |
break;
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
case 'G': /* all the way to the end */
|
|
Karsten Hopp |
34a375 |
! scroll = 999999;
|
|
Karsten Hopp |
34a375 |
lines_left = 999999;
|
|
Karsten Hopp |
34a375 |
break;
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
--- 2538,2586 ----
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
#endif
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
! toscroll = 0;
|
|
Karsten Hopp |
34a375 |
switch (c)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
case BS: /* scroll one line back */
|
|
Karsten Hopp |
34a375 |
case K_BS:
|
|
Karsten Hopp |
34a375 |
case 'k':
|
|
Karsten Hopp |
34a375 |
case K_UP:
|
|
Karsten Hopp |
34a375 |
! toscroll = -1;
|
|
Karsten Hopp |
34a375 |
break;
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
case CAR: /* one extra line */
|
|
Karsten Hopp |
34a375 |
case NL:
|
|
Karsten Hopp |
34a375 |
case 'j':
|
|
Karsten Hopp |
34a375 |
case K_DOWN:
|
|
Karsten Hopp |
34a375 |
! toscroll = 1;
|
|
Karsten Hopp |
34a375 |
break;
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
case 'u': /* Up half a page */
|
|
Karsten Hopp |
34a375 |
! toscroll = -(Rows / 2);
|
|
Karsten Hopp |
34a375 |
break;
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
case 'd': /* Down half a page */
|
|
Karsten Hopp |
34a375 |
! toscroll = Rows / 2;
|
|
Karsten Hopp |
34a375 |
break;
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
case 'b': /* one page back */
|
|
Karsten Hopp |
34a375 |
case K_PAGEUP:
|
|
Karsten Hopp |
34a375 |
! toscroll = -(Rows - 1);
|
|
Karsten Hopp |
34a375 |
break;
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
case ' ': /* one extra page */
|
|
Karsten Hopp |
34a375 |
case 'f':
|
|
Karsten Hopp |
34a375 |
case K_PAGEDOWN:
|
|
Karsten Hopp |
34a375 |
case K_LEFTMOUSE:
|
|
Karsten Hopp |
34a375 |
! toscroll = Rows - 1;
|
|
Karsten Hopp |
34a375 |
break;
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
case 'g': /* all the way back to the start */
|
|
Karsten Hopp |
34a375 |
! toscroll = -999999;
|
|
Karsten Hopp |
34a375 |
break;
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
case 'G': /* all the way to the end */
|
|
Karsten Hopp |
34a375 |
! toscroll = 999999;
|
|
Karsten Hopp |
34a375 |
lines_left = 999999;
|
|
Karsten Hopp |
34a375 |
break;
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
***************
|
|
Karsten Hopp |
34a375 |
*** 2633,2641 ****
|
|
Karsten Hopp |
34a375 |
continue;
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
! if (scroll != 0)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
! if (scroll < 0)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
/* go to start of last line */
|
|
Karsten Hopp |
34a375 |
if (mp_last == NULL)
|
|
Karsten Hopp |
34a375 |
--- 2633,2641 ----
|
|
Karsten Hopp |
34a375 |
continue;
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
! if (toscroll != 0)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
! if (toscroll < 0)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
/* go to start of last line */
|
|
Karsten Hopp |
34a375 |
if (mp_last == NULL)
|
|
Karsten Hopp |
34a375 |
***************
|
|
Karsten Hopp |
34a375 |
*** 2653,2659 ****
|
|
Karsten Hopp |
34a375 |
if (mp != NULL && mp->sb_prev != NULL)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
/* Find line to be displayed at top. */
|
|
Karsten Hopp |
34a375 |
! for (i = 0; i > scroll; --i)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
if (mp == NULL || mp->sb_prev == NULL)
|
|
Karsten Hopp |
34a375 |
break;
|
|
Karsten Hopp |
34a375 |
--- 2653,2659 ----
|
|
Karsten Hopp |
34a375 |
if (mp != NULL && mp->sb_prev != NULL)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
/* Find line to be displayed at top. */
|
|
Karsten Hopp |
34a375 |
! for (i = 0; i > toscroll; --i)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
if (mp == NULL || mp->sb_prev == NULL)
|
|
Karsten Hopp |
34a375 |
break;
|
|
Karsten Hopp |
34a375 |
***************
|
|
Karsten Hopp |
34a375 |
*** 2664,2670 ****
|
|
Karsten Hopp |
34a375 |
mp_last = msg_sb_start(mp_last->sb_prev);
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
! if (scroll == -1 && screen_ins_lines(0, 0, 1,
|
|
Karsten Hopp |
34a375 |
(int)Rows, NULL) == OK)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
/* display line at top */
|
|
Karsten Hopp |
34a375 |
--- 2664,2670 ----
|
|
Karsten Hopp |
34a375 |
mp_last = msg_sb_start(mp_last->sb_prev);
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
! if (toscroll == -1 && screen_ins_lines(0, 0, 1,
|
|
Karsten Hopp |
34a375 |
(int)Rows, NULL) == OK)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
/* display line at top */
|
|
Karsten Hopp |
34a375 |
***************
|
|
Karsten Hopp |
34a375 |
*** 2680,2692 ****
|
|
Karsten Hopp |
34a375 |
++msg_scrolled;
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
! scroll = 0;
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
else
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
/* First display any text that we scrolled back. */
|
|
Karsten Hopp |
34a375 |
! while (scroll > 0 && mp_last != NULL)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
/* scroll up, display line at bottom */
|
|
Karsten Hopp |
34a375 |
msg_scroll_up();
|
|
Karsten Hopp |
34a375 |
--- 2680,2692 ----
|
|
Karsten Hopp |
34a375 |
++msg_scrolled;
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
! toscroll = 0;
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
else
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
/* First display any text that we scrolled back. */
|
|
Karsten Hopp |
34a375 |
! while (toscroll > 0 && mp_last != NULL)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
/* scroll up, display line at bottom */
|
|
Karsten Hopp |
34a375 |
msg_scroll_up();
|
|
Karsten Hopp |
34a375 |
***************
|
|
Karsten Hopp |
34a375 |
*** 2694,2704 ****
|
|
Karsten Hopp |
34a375 |
screen_fill((int)Rows - 2, (int)Rows - 1, 0,
|
|
Karsten Hopp |
34a375 |
(int)Columns, ' ', ' ', 0);
|
|
Karsten Hopp |
34a375 |
mp_last = disp_sb_line((int)Rows - 2, mp_last);
|
|
Karsten Hopp |
34a375 |
! --scroll;
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
! if (scroll <= 0)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
/* displayed the requested text, more prompt again */
|
|
Karsten Hopp |
34a375 |
screen_fill((int)Rows - 1, (int)Rows, 0,
|
|
Karsten Hopp |
34a375 |
--- 2694,2704 ----
|
|
Karsten Hopp |
34a375 |
screen_fill((int)Rows - 2, (int)Rows - 1, 0,
|
|
Karsten Hopp |
34a375 |
(int)Columns, ' ', ' ', 0);
|
|
Karsten Hopp |
34a375 |
mp_last = disp_sb_line((int)Rows - 2, mp_last);
|
|
Karsten Hopp |
34a375 |
! --toscroll;
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
! if (toscroll <= 0)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
/* displayed the requested text, more prompt again */
|
|
Karsten Hopp |
34a375 |
screen_fill((int)Rows - 1, (int)Rows, 0,
|
|
Karsten Hopp |
34a375 |
***************
|
|
Karsten Hopp |
34a375 |
*** 2708,2714 ****
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
/* display more text, return to caller */
|
|
Karsten Hopp |
34a375 |
! lines_left = scroll;
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
break;
|
|
Karsten Hopp |
34a375 |
--- 2708,2714 ----
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
/* display more text, return to caller */
|
|
Karsten Hopp |
34a375 |
! lines_left = toscroll;
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
break;
|
|
Karsten Hopp |
34a375 |
*** ../vim-7.3.399/src/misc2.c 2012-01-10 16:28:41.000000000 +0100
|
|
Karsten Hopp |
34a375 |
--- src/misc2.c 2012-01-10 22:04:25.000000000 +0100
|
|
Karsten Hopp |
34a375 |
***************
|
|
Karsten Hopp |
34a375 |
*** 1559,1565 ****
|
|
Karsten Hopp |
34a375 |
if (enc_utf8)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
int c, uc;
|
|
Karsten Hopp |
34a375 |
! int nl;
|
|
Karsten Hopp |
34a375 |
char_u *s;
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
c = utf_ptr2char(p);
|
|
Karsten Hopp |
34a375 |
--- 1559,1565 ----
|
|
Karsten Hopp |
34a375 |
if (enc_utf8)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
int c, uc;
|
|
Karsten Hopp |
34a375 |
! int newl;
|
|
Karsten Hopp |
34a375 |
char_u *s;
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
c = utf_ptr2char(p);
|
|
Karsten Hopp |
34a375 |
***************
|
|
Karsten Hopp |
34a375 |
*** 1568,1588 ****
|
|
Karsten Hopp |
34a375 |
/* Reallocate string when byte count changes. This is rare,
|
|
Karsten Hopp |
34a375 |
* thus it's OK to do another malloc()/free(). */
|
|
Karsten Hopp |
34a375 |
l = utf_ptr2len(p);
|
|
Karsten Hopp |
34a375 |
! nl = utf_char2len(uc);
|
|
Karsten Hopp |
34a375 |
! if (nl != l)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
! s = alloc((unsigned)STRLEN(res) + 1 + nl - l);
|
|
Karsten Hopp |
34a375 |
if (s == NULL)
|
|
Karsten Hopp |
34a375 |
break;
|
|
Karsten Hopp |
34a375 |
mch_memmove(s, res, p - res);
|
|
Karsten Hopp |
34a375 |
! STRCPY(s + (p - res) + nl, p + l);
|
|
Karsten Hopp |
34a375 |
p = s + (p - res);
|
|
Karsten Hopp |
34a375 |
vim_free(res);
|
|
Karsten Hopp |
34a375 |
res = s;
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
utf_char2bytes(uc, p);
|
|
Karsten Hopp |
34a375 |
! p += nl;
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
else if (has_mbyte && (l = (*mb_ptr2len)(p)) > 1)
|
|
Karsten Hopp |
34a375 |
p += l; /* skip multi-byte character */
|
|
Karsten Hopp |
34a375 |
--- 1568,1588 ----
|
|
Karsten Hopp |
34a375 |
/* Reallocate string when byte count changes. This is rare,
|
|
Karsten Hopp |
34a375 |
* thus it's OK to do another malloc()/free(). */
|
|
Karsten Hopp |
34a375 |
l = utf_ptr2len(p);
|
|
Karsten Hopp |
34a375 |
! newl = utf_char2len(uc);
|
|
Karsten Hopp |
34a375 |
! if (newl != l)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
! s = alloc((unsigned)STRLEN(res) + 1 + newl - l);
|
|
Karsten Hopp |
34a375 |
if (s == NULL)
|
|
Karsten Hopp |
34a375 |
break;
|
|
Karsten Hopp |
34a375 |
mch_memmove(s, res, p - res);
|
|
Karsten Hopp |
34a375 |
! STRCPY(s + (p - res) + newl, p + l);
|
|
Karsten Hopp |
34a375 |
p = s + (p - res);
|
|
Karsten Hopp |
34a375 |
vim_free(res);
|
|
Karsten Hopp |
34a375 |
res = s;
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
utf_char2bytes(uc, p);
|
|
Karsten Hopp |
34a375 |
! p += newl;
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
else if (has_mbyte && (l = (*mb_ptr2len)(p)) > 1)
|
|
Karsten Hopp |
34a375 |
p += l; /* skip multi-byte character */
|
|
Karsten Hopp |
34a375 |
*** ../vim-7.3.399/src/move.c 2011-02-01 18:01:06.000000000 +0100
|
|
Karsten Hopp |
34a375 |
--- src/move.c 2012-01-10 22:05:22.000000000 +0100
|
|
Karsten Hopp |
34a375 |
***************
|
|
Karsten Hopp |
34a375 |
*** 926,933 ****
|
|
Karsten Hopp |
34a375 |
* Also updates curwin->w_leftcol.
|
|
Karsten Hopp |
34a375 |
*/
|
|
Karsten Hopp |
34a375 |
void
|
|
Karsten Hopp |
34a375 |
! curs_columns(scroll)
|
|
Karsten Hopp |
34a375 |
! int scroll; /* when TRUE, may scroll horizontally */
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
int diff;
|
|
Karsten Hopp |
34a375 |
int extra; /* offset for first screen line */
|
|
Karsten Hopp |
34a375 |
--- 926,933 ----
|
|
Karsten Hopp |
34a375 |
* Also updates curwin->w_leftcol.
|
|
Karsten Hopp |
34a375 |
*/
|
|
Karsten Hopp |
34a375 |
void
|
|
Karsten Hopp |
34a375 |
! curs_columns(may_scroll)
|
|
Karsten Hopp |
34a375 |
! int may_scroll; /* when TRUE, may scroll horizontally */
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
int diff;
|
|
Karsten Hopp |
34a375 |
int extra; /* offset for first screen line */
|
|
Karsten Hopp |
34a375 |
***************
|
|
Karsten Hopp |
34a375 |
*** 1014,1020 ****
|
|
Karsten Hopp |
34a375 |
/* No line wrapping: compute curwin->w_leftcol if scrolling is on and line
|
|
Karsten Hopp |
34a375 |
* is not folded.
|
|
Karsten Hopp |
34a375 |
* If scrolling is off, curwin->w_leftcol is assumed to be 0 */
|
|
Karsten Hopp |
34a375 |
! else if (scroll
|
|
Karsten Hopp |
34a375 |
#ifdef FEAT_FOLDING
|
|
Karsten Hopp |
34a375 |
&& !curwin->w_cline_folded
|
|
Karsten Hopp |
34a375 |
#endif
|
|
Karsten Hopp |
34a375 |
--- 1014,1020 ----
|
|
Karsten Hopp |
34a375 |
/* No line wrapping: compute curwin->w_leftcol if scrolling is on and line
|
|
Karsten Hopp |
34a375 |
* is not folded.
|
|
Karsten Hopp |
34a375 |
* If scrolling is off, curwin->w_leftcol is assumed to be 0 */
|
|
Karsten Hopp |
34a375 |
! else if (may_scroll
|
|
Karsten Hopp |
34a375 |
#ifdef FEAT_FOLDING
|
|
Karsten Hopp |
34a375 |
&& !curwin->w_cline_folded
|
|
Karsten Hopp |
34a375 |
#endif
|
|
Karsten Hopp |
34a375 |
*** ../vim-7.3.399/src/netbeans.c 2011-10-20 21:58:20.000000000 +0200
|
|
Karsten Hopp |
34a375 |
--- src/netbeans.c 2012-01-10 22:16:26.000000000 +0100
|
|
Karsten Hopp |
34a375 |
***************
|
|
Karsten Hopp |
34a375 |
*** 1395,1401 ****
|
|
Karsten Hopp |
34a375 |
int cmdno,
|
|
Karsten Hopp |
34a375 |
char_u *args) /* points to space before arguments or NUL */
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
! int doupdate = 0;
|
|
Karsten Hopp |
34a375 |
long off = 0;
|
|
Karsten Hopp |
34a375 |
nbbuf_T *buf = nb_get_buf(bufno);
|
|
Karsten Hopp |
34a375 |
static int skip = 0;
|
|
Karsten Hopp |
34a375 |
--- 1395,1401 ----
|
|
Karsten Hopp |
34a375 |
int cmdno,
|
|
Karsten Hopp |
34a375 |
char_u *args) /* points to space before arguments or NUL */
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
! int do_update = 0;
|
|
Karsten Hopp |
34a375 |
long off = 0;
|
|
Karsten Hopp |
34a375 |
nbbuf_T *buf = nb_get_buf(bufno);
|
|
Karsten Hopp |
34a375 |
static int skip = 0;
|
|
Karsten Hopp |
34a375 |
***************
|
|
Karsten Hopp |
34a375 |
*** 1600,1606 ****
|
|
Karsten Hopp |
34a375 |
last.lnum, last.col));
|
|
Karsten Hopp |
34a375 |
del_from_lnum = first.lnum;
|
|
Karsten Hopp |
34a375 |
del_to_lnum = last.lnum;
|
|
Karsten Hopp |
34a375 |
! doupdate = 1;
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
/* Get the position of the first byte after the deleted
|
|
Karsten Hopp |
34a375 |
* section. "next" is NULL when deleting to the end of the
|
|
Karsten Hopp |
34a375 |
--- 1600,1606 ----
|
|
Karsten Hopp |
34a375 |
last.lnum, last.col));
|
|
Karsten Hopp |
34a375 |
del_from_lnum = first.lnum;
|
|
Karsten Hopp |
34a375 |
del_to_lnum = last.lnum;
|
|
Karsten Hopp |
34a375 |
! do_update = 1;
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
/* Get the position of the first byte after the deleted
|
|
Karsten Hopp |
34a375 |
* section. "next" is NULL when deleting to the end of the
|
|
Karsten Hopp |
34a375 |
***************
|
|
Karsten Hopp |
34a375 |
*** 1777,1783 ****
|
|
Karsten Hopp |
34a375 |
lnum = lnum_start;
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
/* Loop over the "\n" separated lines of the argument. */
|
|
Karsten Hopp |
34a375 |
! doupdate = 1;
|
|
Karsten Hopp |
34a375 |
while (*args != NUL)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
nl = vim_strchr(args, '\n');
|
|
Karsten Hopp |
34a375 |
--- 1777,1783 ----
|
|
Karsten Hopp |
34a375 |
lnum = lnum_start;
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
/* Loop over the "\n" separated lines of the argument. */
|
|
Karsten Hopp |
34a375 |
! do_update = 1;
|
|
Karsten Hopp |
34a375 |
while (*args != NUL)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
nl = vim_strchr(args, '\n');
|
|
Karsten Hopp |
34a375 |
***************
|
|
Karsten Hopp |
34a375 |
*** 1992,1998 ****
|
|
Karsten Hopp |
34a375 |
EMSG("E640: invalid buffer identifier in initDone");
|
|
Karsten Hopp |
34a375 |
return FAIL;
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
! doupdate = 1;
|
|
Karsten Hopp |
34a375 |
buf->initDone = TRUE;
|
|
Karsten Hopp |
34a375 |
nb_set_curbuf(buf->bufp);
|
|
Karsten Hopp |
34a375 |
#if defined(FEAT_AUTOCMD)
|
|
Karsten Hopp |
34a375 |
--- 1992,1998 ----
|
|
Karsten Hopp |
34a375 |
EMSG("E640: invalid buffer identifier in initDone");
|
|
Karsten Hopp |
34a375 |
return FAIL;
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
! do_update = 1;
|
|
Karsten Hopp |
34a375 |
buf->initDone = TRUE;
|
|
Karsten Hopp |
34a375 |
nb_set_curbuf(buf->bufp);
|
|
Karsten Hopp |
34a375 |
#if defined(FEAT_AUTOCMD)
|
|
Karsten Hopp |
34a375 |
***************
|
|
Karsten Hopp |
34a375 |
*** 2081,2087 ****
|
|
Karsten Hopp |
34a375 |
ECMD_HIDE + ECMD_OLDBUF, curwin);
|
|
Karsten Hopp |
34a375 |
buf->bufp = curbuf;
|
|
Karsten Hopp |
34a375 |
buf->initDone = TRUE;
|
|
Karsten Hopp |
34a375 |
! doupdate = 1;
|
|
Karsten Hopp |
34a375 |
#if defined(FEAT_TITLE)
|
|
Karsten Hopp |
34a375 |
maketitle();
|
|
Karsten Hopp |
34a375 |
#endif
|
|
Karsten Hopp |
34a375 |
--- 2081,2087 ----
|
|
Karsten Hopp |
34a375 |
ECMD_HIDE + ECMD_OLDBUF, curwin);
|
|
Karsten Hopp |
34a375 |
buf->bufp = curbuf;
|
|
Karsten Hopp |
34a375 |
buf->initDone = TRUE;
|
|
Karsten Hopp |
34a375 |
! do_update = 1;
|
|
Karsten Hopp |
34a375 |
#if defined(FEAT_TITLE)
|
|
Karsten Hopp |
34a375 |
maketitle();
|
|
Karsten Hopp |
34a375 |
#endif
|
|
Karsten Hopp |
34a375 |
***************
|
|
Karsten Hopp |
34a375 |
*** 2109,2115 ****
|
|
Karsten Hopp |
34a375 |
exarg.forceit = FALSE;
|
|
Karsten Hopp |
34a375 |
dosetvisible = TRUE;
|
|
Karsten Hopp |
34a375 |
goto_buffer(&exarg, DOBUF_FIRST, FORWARD, buf->bufp->b_fnum);
|
|
Karsten Hopp |
34a375 |
! doupdate = 1;
|
|
Karsten Hopp |
34a375 |
dosetvisible = FALSE;
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
#ifdef FEAT_GUI
|
|
Karsten Hopp |
34a375 |
--- 2109,2115 ----
|
|
Karsten Hopp |
34a375 |
exarg.forceit = FALSE;
|
|
Karsten Hopp |
34a375 |
dosetvisible = TRUE;
|
|
Karsten Hopp |
34a375 |
goto_buffer(&exarg, DOBUF_FIRST, FORWARD, buf->bufp->b_fnum);
|
|
Karsten Hopp |
34a375 |
! do_update = 1;
|
|
Karsten Hopp |
34a375 |
dosetvisible = FALSE;
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
#ifdef FEAT_GUI
|
|
Karsten Hopp |
34a375 |
***************
|
|
Karsten Hopp |
34a375 |
*** 2309,2315 ****
|
|
Karsten Hopp |
34a375 |
buf->bufp->b_fnum, TRUE);
|
|
Karsten Hopp |
34a375 |
buf->bufp = NULL;
|
|
Karsten Hopp |
34a375 |
buf->initDone = FALSE;
|
|
Karsten Hopp |
34a375 |
! doupdate = 1;
|
|
Karsten Hopp |
34a375 |
/* =====================================================================*/
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
else if (streq((char *)cmd, "setStyle")) /* obsolete... */
|
|
Karsten Hopp |
34a375 |
--- 2309,2315 ----
|
|
Karsten Hopp |
34a375 |
buf->bufp->b_fnum, TRUE);
|
|
Karsten Hopp |
34a375 |
buf->bufp = NULL;
|
|
Karsten Hopp |
34a375 |
buf->initDone = FALSE;
|
|
Karsten Hopp |
34a375 |
! do_update = 1;
|
|
Karsten Hopp |
34a375 |
/* =====================================================================*/
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
else if (streq((char *)cmd, "setStyle")) /* obsolete... */
|
|
Karsten Hopp |
34a375 |
***************
|
|
Karsten Hopp |
34a375 |
*** 2400,2406 ****
|
|
Karsten Hopp |
34a375 |
return FAIL;
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
! doupdate = 1;
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
cp = (char *)args;
|
|
Karsten Hopp |
34a375 |
serNum = strtol(cp, &cp, 10);
|
|
Karsten Hopp |
34a375 |
--- 2400,2406 ----
|
|
Karsten Hopp |
34a375 |
return FAIL;
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
! do_update = 1;
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
cp = (char *)args;
|
|
Karsten Hopp |
34a375 |
serNum = strtol(cp, &cp, 10);
|
|
Karsten Hopp |
34a375 |
***************
|
|
Karsten Hopp |
34a375 |
*** 2448,2454 ****
|
|
Karsten Hopp |
34a375 |
nbdebug((" invalid buffer identifier in removeAnno\n"));
|
|
Karsten Hopp |
34a375 |
return FAIL;
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
! doupdate = 1;
|
|
Karsten Hopp |
34a375 |
cp = (char *)args;
|
|
Karsten Hopp |
34a375 |
serNum = strtol(cp, &cp, 10);
|
|
Karsten Hopp |
34a375 |
args = (char_u *)cp;
|
|
Karsten Hopp |
34a375 |
--- 2448,2454 ----
|
|
Karsten Hopp |
34a375 |
nbdebug((" invalid buffer identifier in removeAnno\n"));
|
|
Karsten Hopp |
34a375 |
return FAIL;
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
! do_update = 1;
|
|
Karsten Hopp |
34a375 |
cp = (char *)args;
|
|
Karsten Hopp |
34a375 |
serNum = strtol(cp, &cp, 10);
|
|
Karsten Hopp |
34a375 |
args = (char_u *)cp;
|
|
Karsten Hopp |
34a375 |
***************
|
|
Karsten Hopp |
34a375 |
*** 2493,2499 ****
|
|
Karsten Hopp |
34a375 |
len = strtol(cp, NULL, 10);
|
|
Karsten Hopp |
34a375 |
args = (char_u *)cp;
|
|
Karsten Hopp |
34a375 |
pos = off2pos(buf->bufp, off);
|
|
Karsten Hopp |
34a375 |
! doupdate = 1;
|
|
Karsten Hopp |
34a375 |
if (!pos)
|
|
Karsten Hopp |
34a375 |
nbdebug((" no such start pos in %s, %ld\n", cmd, off));
|
|
Karsten Hopp |
34a375 |
else
|
|
Karsten Hopp |
34a375 |
--- 2493,2499 ----
|
|
Karsten Hopp |
34a375 |
len = strtol(cp, NULL, 10);
|
|
Karsten Hopp |
34a375 |
args = (char_u *)cp;
|
|
Karsten Hopp |
34a375 |
pos = off2pos(buf->bufp, off);
|
|
Karsten Hopp |
34a375 |
! do_update = 1;
|
|
Karsten Hopp |
34a375 |
if (!pos)
|
|
Karsten Hopp |
34a375 |
nbdebug((" no such start pos in %s, %ld\n", cmd, off));
|
|
Karsten Hopp |
34a375 |
else
|
|
Karsten Hopp |
34a375 |
***************
|
|
Karsten Hopp |
34a375 |
*** 2555,2561 ****
|
|
Karsten Hopp |
34a375 |
inAtomic = 0;
|
|
Karsten Hopp |
34a375 |
if (needupdate)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
! doupdate = 1;
|
|
Karsten Hopp |
34a375 |
needupdate = 0;
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
/* =====================================================================*/
|
|
Karsten Hopp |
34a375 |
--- 2555,2561 ----
|
|
Karsten Hopp |
34a375 |
inAtomic = 0;
|
|
Karsten Hopp |
34a375 |
if (needupdate)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
! do_update = 1;
|
|
Karsten Hopp |
34a375 |
needupdate = 0;
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
/* =====================================================================*/
|
|
Karsten Hopp |
34a375 |
***************
|
|
Karsten Hopp |
34a375 |
*** 2636,2653 ****
|
|
Karsten Hopp |
34a375 |
* Unrecognized command is ignored.
|
|
Karsten Hopp |
34a375 |
*/
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
! if (inAtomic && doupdate)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
needupdate = 1;
|
|
Karsten Hopp |
34a375 |
! doupdate = 0;
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
/*
|
|
Karsten Hopp |
34a375 |
* Is this needed? I moved the netbeans_Xt_connect() later during startup
|
|
Karsten Hopp |
34a375 |
* and it may no longer be necessary. If its not needed then needupdate
|
|
Karsten Hopp |
34a375 |
! * and doupdate can also be removed.
|
|
Karsten Hopp |
34a375 |
*/
|
|
Karsten Hopp |
34a375 |
! if (buf != NULL && buf->initDone && doupdate)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
update_screen(NOT_VALID);
|
|
Karsten Hopp |
34a375 |
setcursor();
|
|
Karsten Hopp |
34a375 |
--- 2636,2653 ----
|
|
Karsten Hopp |
34a375 |
* Unrecognized command is ignored.
|
|
Karsten Hopp |
34a375 |
*/
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
! if (inAtomic && do_update)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
needupdate = 1;
|
|
Karsten Hopp |
34a375 |
! do_update = 0;
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
/*
|
|
Karsten Hopp |
34a375 |
* Is this needed? I moved the netbeans_Xt_connect() later during startup
|
|
Karsten Hopp |
34a375 |
* and it may no longer be necessary. If its not needed then needupdate
|
|
Karsten Hopp |
34a375 |
! * and do_update can also be removed.
|
|
Karsten Hopp |
34a375 |
*/
|
|
Karsten Hopp |
34a375 |
! if (buf != NULL && buf->initDone && do_update)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
update_screen(NOT_VALID);
|
|
Karsten Hopp |
34a375 |
setcursor();
|
|
Karsten Hopp |
34a375 |
*** ../vim-7.3.399/src/option.c 2012-01-04 19:34:32.000000000 +0100
|
|
Karsten Hopp |
34a375 |
--- src/option.c 2012-01-10 22:06:03.000000000 +0100
|
|
Karsten Hopp |
34a375 |
***************
|
|
Karsten Hopp |
34a375 |
*** 8584,8591 ****
|
|
Karsten Hopp |
34a375 |
long_u flags;
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
/* Careful: P_RCLR and P_RALL are a combination of other P_ flags */
|
|
Karsten Hopp |
34a375 |
! int clear = (flags & P_RCLR) == P_RCLR;
|
|
Karsten Hopp |
34a375 |
! int all = ((flags & P_RALL) == P_RALL || clear);
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
#ifdef FEAT_WINDOWS
|
|
Karsten Hopp |
34a375 |
if ((flags & P_RSTAT) || all) /* mark all status lines dirty */
|
|
Karsten Hopp |
34a375 |
--- 8584,8591 ----
|
|
Karsten Hopp |
34a375 |
long_u flags;
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
/* Careful: P_RCLR and P_RALL are a combination of other P_ flags */
|
|
Karsten Hopp |
34a375 |
! int doclear = (flags & P_RCLR) == P_RCLR;
|
|
Karsten Hopp |
34a375 |
! int all = ((flags & P_RALL) == P_RALL || doclear);
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
#ifdef FEAT_WINDOWS
|
|
Karsten Hopp |
34a375 |
if ((flags & P_RSTAT) || all) /* mark all status lines dirty */
|
|
Karsten Hopp |
34a375 |
***************
|
|
Karsten Hopp |
34a375 |
*** 8596,8602 ****
|
|
Karsten Hopp |
34a375 |
changed_window_setting();
|
|
Karsten Hopp |
34a375 |
if (flags & P_RBUF)
|
|
Karsten Hopp |
34a375 |
redraw_curbuf_later(NOT_VALID);
|
|
Karsten Hopp |
34a375 |
! if (clear)
|
|
Karsten Hopp |
34a375 |
redraw_all_later(CLEAR);
|
|
Karsten Hopp |
34a375 |
else if (all)
|
|
Karsten Hopp |
34a375 |
redraw_all_later(NOT_VALID);
|
|
Karsten Hopp |
34a375 |
--- 8596,8602 ----
|
|
Karsten Hopp |
34a375 |
changed_window_setting();
|
|
Karsten Hopp |
34a375 |
if (flags & P_RBUF)
|
|
Karsten Hopp |
34a375 |
redraw_curbuf_later(NOT_VALID);
|
|
Karsten Hopp |
34a375 |
! if (doclear)
|
|
Karsten Hopp |
34a375 |
redraw_all_later(CLEAR);
|
|
Karsten Hopp |
34a375 |
else if (all)
|
|
Karsten Hopp |
34a375 |
redraw_all_later(NOT_VALID);
|
|
Karsten Hopp |
34a375 |
*** ../vim-7.3.399/src/os_unix.c 2011-10-20 21:09:25.000000000 +0200
|
|
Karsten Hopp |
34a375 |
--- src/os_unix.c 2012-01-10 21:48:49.000000000 +0100
|
|
Karsten Hopp |
34a375 |
***************
|
|
Karsten Hopp |
34a375 |
*** 3884,3890 ****
|
|
Karsten Hopp |
34a375 |
char_u *p_shcf_copy = NULL;
|
|
Karsten Hopp |
34a375 |
int i;
|
|
Karsten Hopp |
34a375 |
char_u *p;
|
|
Karsten Hopp |
34a375 |
- char_u *s;
|
|
Karsten Hopp |
34a375 |
int inquote;
|
|
Karsten Hopp |
34a375 |
int pty_master_fd = -1; /* for pty's */
|
|
Karsten Hopp |
34a375 |
# ifdef FEAT_GUI
|
|
Karsten Hopp |
34a375 |
--- 3884,3889 ----
|
|
Karsten Hopp |
34a375 |
***************
|
|
Karsten Hopp |
34a375 |
*** 3963,3968 ****
|
|
Karsten Hopp |
34a375 |
--- 3962,3969 ----
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
if (cmd != NULL)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
+ char_u *s;
|
|
Karsten Hopp |
34a375 |
+
|
|
Karsten Hopp |
34a375 |
if (extra_shell_arg != NULL)
|
|
Karsten Hopp |
34a375 |
argv[argc++] = (char *)extra_shell_arg;
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
***************
|
|
Karsten Hopp |
34a375 |
*** 4325,4331 ****
|
|
Karsten Hopp |
34a375 |
linenr_T lnum = curbuf->b_op_start.lnum;
|
|
Karsten Hopp |
34a375 |
int written = 0;
|
|
Karsten Hopp |
34a375 |
char_u *lp = ml_get(lnum);
|
|
Karsten Hopp |
34a375 |
- char_u *s;
|
|
Karsten Hopp |
34a375 |
size_t l;
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
close(fromshell_fd);
|
|
Karsten Hopp |
34a375 |
--- 4326,4331 ----
|
|
Karsten Hopp |
34a375 |
***************
|
|
Karsten Hopp |
34a375 |
*** 4339,4345 ****
|
|
Karsten Hopp |
34a375 |
len = write(toshell_fd, "", (size_t)1);
|
|
Karsten Hopp |
34a375 |
else
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
! s = vim_strchr(lp + written, NL);
|
|
Karsten Hopp |
34a375 |
len = write(toshell_fd, (char *)lp + written,
|
|
Karsten Hopp |
34a375 |
s == NULL ? l
|
|
Karsten Hopp |
34a375 |
: (size_t)(s - (lp + written)));
|
|
Karsten Hopp |
34a375 |
--- 4339,4346 ----
|
|
Karsten Hopp |
34a375 |
len = write(toshell_fd, "", (size_t)1);
|
|
Karsten Hopp |
34a375 |
else
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
! char_u *s = vim_strchr(lp + written, NL);
|
|
Karsten Hopp |
34a375 |
!
|
|
Karsten Hopp |
34a375 |
len = write(toshell_fd, (char *)lp + written,
|
|
Karsten Hopp |
34a375 |
s == NULL ? l
|
|
Karsten Hopp |
34a375 |
: (size_t)(s - (lp + written)));
|
|
Karsten Hopp |
34a375 |
*** ../vim-7.3.399/src/screen.c 2012-01-10 12:42:05.000000000 +0100
|
|
Karsten Hopp |
34a375 |
--- src/screen.c 2012-01-10 22:06:51.000000000 +0100
|
|
Karsten Hopp |
34a375 |
***************
|
|
Karsten Hopp |
34a375 |
*** 7849,7863 ****
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
/*
|
|
Karsten Hopp |
34a375 |
* screen_valid - allocate screen buffers if size changed
|
|
Karsten Hopp |
34a375 |
! * If "clear" is TRUE: clear screen if it has been resized.
|
|
Karsten Hopp |
34a375 |
* Returns TRUE if there is a valid screen to write to.
|
|
Karsten Hopp |
34a375 |
* Returns FALSE when starting up and screen not initialized yet.
|
|
Karsten Hopp |
34a375 |
*/
|
|
Karsten Hopp |
34a375 |
int
|
|
Karsten Hopp |
34a375 |
! screen_valid(clear)
|
|
Karsten Hopp |
34a375 |
! int clear;
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
! screenalloc(clear); /* allocate screen buffers if size changed */
|
|
Karsten Hopp |
34a375 |
return (ScreenLines != NULL);
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
--- 7849,7863 ----
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
/*
|
|
Karsten Hopp |
34a375 |
* screen_valid - allocate screen buffers if size changed
|
|
Karsten Hopp |
34a375 |
! * If "doclear" is TRUE: clear screen if it has been resized.
|
|
Karsten Hopp |
34a375 |
* Returns TRUE if there is a valid screen to write to.
|
|
Karsten Hopp |
34a375 |
* Returns FALSE when starting up and screen not initialized yet.
|
|
Karsten Hopp |
34a375 |
*/
|
|
Karsten Hopp |
34a375 |
int
|
|
Karsten Hopp |
34a375 |
! screen_valid(doclear)
|
|
Karsten Hopp |
34a375 |
! int doclear;
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
! screenalloc(doclear); /* allocate screen buffers if size changed */
|
|
Karsten Hopp |
34a375 |
return (ScreenLines != NULL);
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
***************
|
|
Karsten Hopp |
34a375 |
*** 7872,7879 ****
|
|
Karsten Hopp |
34a375 |
* final size of the shell is needed.
|
|
Karsten Hopp |
34a375 |
*/
|
|
Karsten Hopp |
34a375 |
void
|
|
Karsten Hopp |
34a375 |
! screenalloc(clear)
|
|
Karsten Hopp |
34a375 |
! int clear;
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
int new_row, old_row;
|
|
Karsten Hopp |
34a375 |
#ifdef FEAT_GUI
|
|
Karsten Hopp |
34a375 |
--- 7872,7879 ----
|
|
Karsten Hopp |
34a375 |
* final size of the shell is needed.
|
|
Karsten Hopp |
34a375 |
*/
|
|
Karsten Hopp |
34a375 |
void
|
|
Karsten Hopp |
34a375 |
! screenalloc(doclear)
|
|
Karsten Hopp |
34a375 |
! int doclear;
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
int new_row, old_row;
|
|
Karsten Hopp |
34a375 |
#ifdef FEAT_GUI
|
|
Karsten Hopp |
34a375 |
***************
|
|
Karsten Hopp |
34a375 |
*** 8069,8075 ****
|
|
Karsten Hopp |
34a375 |
* (used when resizing the window at the "--more--" prompt or when
|
|
Karsten Hopp |
34a375 |
* executing an external command, for the GUI).
|
|
Karsten Hopp |
34a375 |
*/
|
|
Karsten Hopp |
34a375 |
! if (!clear)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
(void)vim_memset(new_ScreenLines + new_row * Columns,
|
|
Karsten Hopp |
34a375 |
' ', (size_t)Columns * sizeof(schar_T));
|
|
Karsten Hopp |
34a375 |
--- 8069,8075 ----
|
|
Karsten Hopp |
34a375 |
* (used when resizing the window at the "--more--" prompt or when
|
|
Karsten Hopp |
34a375 |
* executing an external command, for the GUI).
|
|
Karsten Hopp |
34a375 |
*/
|
|
Karsten Hopp |
34a375 |
! if (!doclear)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
(void)vim_memset(new_ScreenLines + new_row * Columns,
|
|
Karsten Hopp |
34a375 |
' ', (size_t)Columns * sizeof(schar_T));
|
|
Karsten Hopp |
34a375 |
***************
|
|
Karsten Hopp |
34a375 |
*** 8159,8165 ****
|
|
Karsten Hopp |
34a375 |
screen_Columns = Columns;
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
must_redraw = CLEAR; /* need to clear the screen later */
|
|
Karsten Hopp |
34a375 |
! if (clear)
|
|
Karsten Hopp |
34a375 |
screenclear2();
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
#ifdef FEAT_GUI
|
|
Karsten Hopp |
34a375 |
--- 8159,8165 ----
|
|
Karsten Hopp |
34a375 |
screen_Columns = Columns;
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
must_redraw = CLEAR; /* need to clear the screen later */
|
|
Karsten Hopp |
34a375 |
! if (doclear)
|
|
Karsten Hopp |
34a375 |
screenclear2();
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
#ifdef FEAT_GUI
|
|
Karsten Hopp |
34a375 |
*** ../vim-7.3.399/src/search.c 2011-10-04 17:00:13.000000000 +0200
|
|
Karsten Hopp |
34a375 |
--- src/search.c 2012-01-10 22:07:16.000000000 +0100
|
|
Karsten Hopp |
34a375 |
***************
|
|
Karsten Hopp |
34a375 |
*** 2402,2425 ****
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
if (vim_strchr(p, ';') != NULL) /* there may be comments */
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
! int instr = FALSE; /* inside of string */
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
p = line; /* scan from start */
|
|
Karsten Hopp |
34a375 |
while ((p = vim_strpbrk(p, (char_u *)"\";")) != NULL)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
if (*p == '"')
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
! if (instr)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
if (*(p - 1) != '\\') /* skip escaped quote */
|
|
Karsten Hopp |
34a375 |
! instr = FALSE;
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
else if (p == line || ((p - line) >= 2
|
|
Karsten Hopp |
34a375 |
/* skip #\" form */
|
|
Karsten Hopp |
34a375 |
&& *(p - 1) != '\\' && *(p - 2) != '#'))
|
|
Karsten Hopp |
34a375 |
! instr = TRUE;
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
! else if (!instr && ((p - line) < 2
|
|
Karsten Hopp |
34a375 |
|| (*(p - 1) != '\\' && *(p - 2) != '#')))
|
|
Karsten Hopp |
34a375 |
break; /* found! */
|
|
Karsten Hopp |
34a375 |
++p;
|
|
Karsten Hopp |
34a375 |
--- 2402,2425 ----
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
if (vim_strchr(p, ';') != NULL) /* there may be comments */
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
! int in_str = FALSE; /* inside of string */
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
p = line; /* scan from start */
|
|
Karsten Hopp |
34a375 |
while ((p = vim_strpbrk(p, (char_u *)"\";")) != NULL)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
if (*p == '"')
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
! if (in_str)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
if (*(p - 1) != '\\') /* skip escaped quote */
|
|
Karsten Hopp |
34a375 |
! in_str = FALSE;
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
else if (p == line || ((p - line) >= 2
|
|
Karsten Hopp |
34a375 |
/* skip #\" form */
|
|
Karsten Hopp |
34a375 |
&& *(p - 1) != '\\' && *(p - 2) != '#'))
|
|
Karsten Hopp |
34a375 |
! in_str = TRUE;
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
! else if (!in_str && ((p - line) < 2
|
|
Karsten Hopp |
34a375 |
|| (*(p - 1) != '\\' && *(p - 2) != '#')))
|
|
Karsten Hopp |
34a375 |
break; /* found! */
|
|
Karsten Hopp |
34a375 |
++p;
|
|
Karsten Hopp |
34a375 |
*** ../vim-7.3.399/src/spell.c 2012-01-10 16:28:41.000000000 +0100
|
|
Karsten Hopp |
34a375 |
--- src/spell.c 2012-01-10 22:09:23.000000000 +0100
|
|
Karsten Hopp |
34a375 |
***************
|
|
Karsten Hopp |
34a375 |
*** 5049,5055 ****
|
|
Karsten Hopp |
34a375 |
static int offset2bytes __ARGS((int nr, char_u *buf));
|
|
Karsten Hopp |
34a375 |
static int bytes2offset __ARGS((char_u **pp));
|
|
Karsten Hopp |
34a375 |
static void sug_write __ARGS((spellinfo_T *spin, char_u *fname));
|
|
Karsten Hopp |
34a375 |
! static void mkspell __ARGS((int fcount, char_u **fnames, int ascii, int overwrite, int added_word));
|
|
Karsten Hopp |
34a375 |
static void spell_message __ARGS((spellinfo_T *spin, char_u *str));
|
|
Karsten Hopp |
34a375 |
static void init_spellfile __ARGS((void));
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
--- 5049,5055 ----
|
|
Karsten Hopp |
34a375 |
static int offset2bytes __ARGS((int nr, char_u *buf));
|
|
Karsten Hopp |
34a375 |
static int bytes2offset __ARGS((char_u **pp));
|
|
Karsten Hopp |
34a375 |
static void sug_write __ARGS((spellinfo_T *spin, char_u *fname));
|
|
Karsten Hopp |
34a375 |
! static void mkspell __ARGS((int fcount, char_u **fnames, int ascii, int over_write, int added_word));
|
|
Karsten Hopp |
34a375 |
static void spell_message __ARGS((spellinfo_T *spin, char_u *str));
|
|
Karsten Hopp |
34a375 |
static void init_spellfile __ARGS((void));
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
***************
|
|
Karsten Hopp |
34a375 |
*** 9085,9095 ****
|
|
Karsten Hopp |
34a375 |
* and ".spl" is appended to make the output file name.
|
|
Karsten Hopp |
34a375 |
*/
|
|
Karsten Hopp |
34a375 |
static void
|
|
Karsten Hopp |
34a375 |
! mkspell(fcount, fnames, ascii, overwrite, added_word)
|
|
Karsten Hopp |
34a375 |
int fcount;
|
|
Karsten Hopp |
34a375 |
char_u **fnames;
|
|
Karsten Hopp |
34a375 |
int ascii; /* -ascii argument given */
|
|
Karsten Hopp |
34a375 |
! int overwrite; /* overwrite existing output file */
|
|
Karsten Hopp |
34a375 |
int added_word; /* invoked through "zg" */
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
char_u *fname = NULL;
|
|
Karsten Hopp |
34a375 |
--- 9085,9095 ----
|
|
Karsten Hopp |
34a375 |
* and ".spl" is appended to make the output file name.
|
|
Karsten Hopp |
34a375 |
*/
|
|
Karsten Hopp |
34a375 |
static void
|
|
Karsten Hopp |
34a375 |
! mkspell(fcount, fnames, ascii, over_write, added_word)
|
|
Karsten Hopp |
34a375 |
int fcount;
|
|
Karsten Hopp |
34a375 |
char_u **fnames;
|
|
Karsten Hopp |
34a375 |
int ascii; /* -ascii argument given */
|
|
Karsten Hopp |
34a375 |
! int over_write; /* overwrite existing output file */
|
|
Karsten Hopp |
34a375 |
int added_word; /* invoked through "zg" */
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
char_u *fname = NULL;
|
|
Karsten Hopp |
34a375 |
***************
|
|
Karsten Hopp |
34a375 |
*** 9173,9179 ****
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
/* Check for overwriting before doing things that may take a lot of
|
|
Karsten Hopp |
34a375 |
* time. */
|
|
Karsten Hopp |
34a375 |
! if (!overwrite && mch_stat((char *)wfname, &st) >= 0)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
EMSG(_(e_exists));
|
|
Karsten Hopp |
34a375 |
goto theend;
|
|
Karsten Hopp |
34a375 |
--- 9173,9179 ----
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
/* Check for overwriting before doing things that may take a lot of
|
|
Karsten Hopp |
34a375 |
* time. */
|
|
Karsten Hopp |
34a375 |
! if (!over_write && mch_stat((char *)wfname, &st) >= 0)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
EMSG(_(e_exists));
|
|
Karsten Hopp |
34a375 |
goto theend;
|
|
Karsten Hopp |
34a375 |
*** ../vim-7.3.399/src/syntax.c 2011-06-19 04:54:17.000000000 +0200
|
|
Karsten Hopp |
34a375 |
--- src/syntax.c 2012-01-10 22:10:23.000000000 +0100
|
|
Karsten Hopp |
34a375 |
***************
|
|
Karsten Hopp |
34a375 |
*** 4006,4022 ****
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
static void
|
|
Karsten Hopp |
34a375 |
! syn_list_flags(nl, flags, attr)
|
|
Karsten Hopp |
34a375 |
! struct name_list *nl;
|
|
Karsten Hopp |
34a375 |
int flags;
|
|
Karsten Hopp |
34a375 |
int attr;
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
int i;
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
! for (i = 0; nl[i].flag != 0; ++i)
|
|
Karsten Hopp |
34a375 |
! if (flags & nl[i].flag)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
! msg_puts_attr((char_u *)nl[i].name, attr);
|
|
Karsten Hopp |
34a375 |
msg_putchar(' ');
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
--- 4006,4022 ----
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
static void
|
|
Karsten Hopp |
34a375 |
! syn_list_flags(nlist, flags, attr)
|
|
Karsten Hopp |
34a375 |
! struct name_list *nlist;
|
|
Karsten Hopp |
34a375 |
int flags;
|
|
Karsten Hopp |
34a375 |
int attr;
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
int i;
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
! for (i = 0; nlist[i].flag != 0; ++i)
|
|
Karsten Hopp |
34a375 |
! if (flags & nlist[i].flag)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
! msg_puts_attr((char_u *)nlist[i].name, attr);
|
|
Karsten Hopp |
34a375 |
msg_putchar(' ');
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
*** ../vim-7.3.399/src/tag.c 2011-12-14 14:15:12.000000000 +0100
|
|
Karsten Hopp |
34a375 |
--- src/tag.c 2012-01-10 21:51:05.000000000 +0100
|
|
Karsten Hopp |
34a375 |
***************
|
|
Karsten Hopp |
34a375 |
*** 1353,1359 ****
|
|
Karsten Hopp |
34a375 |
int match_count = 0; /* number of matches found */
|
|
Karsten Hopp |
34a375 |
char_u **matches;
|
|
Karsten Hopp |
34a375 |
int mtt;
|
|
Karsten Hopp |
34a375 |
- int len;
|
|
Karsten Hopp |
34a375 |
int help_save;
|
|
Karsten Hopp |
34a375 |
#ifdef FEAT_MULTI_LANG
|
|
Karsten Hopp |
34a375 |
int help_pri = 0;
|
|
Karsten Hopp |
34a375 |
--- 1353,1358 ----
|
|
Karsten Hopp |
34a375 |
***************
|
|
Karsten Hopp |
34a375 |
*** 2235,2240 ****
|
|
Karsten Hopp |
34a375 |
--- 2234,2241 ----
|
|
Karsten Hopp |
34a375 |
*/
|
|
Karsten Hopp |
34a375 |
if (ga_grow(&ga_match[mtt], 1) == OK)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
+ int len;
|
|
Karsten Hopp |
34a375 |
+
|
|
Karsten Hopp |
34a375 |
if (help_only)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
#ifdef FEAT_MULTI_LANG
|
|
Karsten Hopp |
34a375 |
*** ../vim-7.3.399/src/window.c 2011-12-30 15:01:55.000000000 +0100
|
|
Karsten Hopp |
34a375 |
--- src/window.c 2012-01-10 22:11:41.000000000 +0100
|
|
Karsten Hopp |
34a375 |
***************
|
|
Karsten Hopp |
34a375 |
*** 683,701 ****
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
/*
|
|
Karsten Hopp |
34a375 |
! * When "newwin" is NULL: split the current window in two.
|
|
Karsten Hopp |
34a375 |
! * When "newwin" is not NULL: insert this window at the far
|
|
Karsten Hopp |
34a375 |
* top/left/right/bottom.
|
|
Karsten Hopp |
34a375 |
* return FAIL for failure, OK otherwise
|
|
Karsten Hopp |
34a375 |
*/
|
|
Karsten Hopp |
34a375 |
int
|
|
Karsten Hopp |
34a375 |
! win_split_ins(size, flags, newwin, dir)
|
|
Karsten Hopp |
34a375 |
int size;
|
|
Karsten Hopp |
34a375 |
int flags;
|
|
Karsten Hopp |
34a375 |
! win_T *newwin;
|
|
Karsten Hopp |
34a375 |
int dir;
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
! win_T *wp = newwin;
|
|
Karsten Hopp |
34a375 |
win_T *oldwin;
|
|
Karsten Hopp |
34a375 |
int new_size = size;
|
|
Karsten Hopp |
34a375 |
int i;
|
|
Karsten Hopp |
34a375 |
--- 683,701 ----
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
/*
|
|
Karsten Hopp |
34a375 |
! * When "new_wp" is NULL: split the current window in two.
|
|
Karsten Hopp |
34a375 |
! * When "new_wp" is not NULL: insert this window at the far
|
|
Karsten Hopp |
34a375 |
* top/left/right/bottom.
|
|
Karsten Hopp |
34a375 |
* return FAIL for failure, OK otherwise
|
|
Karsten Hopp |
34a375 |
*/
|
|
Karsten Hopp |
34a375 |
int
|
|
Karsten Hopp |
34a375 |
! win_split_ins(size, flags, new_wp, dir)
|
|
Karsten Hopp |
34a375 |
int size;
|
|
Karsten Hopp |
34a375 |
int flags;
|
|
Karsten Hopp |
34a375 |
! win_T *new_wp;
|
|
Karsten Hopp |
34a375 |
int dir;
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
! win_T *wp = new_wp;
|
|
Karsten Hopp |
34a375 |
win_T *oldwin;
|
|
Karsten Hopp |
34a375 |
int new_size = size;
|
|
Karsten Hopp |
34a375 |
int i;
|
|
Karsten Hopp |
34a375 |
***************
|
|
Karsten Hopp |
34a375 |
*** 718,724 ****
|
|
Karsten Hopp |
34a375 |
/* add a status line when p_ls == 1 and splitting the first window */
|
|
Karsten Hopp |
34a375 |
if (lastwin == firstwin && p_ls == 1 && oldwin->w_status_height == 0)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
! if (oldwin->w_height <= p_wmh && newwin == NULL)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
EMSG(_(e_noroom));
|
|
Karsten Hopp |
34a375 |
return FAIL;
|
|
Karsten Hopp |
34a375 |
--- 718,724 ----
|
|
Karsten Hopp |
34a375 |
/* add a status line when p_ls == 1 and splitting the first window */
|
|
Karsten Hopp |
34a375 |
if (lastwin == firstwin && p_ls == 1 && oldwin->w_status_height == 0)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
! if (oldwin->w_height <= p_wmh && new_wp == NULL)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
EMSG(_(e_noroom));
|
|
Karsten Hopp |
34a375 |
return FAIL;
|
|
Karsten Hopp |
34a375 |
***************
|
|
Karsten Hopp |
34a375 |
*** 751,757 ****
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
else
|
|
Karsten Hopp |
34a375 |
available = oldwin->w_width;
|
|
Karsten Hopp |
34a375 |
! if (available < needed && newwin == NULL)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
EMSG(_(e_noroom));
|
|
Karsten Hopp |
34a375 |
return FAIL;
|
|
Karsten Hopp |
34a375 |
--- 751,757 ----
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
else
|
|
Karsten Hopp |
34a375 |
available = oldwin->w_width;
|
|
Karsten Hopp |
34a375 |
! if (available < needed && new_wp == NULL)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
EMSG(_(e_noroom));
|
|
Karsten Hopp |
34a375 |
return FAIL;
|
|
Karsten Hopp |
34a375 |
***************
|
|
Karsten Hopp |
34a375 |
*** 815,821 ****
|
|
Karsten Hopp |
34a375 |
available = oldwin->w_height;
|
|
Karsten Hopp |
34a375 |
needed += p_wmh;
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
! if (available < needed && newwin == NULL)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
EMSG(_(e_noroom));
|
|
Karsten Hopp |
34a375 |
return FAIL;
|
|
Karsten Hopp |
34a375 |
--- 815,821 ----
|
|
Karsten Hopp |
34a375 |
available = oldwin->w_height;
|
|
Karsten Hopp |
34a375 |
needed += p_wmh;
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
! if (available < needed && new_wp == NULL)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
EMSG(_(e_noroom));
|
|
Karsten Hopp |
34a375 |
return FAIL;
|
|
Karsten Hopp |
34a375 |
***************
|
|
Karsten Hopp |
34a375 |
*** 888,907 ****
|
|
Karsten Hopp |
34a375 |
p_sb))))
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
/* new window below/right of current one */
|
|
Karsten Hopp |
34a375 |
! if (newwin == NULL)
|
|
Karsten Hopp |
34a375 |
wp = win_alloc(oldwin, FALSE);
|
|
Karsten Hopp |
34a375 |
else
|
|
Karsten Hopp |
34a375 |
win_append(oldwin, wp);
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
else
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
! if (newwin == NULL)
|
|
Karsten Hopp |
34a375 |
wp = win_alloc(oldwin->w_prev, FALSE);
|
|
Karsten Hopp |
34a375 |
else
|
|
Karsten Hopp |
34a375 |
win_append(oldwin->w_prev, wp);
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
! if (newwin == NULL)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
if (wp == NULL)
|
|
Karsten Hopp |
34a375 |
return FAIL;
|
|
Karsten Hopp |
34a375 |
--- 888,907 ----
|
|
Karsten Hopp |
34a375 |
p_sb))))
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
/* new window below/right of current one */
|
|
Karsten Hopp |
34a375 |
! if (new_wp == NULL)
|
|
Karsten Hopp |
34a375 |
wp = win_alloc(oldwin, FALSE);
|
|
Karsten Hopp |
34a375 |
else
|
|
Karsten Hopp |
34a375 |
win_append(oldwin, wp);
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
else
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
! if (new_wp == NULL)
|
|
Karsten Hopp |
34a375 |
wp = win_alloc(oldwin->w_prev, FALSE);
|
|
Karsten Hopp |
34a375 |
else
|
|
Karsten Hopp |
34a375 |
win_append(oldwin->w_prev, wp);
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
! if (new_wp == NULL)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
if (wp == NULL)
|
|
Karsten Hopp |
34a375 |
return FAIL;
|
|
Karsten Hopp |
34a375 |
***************
|
|
Karsten Hopp |
34a375 |
*** 972,981 ****
|
|
Karsten Hopp |
34a375 |
frp->fr_parent = curfrp;
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
! if (newwin == NULL)
|
|
Karsten Hopp |
34a375 |
frp = wp->w_frame;
|
|
Karsten Hopp |
34a375 |
else
|
|
Karsten Hopp |
34a375 |
! frp = newwin->w_frame;
|
|
Karsten Hopp |
34a375 |
frp->fr_parent = curfrp->fr_parent;
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
/* Insert the new frame at the right place in the frame list. */
|
|
Karsten Hopp |
34a375 |
--- 972,981 ----
|
|
Karsten Hopp |
34a375 |
frp->fr_parent = curfrp;
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
! if (new_wp == NULL)
|
|
Karsten Hopp |
34a375 |
frp = wp->w_frame;
|
|
Karsten Hopp |
34a375 |
else
|
|
Karsten Hopp |
34a375 |
! frp = new_wp->w_frame;
|
|
Karsten Hopp |
34a375 |
frp->fr_parent = curfrp->fr_parent;
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
/* Insert the new frame at the right place in the frame list. */
|
|
Karsten Hopp |
34a375 |
***************
|
|
Karsten Hopp |
34a375 |
*** 4284,4302 ****
|
|
Karsten Hopp |
34a375 |
win_T *after UNUSED;
|
|
Karsten Hopp |
34a375 |
int hidden UNUSED;
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
! win_T *newwin;
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
/*
|
|
Karsten Hopp |
34a375 |
* allocate window structure and linesizes arrays
|
|
Karsten Hopp |
34a375 |
*/
|
|
Karsten Hopp |
34a375 |
! newwin = (win_T *)alloc_clear((unsigned)sizeof(win_T));
|
|
Karsten Hopp |
34a375 |
! if (newwin != NULL && win_alloc_lines(newwin) == FAIL)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
! vim_free(newwin);
|
|
Karsten Hopp |
34a375 |
! newwin = NULL;
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
! if (newwin != NULL)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
#ifdef FEAT_AUTOCMD
|
|
Karsten Hopp |
34a375 |
/* Don't execute autocommands while the window is not properly
|
|
Karsten Hopp |
34a375 |
--- 4284,4302 ----
|
|
Karsten Hopp |
34a375 |
win_T *after UNUSED;
|
|
Karsten Hopp |
34a375 |
int hidden UNUSED;
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
! win_T *new_wp;
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
/*
|
|
Karsten Hopp |
34a375 |
* allocate window structure and linesizes arrays
|
|
Karsten Hopp |
34a375 |
*/
|
|
Karsten Hopp |
34a375 |
! new_wp = (win_T *)alloc_clear((unsigned)sizeof(win_T));
|
|
Karsten Hopp |
34a375 |
! if (new_wp != NULL && win_alloc_lines(new_wp) == FAIL)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
! vim_free(new_wp);
|
|
Karsten Hopp |
34a375 |
! new_wp = NULL;
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
! if (new_wp != NULL)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
#ifdef FEAT_AUTOCMD
|
|
Karsten Hopp |
34a375 |
/* Don't execute autocommands while the window is not properly
|
|
Karsten Hopp |
34a375 |
***************
|
|
Karsten Hopp |
34a375 |
*** 4309,4361 ****
|
|
Karsten Hopp |
34a375 |
*/
|
|
Karsten Hopp |
34a375 |
#ifdef FEAT_WINDOWS
|
|
Karsten Hopp |
34a375 |
if (!hidden)
|
|
Karsten Hopp |
34a375 |
! win_append(after, newwin);
|
|
Karsten Hopp |
34a375 |
#endif
|
|
Karsten Hopp |
34a375 |
#ifdef FEAT_VERTSPLIT
|
|
Karsten Hopp |
34a375 |
! newwin->w_wincol = 0;
|
|
Karsten Hopp |
34a375 |
! newwin->w_width = Columns;
|
|
Karsten Hopp |
34a375 |
#endif
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
/* position the display and the cursor at the top of the file. */
|
|
Karsten Hopp |
34a375 |
! newwin->w_topline = 1;
|
|
Karsten Hopp |
34a375 |
#ifdef FEAT_DIFF
|
|
Karsten Hopp |
34a375 |
! newwin->w_topfill = 0;
|
|
Karsten Hopp |
34a375 |
#endif
|
|
Karsten Hopp |
34a375 |
! newwin->w_botline = 2;
|
|
Karsten Hopp |
34a375 |
! newwin->w_cursor.lnum = 1;
|
|
Karsten Hopp |
34a375 |
#ifdef FEAT_SCROLLBIND
|
|
Karsten Hopp |
34a375 |
! newwin->w_scbind_pos = 1;
|
|
Karsten Hopp |
34a375 |
#endif
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
/* We won't calculate w_fraction until resizing the window */
|
|
Karsten Hopp |
34a375 |
! newwin->w_fraction = 0;
|
|
Karsten Hopp |
34a375 |
! newwin->w_prev_fraction_row = -1;
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
#ifdef FEAT_GUI
|
|
Karsten Hopp |
34a375 |
if (gui.in_use)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
! gui_create_scrollbar(&newwin->w_scrollbars[SBAR_LEFT],
|
|
Karsten Hopp |
34a375 |
! SBAR_LEFT, newwin);
|
|
Karsten Hopp |
34a375 |
! gui_create_scrollbar(&newwin->w_scrollbars[SBAR_RIGHT],
|
|
Karsten Hopp |
34a375 |
! SBAR_RIGHT, newwin);
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
#endif
|
|
Karsten Hopp |
34a375 |
#ifdef FEAT_EVAL
|
|
Karsten Hopp |
34a375 |
/* init w: variables */
|
|
Karsten Hopp |
34a375 |
! init_var_dict(&newwin->w_vars, &newwin->w_winvar);
|
|
Karsten Hopp |
34a375 |
#endif
|
|
Karsten Hopp |
34a375 |
#ifdef FEAT_FOLDING
|
|
Karsten Hopp |
34a375 |
! foldInitWin(newwin);
|
|
Karsten Hopp |
34a375 |
#endif
|
|
Karsten Hopp |
34a375 |
#ifdef FEAT_AUTOCMD
|
|
Karsten Hopp |
34a375 |
unblock_autocmds();
|
|
Karsten Hopp |
34a375 |
#endif
|
|
Karsten Hopp |
34a375 |
#ifdef FEAT_SEARCH_EXTRA
|
|
Karsten Hopp |
34a375 |
! newwin->w_match_head = NULL;
|
|
Karsten Hopp |
34a375 |
! newwin->w_next_match_id = 4;
|
|
Karsten Hopp |
34a375 |
#endif
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
! return newwin;
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
#if defined(FEAT_WINDOWS) || defined(PROTO)
|
|
Karsten Hopp |
34a375 |
--- 4309,4361 ----
|
|
Karsten Hopp |
34a375 |
*/
|
|
Karsten Hopp |
34a375 |
#ifdef FEAT_WINDOWS
|
|
Karsten Hopp |
34a375 |
if (!hidden)
|
|
Karsten Hopp |
34a375 |
! win_append(after, new_wp);
|
|
Karsten Hopp |
34a375 |
#endif
|
|
Karsten Hopp |
34a375 |
#ifdef FEAT_VERTSPLIT
|
|
Karsten Hopp |
34a375 |
! new_wp->w_wincol = 0;
|
|
Karsten Hopp |
34a375 |
! new_wp->w_width = Columns;
|
|
Karsten Hopp |
34a375 |
#endif
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
/* position the display and the cursor at the top of the file. */
|
|
Karsten Hopp |
34a375 |
! new_wp->w_topline = 1;
|
|
Karsten Hopp |
34a375 |
#ifdef FEAT_DIFF
|
|
Karsten Hopp |
34a375 |
! new_wp->w_topfill = 0;
|
|
Karsten Hopp |
34a375 |
#endif
|
|
Karsten Hopp |
34a375 |
! new_wp->w_botline = 2;
|
|
Karsten Hopp |
34a375 |
! new_wp->w_cursor.lnum = 1;
|
|
Karsten Hopp |
34a375 |
#ifdef FEAT_SCROLLBIND
|
|
Karsten Hopp |
34a375 |
! new_wp->w_scbind_pos = 1;
|
|
Karsten Hopp |
34a375 |
#endif
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
/* We won't calculate w_fraction until resizing the window */
|
|
Karsten Hopp |
34a375 |
! new_wp->w_fraction = 0;
|
|
Karsten Hopp |
34a375 |
! new_wp->w_prev_fraction_row = -1;
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
#ifdef FEAT_GUI
|
|
Karsten Hopp |
34a375 |
if (gui.in_use)
|
|
Karsten Hopp |
34a375 |
{
|
|
Karsten Hopp |
34a375 |
! gui_create_scrollbar(&new_wp->w_scrollbars[SBAR_LEFT],
|
|
Karsten Hopp |
34a375 |
! SBAR_LEFT, new_wp);
|
|
Karsten Hopp |
34a375 |
! gui_create_scrollbar(&new_wp->w_scrollbars[SBAR_RIGHT],
|
|
Karsten Hopp |
34a375 |
! SBAR_RIGHT, new_wp);
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
#endif
|
|
Karsten Hopp |
34a375 |
#ifdef FEAT_EVAL
|
|
Karsten Hopp |
34a375 |
/* init w: variables */
|
|
Karsten Hopp |
34a375 |
! init_var_dict(&new_wp->w_vars, &new_wp->w_winvar);
|
|
Karsten Hopp |
34a375 |
#endif
|
|
Karsten Hopp |
34a375 |
#ifdef FEAT_FOLDING
|
|
Karsten Hopp |
34a375 |
! foldInitWin(new_wp);
|
|
Karsten Hopp |
34a375 |
#endif
|
|
Karsten Hopp |
34a375 |
#ifdef FEAT_AUTOCMD
|
|
Karsten Hopp |
34a375 |
unblock_autocmds();
|
|
Karsten Hopp |
34a375 |
#endif
|
|
Karsten Hopp |
34a375 |
#ifdef FEAT_SEARCH_EXTRA
|
|
Karsten Hopp |
34a375 |
! new_wp->w_match_head = NULL;
|
|
Karsten Hopp |
34a375 |
! new_wp->w_next_match_id = 4;
|
|
Karsten Hopp |
34a375 |
#endif
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
! return new_wp;
|
|
Karsten Hopp |
34a375 |
}
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
#if defined(FEAT_WINDOWS) || defined(PROTO)
|
|
Karsten Hopp |
34a375 |
*** ../vim-7.3.399/src/version.c 2012-01-10 18:37:53.000000000 +0100
|
|
Karsten Hopp |
34a375 |
--- src/version.c 2012-01-10 22:23:10.000000000 +0100
|
|
Karsten Hopp |
34a375 |
***************
|
|
Karsten Hopp |
34a375 |
*** 716,717 ****
|
|
Karsten Hopp |
34a375 |
--- 716,719 ----
|
|
Karsten Hopp |
34a375 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
34a375 |
+ /**/
|
|
Karsten Hopp |
34a375 |
+ 400,
|
|
Karsten Hopp |
34a375 |
/**/
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
--
|
|
Karsten Hopp |
34a375 |
A parent can be arrested if his child cannot hold back a burp during a church
|
|
Karsten Hopp |
34a375 |
service.
|
|
Karsten Hopp |
34a375 |
[real standing law in Nebraska, United States of America]
|
|
Karsten Hopp |
34a375 |
|
|
Karsten Hopp |
34a375 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
34a375 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
34a375 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
34a375 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|