Skip to content

Commit

Permalink
Fix a few compiler warnings.
Browse files Browse the repository at this point in the history
--HG--
branch : vim73
  • Loading branch information
brammool committed Jul 14, 2010
1 parent ca048d5 commit 74a0f28
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 11 deletions.
12 changes: 5 additions & 7 deletions runtime/doc/todo.txt
Expand Up @@ -1098,7 +1098,6 @@ Vim 7.3:
- Conceal feature: no update when moving to another window. (Dominique Pelle,
2010 Jul 5) Vince will look into it.
Patches to possibly include:
- Mac: console clipboard support. (Bjorn Winckler, 2010 Jul 12)
- Win32: patch for better font scaling. (George Reilly, 2009 Mar 26)
- Patch for completion of ":find" arguments. (Nazri Ramliy, 2009 Feb 22, 26)
8 For ":find" and ":sfind" expand files found in 'path'.
Expand Down Expand Up @@ -1154,10 +1153,6 @@ Needs some work:
You can already yank lines and use :@" to execute them.
Most of do_source() would not be used, need a new function.
It's easy when not doing breakpoints or profiling.
Probably not now:
- Use timestamps for undo, so that a version a certain time ago can be found
and info before some time/date can be flushed. 'undopersist' gives maximum
time to keep undo: "3h", "1d", "2w", "1y", etc.


More patches:
Expand Down Expand Up @@ -3954,6 +3949,11 @@ Searching:
Undo:
9 After undo/redo, in the message show whether the buffer is modified or
not.
8 Use timestamps for undo, so that a version a certain time ago can be found
and info before some time/date can be flushed. 'undopersist' gives maximum
time to keep undo: "3h", "1d", "2w", "1y", etc.
8 Search for pattern in undo tree, showing when it happened and the text
state, so that you can jump to it.
8 Undo tree: visually show the tree somehow (Damian Conway)
Show only the leaves, indicating how many changed from the branch and the
timestamp?
Expand All @@ -3964,8 +3964,6 @@ Undo:
was changed outside of Vim.
Would require doing a diff between the buffer text and the file and
storing the differences.
8 Search for pattern in undo tree, showing when it happened and the text
state, so that you can jump to it.
- Make it possible to undo all the commands from a mapping, including a
trailing unfinished command, e.g. for ":map K iX^[r".
- When accidentally hitting "R" instead of Ctrl-R, further Ctrl-R is not
Expand Down
3 changes: 2 additions & 1 deletion src/ops.c
Expand Up @@ -4155,7 +4155,8 @@ do_join(count, insert_space, save_undo)
char_u *cend;
char_u *newp;
char_u *spaces; /* number of spaces inserte before a line */
int endcurr1, endcurr2;
int endcurr1 = NUL;
int endcurr2 = NUL;
int currsize = 0; /* size of the current line */
int sumsize = 0; /* size of the long new line */
linenr_T t;
Expand Down
6 changes: 3 additions & 3 deletions src/os_macosx.m
Expand Up @@ -686,7 +686,7 @@
n = [mstring replaceOccurrencesOfString:@"\x0d" withString:@"\x0a"
options:0 range:range];
}

/* Scan for newline character to decide whether the string should be
* pasted line-wise or character-wise.
*/
Expand Down Expand Up @@ -734,7 +734,7 @@
cbd->owned = TRUE;
clip_get_selection(cbd);
cbd->owned = FALSE;

/* Get the text to put on the pasteboard. */
long_u llen = 0; char_u *str = 0;
int motion_type = clip_convert_selection(&str, &llen, cbd);
Expand Down Expand Up @@ -771,7 +771,7 @@
[pb setPropertyList:plist forType:VimPboardType];

[pb setString:string forType:NSStringPboardType];

[string release];
}

Expand Down
7 changes: 7 additions & 0 deletions src/proto.h
Expand Up @@ -277,6 +277,13 @@ extern char *vim_SelFile __ARGS((Widget toplevel, char *prompt, char *init_path,
#ifdef MACOS_CONVERT
# include "os_mac_conv.pro"
#endif
#if defined(MACOS_X_UNIX) && defined(FEAT_CLIPBOARD) && !defined(FEAT_GUI)
/* functions in os_macosx.m */
void clip_mch_lose_selection(VimClipboard *cbd);
int clip_mch_own_selection(VimClipboard *cbd);
void clip_mch_request_selection(VimClipboard *cbd);
void clip_mch_set_selection(VimClipboard *cbd);
#endif

#ifdef __BORLANDC__
# define _PROTO_H
Expand Down

0 comments on commit 74a0f28

Please sign in to comment.