Bugzilla – Attachment 73785 Details for
Bug 112930
vim: seqfaults while svn commits
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
IDP Log In
|
Forgot Password
[patch]
suggested fix
vim64-svn-crash.patch (text/plain), 1.13 KB, created by
Juergen Weigert
on 2006-03-18 00:21:29 UTC
(
hide
)
Description:
suggested fix
Filename:
MIME Type:
Creator:
Juergen Weigert
Created:
2006-03-18 00:21:29 UTC
Size:
1.13 KB
patch
obsolete
># misc1.c ins_char_bytes() does: ># mch_memmove (..., ..., linelen - col - oldlen) ># copies a negative length, when col = curwin->w_cursor.col is > linelen. ># this happens after a -c command warped the cursor into the first line, ># from a position set by the viminfo file, where the column was larger than the ># first line now has characters. ># Such warping updates lnum, but does not affect col. ># ># We fix this by warping the cursor to 0,0 when doing -c commands. > >--- vim64/src/main.c.orig 2005-02-15 14:09:15.000000000 +0100 >+++ vim64/src/main.c 2006-03-18 01:21:17.000000000 +0100 >@@ -1305,6 +1305,7 @@ > if (p_commands > 0) > { > curwin->w_cursor.lnum = 0; /* just in case.. */ >+ curwin->w_cursor.col = 0; /* avoid suse bugzilla #112930, jw@suse.de */ > sourcing_name = (char_u *)_("pre-vimrc command line"); > # ifdef FEAT_EVAL > current_SID = SID_CMDARG; >@@ -1928,7 +1929,10 @@ > */ > msg_scroll = TRUE; > if (tagname == NULL) >+ { > curwin->w_cursor.lnum = 0; >+ curwin->w_cursor.col = 0; /* avoid suse bugzilla #112930, jw@suse.de */ >+ } > sourcing_name = (char_u *)"command line"; > #ifdef FEAT_EVAL > current_SID = SID_CARG;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
|
Diff
Attachments on
bug 112930
:
50627
|
63151
| 73785 |
73786