0
0
mirror of https://github.com/vim/vim.git synced 2025-07-04 23:07:33 -04:00

updated for version 7.0080

This commit is contained in:
Bram Moolenaar 2005-06-05 21:54:54 +00:00
parent 75c50c46a6
commit 50cde8273e
7 changed files with 20 additions and 25 deletions

View File

@ -25,8 +25,8 @@ Other GUI documentation:
First you must make sure you actually have a version of Vim with the GUI code First you must make sure you actually have a version of Vim with the GUI code
included. You can check this with the ":version" command, it should include included. You can check this with the ":version" command, it should include
"+GUI_Athena", "+GUI_BeOS", "+GUI_GTK", "+GUI_KDE", "+GUI_Motif" or "+GUI_Athena", "+GUI_GTK", "+GUI_KDE", "+GUI_Motif" or "MS-Windows ... bit
"MS-Windows ... bit GUI version". GUI version".
How to start the GUI depends on the system used. Mostly you can run the How to start the GUI depends on the system used. Mostly you can run the
GUI version of Vim with: GUI version of Vim with:

View File

@ -165,7 +165,7 @@ Stuff that does not work yet:
when it flashes) when it flashes)
The $VIM directory *beos-vimdir* 6. The $VIM directory *beos-vimdir*
$VIM is the symbolic name for the place where Vims support files are stored. $VIM is the symbolic name for the place where Vims support files are stored.
The default value for $VIM is set at compile time and can be determined with > The default value for $VIM is set at compile time and can be determined with >

Binary file not shown.

View File

@ -2450,7 +2450,7 @@ buflist_list(eap)
else else
home_replace(buf, buf->b_fname, NameBuff, MAXPATHL, TRUE); home_replace(buf, buf->b_fname, NameBuff, MAXPATHL, TRUE);
vim_snprintf((char *)IObuff, IOSIZE - 20, "%3d%c%c%c%c%c \"%s\"", len = vim_snprintf((char *)IObuff, IOSIZE - 20, "%3d%c%c%c%c%c \"%s\"",
buf->b_fnum, buf->b_fnum,
buf->b_p_bl ? ' ' : 'u', buf->b_p_bl ? ' ' : 'u',
buf == curbuf ? '%' : buf == curbuf ? '%' :
@ -2463,7 +2463,6 @@ buflist_list(eap)
NameBuff); NameBuff);
/* put "line 999" in column 40 or after the file name */ /* put "line 999" in column 40 or after the file name */
len = STRLEN(IObuff);
i = 40 - vim_strsize(IObuff); i = 40 - vim_strsize(IObuff);
do do
{ {

View File

@ -152,17 +152,6 @@ prefix = `os.path.expanduser(prefix)`
GUI_TARGETS = installglinks GUI_TARGETS = installglinks
GUI_MAN_TARGETS = installghelplinks GUI_MAN_TARGETS = installghelplinks
GUI_TESTTARGET = gui GUI_TESTTARGET = gui
BEOSGUI
GUI_SRC = gui.c gui_beos.cc pty.c
GUI_OBJ =
GUI_DEFS = -DFEAT_GUI_BEOS
GUI_IPATH =
GUI_LIBS_DIR =
GUI_LIBS1 = -lbe -lroot
GUI_LIBS2 =
GUI_TARGETS = installglinks
GUI_MAN_TARGETS = installghelplinks
GUI_TESTTARGET = gui
PHOTONGUI PHOTONGUI
GUI_SRC = gui.c gui_photon.c pty.c GUI_SRC = gui.c gui_photon.c pty.c
GUI_OBJ = GUI_OBJ =

View File

@ -1445,7 +1445,6 @@ removable(name)
char_u *p; char_u *p;
char_u part[51]; char_u part[51];
int retval = FALSE; int retval = FALSE;
int n;
name = home_replace_save(NULL, name); name = home_replace_save(NULL, name);
if (name != NULL) if (name != NULL)
@ -1453,14 +1452,11 @@ removable(name)
for (p = p_viminfo; *p; ) for (p = p_viminfo; *p; )
{ {
copy_option_part(&p, part, 51, ", "); copy_option_part(&p, part, 51, ", ");
if (part[0] == 'r') if (part[0] == 'r'
&& MB_STRNICMP(part + 1, name, STRLEN(part + 1)) == 0)
{ {
n = STRLEN(part + 1); retval = TRUE;
if (MB_STRNICMP(part + 1, name, n) == 0) break;
{
retval = TRUE;
break;
}
} }
} }
vim_free(name); vim_free(name);

View File

@ -353,7 +353,7 @@ find_word(mip, keepcap)
char_u *p; char_u *p;
#endif #endif
int res; int res;
int valid; int valid = FALSE;
slang_T *slang = mip->mi_lp->lp_slang; slang_T *slang = mip->mi_lp->lp_slang;
unsigned flags; unsigned flags;
char_u *byts; char_u *byts;
@ -1328,6 +1328,7 @@ typedef struct spellinfo_S
int si_ascii; /* handling only ASCII words */ int si_ascii; /* handling only ASCII words */
int si_region; /* region mask */ int si_region; /* region mask */
vimconv_T si_conv; /* for conversion to 'encoding' */ vimconv_T si_conv; /* for conversion to 'encoding' */
int si_memtot; /* runtime memory used */
} spellinfo_T; } spellinfo_T;
static afffile_T *spell_read_aff __ARGS((char_u *fname, spellinfo_T *spin)); static afffile_T *spell_read_aff __ARGS((char_u *fname, spellinfo_T *spin));
@ -1460,6 +1461,10 @@ spell_read_aff(fname, spin)
smsg((char_u *)_("Conversion in %s not supported: from %s to %s"), smsg((char_u *)_("Conversion in %s not supported: from %s to %s"),
fname, aff->af_enc, p_enc); fname, aff->af_enc, p_enc);
} }
else if (STRCMP(items[0], "NOSPLITSUGS") == 0 && itemcnt == 1)
{
/* ignored */
}
else if (STRCMP(items[0], "TRY") == 0 && itemcnt == 2 else if (STRCMP(items[0], "TRY") == 0 && itemcnt == 2
&& aff->af_try == NULL) && aff->af_try == NULL)
{ {
@ -2420,6 +2425,8 @@ write_vim_spell(fname, spin, regcount, regchars)
* TODO. Only write a zero length for now. */ * TODO. Only write a zero length for now. */
put_bytes(fd, 0L, 4); /* <suggestlen> */ put_bytes(fd, 0L, 4); /* <suggestlen> */
spin->si_memtot = 0;
/* /*
* <LWORDTREE> <KWORDTREE> * <LWORDTREE> <KWORDTREE>
*/ */
@ -2434,6 +2441,7 @@ write_vim_spell(fname, spin, regcount, regchars)
/* number of nodes in 4 bytes */ /* number of nodes in 4 bytes */
put_bytes(fd, (long_u)nodecount, 4); /* <nodecount> */ put_bytes(fd, (long_u)nodecount, 4); /* <nodecount> */
spin->si_memtot += nodecount + nodecount * sizeof(int);
/* Write the nodes. */ /* Write the nodes. */
(void)put_tree(fd, tree, 0, regionmask); (void)put_tree(fd, tree, 0, regionmask);
@ -2699,6 +2707,9 @@ ex_mkspell(eap)
out_flush(); out_flush();
write_vim_spell(wfname, &spin, fcount - 1, region_name); write_vim_spell(wfname, &spin, fcount - 1, region_name);
MSG(_("Done!")); MSG(_("Done!"));
smsg((char_u *)_("Estimated runtime memory use: %d bytes"),
spin.si_memtot);
out_flush(); out_flush();
} }