When using PostScript printing on MS-DOS the default 'printexpr' used "lpr"
instead of "copy". When 'printdevice' was empty the copy command did not
work. Use "LPT1" then.
The GTK font dialog uses a font size zero when the font name doesn't include a
size. Use a default size of 10.
This example in the documentation didn't work:
:e `=foo . ".c"`
Skip over the expression in =expr when looking for comments, |, % and #.
When ":helpgrep" doesn't find anything there is no error message.
"L" and "H" did not take closed folds into account.
Win32: The "-P title" argument stopped at the first title that matched, even
when it doesn't support MDI.
Mac GUI: CTRL-^ and CTRL-@ did not work.
"2daw" on "word." at the end of a line didn't include the preceding white
space.
Win32: Using FindExecutable() doesn't work to find a program. Use
SearchPath() instead. For executable() use $PATHEXT when the program searched
for doesn't have an extension.
When 'virtualedit' is set, moving the cursor up after appending a character
may move it to a different column. Was caused by auto-formatting moving the
cursor and not putting it back where it was.
When indent was added automatically and then moving the cursor, the indent was
not deleted (like when pressing ESC). The "I" flag in 'cpoptions' can be used
to make it work the old way.
When opening a command-line window, 'textwidth' gets set to 78 by the Vim
filetype plugin. Reset 'textwidth' to 0 to avoid lines are broken.
After using cursor(line, col) moving up/down doesn't keep the same column.
Win32: Borland C before 5.5 requires using ".u." for LowPart and HighPart
fields. (Walter Briscoe)
On Sinix SYS_NMLN isn't always defined. Define it ourselves. (Cristiano De
Michele)
Printing with PostScript may keep the printer waiting for more. Append a
CTRL-D to the printer output. (Mike Williams)
When converting a string with a hex or octal number the leading '-' was
ignored. ":echo '-05' + 0" resulted in 5 instead of -5.
Using "@:" to repeat a command line didn't work when it contains control
characters. Also remove "'<,'>" when in Visual mode to avoid that it appears
twice.
When using file completion for a user command, it would not expand environment
variables like for a regular command with a file argument.
'cindent': When the argument of a #define looks like a C++ class the next line
is indented too much.
When 'comments' includes multi-byte characters inserting the middle part and
alignment may go wrong. 'cindent' also suffers from this for right-aligned
items.
Win32: when 'encoding' is set to "utf-8" getenv() still returns strings in the
active codepage. Convert to utf-8. Also for $HOME.
The default for 'helplang' was "zh" for both "zh_cn" and "zh_tw". Now use
"cn" or "tw" as intended.
When 'bin' is set and 'eol' is not set then line2byte() added the line break
after the last line while it's not there.
Using foldlevel() in a WinEnter autocommand may not work. Noticed when
resizing the GUI shell upon startup.
Python: Using buffer.append(f.readlines()) didn't work. Allow appending a
string with a trailing newline. The newline is ignored.
When using the ":saveas f2" command for buffer "f1", the Buffers menu would
contain "f2" twice, one of them leading to "f1". Also trigger the BufFilePre
and BufFilePost events for the alternate buffer that gets the old name.
strridx() did not work well when the needle is empty. (Ciaran McCreesh)
GTK: Avoid a potential hang in gui_mch_wait_for_chars() when input arrives
just before it is invoked
VMS: Occasionally CR characters were inserted in the file. Expansion of
environment variables was not correct. (Zoltan Arpadffy)
UTF-8: When 'delcombine' is set "dw" only deleted the last combining character
from the first character of the word.
When using ":sball" in an autocommand only the filetype in one buffer was
detected. Reset did_filetype in enter_buffer().
When using ":argdo" and the window already was at the first argument index,
but not actually editing it, the current buffer would be used instead.
When ":next dir/*" includes many matches, adding the names to the argument
list may take an awful lot of time and can't be interrupted. Allow
interrupting this.
When editing a file that was already loaded in a buffer, modelines were not
used. Now window-local options in the modeline are set. Buffer-local options
and global options remain unmodified.
Win32: When 'encoding' is set to "utf-8" in the vimrc file, files from the
command line with non-ASCII characters are not used correctly. Recode the
file names when 'encoding' is set, using the Unicode command line.
Win32 console: When the default for 'encoding' ends up to be "latin1", the
default value of 'isprint' was wrong.
When an error message is given while waiting for a character (e.g., when an
xterm reports the number of colors), the hit-enter prompt overwrote the last
line. Don't reset msg_didout in normal_cmd() for K_IGNORE.
Mac GUI: Shift-Tab didn't work.
When defining tooltip text, don't translate terminal codes, since it's not
going to be used like a command.
GTK 2: Check the tooltip text for valid utf-8 characters to avoid getting a
GTK error. Invalid characters may appear when 'encoding' is changed.
GTK 2: Add a safety check for invalid utf-8 sequences, they can crash pango.
Win32: When 'encoding' is changed while starting up, use the Unicode command
line to convert the file arguments to 'encoding'. Both for the GUI and the
console version.
Win32 GUI: latin9 text (iso-8859-15) was not displayed correctly, because
there is no codepage for latin9. Do our own conversion from latin9 to UCS2.
When two versions of GTK+ 2 are installed it was possible to use the header
files from one and the library from the other. Use GTK_LIBDIR to put the
directory for the library early in the link flags.
With the GUI find/replace dialog a replace only worked if the pattern was
literal text. Now it works for any pattern.
When 'equalalways' is set and 'eadirection' is "hor", ":quit" would still
cause equalizing window heights in the vertical direction.
When ":emenu" is used in a startup script the command was put in the typeahead
buffer, causing a prompt for the crypt key to be messed up.
Mac OS/X: The default for 'isprint' included characters 128-160, causes
problems for Terminal.app.
When a syntax item with "containedin" is used, it may match in the start or
end of a region with a matchgroup, while this doesn't happen for a "contains"
argument.
When a transparent syntax items matches in another item where the highlighting
has already stopped (because of a he= argument), the highlighting would come
back.
When cscope is used to set the quickfix error list, it didn't get set if there
was only one match. (Sergey Khorev)
When 'confirm' is set and using ":bdel" in a modified buffer, then selecting
"cancel", would still give an error message.
The PopUp menu items that started Visual mode didn't work when not in Normal
mode. Switching between selecting a word and a line was not possible.
Win32: The keypad decimal point always resulted in a '.', while on some
keyboards it's a ','. Use MapVirtualKey(VK_DECIMAL, 2).
Removed unused function DisplayCompStringOpaque() from gui_w32.c
In Visual mode there is not always an indication whether the line break is
selected or not. Highlight the character after the line when the line break
is included, e.g., after "v$o".
GTK: The <F10> key can't be mapped, it selects the menu. Disable that with a
GTK setting and do select the menu when <F10> isn't mapped. (David Necas)
After "Y" '[ and '] were not at start/end of the yanked text.
When a telnet connection is dropped Vim preserves files and exits. While
doing that a SIGHUP may arrive and disturbe us, thus ignore it. (Scott
Anderson) Also postpone SIGHUP, SIGQUIT and SIGTERM until it's safe to
handle. Added handle_signal().
When completing a file name on the command line backslashes are required for
white space. Was only done for a space, not for a Tab.
When configure could not find a terminal library, compiling continued for a
long time before reporting the problem. Added a configure check for tgetent()
being found in a library.
When the cursor is on the first char of the last line a ":g/pat/s///" command
may cause the cursor to be displayed below the text.
Win32: Editing a file with non-ASCII characters doesn't work when 'encoding'
is "utf-8". use _wfullpath() instead of _fullpath(). (Yu-sung Moon)
When recovering the 'fileformat' and 'fileencoding' were taken from the
original file instead of from the swapfile. When the file didn't exist, was
empty or the option was changed (e.g., with ":e ++fenc=cp123 file") it could
be wrong. Now store 'fileformat' and 'fileencoding' in the swapfile and use
the values when recovering.
":bufdo g/something/p" overwrites each last printed text line with the file
message for the next buffer. Temporarily clear 'shortmess' to avoid that.
Win32: Cannot edit a file starting with # with --remote. Do escape % and #
when building the ":drop" command.
A comment or | just after an expression-backtick argument was not recognized.
E.g. in :e ="foo" "comment.
"(" does not stop at an empty sentence (single dot and white space) while ")"
does. Also breaks "das" on that dot.
When doing "yy" with the cursor on a TAB the ruler could be wrong and "k"
moved the cursor to another column.
When 'commentstring' is '"%s' and there is a double quote in the line a double
quote before the fold marker isn't removed in the text displayed for a closed
fold.
In Visual mode, when 'bin' and 'eol' set, g CTRL-G counted the last line
break, resulting in "selected 202 of 201 bytes".
Motif: fonts were not used for dialog components. (Marcin Dalecki)
Motif: After using a toolbar button the keyboard focus would be on the toolbar
(Lesstif problem). (Marcin Dalecki)
When using "y<C-V>`x" where mark x is in the first column, the last line was
not included.
Not all test scripts work properly on MS-Windows when checked out from CVS.
Use a Vim command to fix all fileformats to dos before executing the tests.
When using ":new" and the file fits in the window, lines could still be above
the window. Now remove empty lines instead of keeping the relative position.
Cmdline completion didn't work after ":let var1 var<Tab>".
When using ":startinsert" or ":startreplace" when already in Insert mode
(possible when using CTRL-R =), pressing Esc would directly restart Insert
mode. (Peter Winters)
"2daw" didn't work at end of file if the last word is a single character.
Completion for ":next a'<Tab>" put a backslash before single quote, but it was
not removed when editing a file. Now halve backslashes in save_patterns().
Also fix expanding a file name with the shell that contains "\'".
When doing "1,6d|put" only "fewer lines" was reported. Now a following "more
lines" overwrites the message.
Configure could not handle "-Dfoo=long\ long" in the TCL config output.
When searching backwards, using a pattern that matches a newline and uses \zs
after that, didn't find a match. Could also get a hang or end up in the right
column in the wrong line.
When $LANG is "sl" for slovenian, the slovak menu was used, since "slovak"
starts with "sl".
When 'paste' is set in the GUI the Paste toolbar button doesn't work. Clear
'paste' when starting the GUI.
A message about a wrong viminfo line included the trailing NL.
When 'paste' is set in the GUI the toolbar button doesn't work in Insert mode.
Use ":exe" in menu.vim to avoid duplicating the commands, instead of using a
mapping.
Treat "mlterm" as an xterm-like terminal. (Seiichi Sato)
":z.4" and ":z=4" didn't work Vi compatible.
When sourcing a file, editing it and sourcing it again, it could appear twice
in ":scriptnames" and get a new <SID>, because the inode has changed.
When $SHELL is set but empty the 'shell' option would be empty. Don't use an
empty $SHELL value.
A command "w! file" in .vimrc or $EXINIT didn't work. Now it writes an empty
file.
When a CTRL-F command at the end of the file failed, the cursor was still
moved to the start of the line. Now it remains where it is.
When using ":s" or "&" to repeat the last substitute and "$" was used to put
the cursor in the last column, put the cursor in the last column again. This
is Vi compatible.
Vim is not fully POSIX compliant but sticks with traditional Vi behavior.
Added a few flags in 'cpoptions' to behave the POSIX way when wanted. The
$VIM_POSIX environment variable is checked to set the default.
Appending to a register didn't insert a line break like Vi. Added the '>'
flag to 'cpoptions' for this.
Using "I" in a line with only blanks appended to the line. This is not Vi
compatible. Added the 'H' flag in 'coptions' for this.
When joining multiple lines the cursor would be at the last joint, but Vi
leaves it at the position where "J" would put it. Added the 'q' flag in
'cpoptions' for this.
Autoindent didn't work for ":insert" and ":append".
Using ":append" in an empty buffer kept the dummy line. Now it's deleted to
be Vi compatible.
When reading commands from a file and stdout goes to a terminal, would still
request the xterm version. Vim can't read it, thus the output went to the
shell and caused trouble there.
When redirecting to a register with an invalid name the redirection would
still be done (after an error message). Now reset "redir_reg". (Yegappan
Lakshmanan)
It was not possible to use a NL after a backslash in Ex mode. This is
sometimes used to feed multiple lines to a shell command.
When 'cmdheight' is set to 2 in .vimrc and the GUI uses the number of lines
from the terminal we actually get 3 lines for the cmdline in gvim.
When setting $HOME allocated memory would leak.
Win32: bold characters may sometimes write in another character cell. Use
unicodepdy[] as for UTF-8. (Taro Muraoka)
":w fname" didn't work for files with 'buftype' set to "nofile".
The method used to locate user commands for completion differed from when they
are executed. Ambiguous command names were not completed properly.
Incremental search may cause a crash when there is a custom statusline that
indirectly invokes ":normal".
Diff mode failed when $DIFF_OPTIONS was set in the environment. Unset it
before invoking "diff".
Completion didn't work after ":argdo", ":windo" and ":bufdo". Also for ":set
&l:opt" and ":set &g:opt". (Peter Winters)
When setting 'ttymouse' to "dec" in an xterm that supports the DEC mouse
locator it doesn't work. Now switch off the mouse before selecting another
mouse model.
When the CursorHold event is triggered and the commands peek for typed
characters the typeahead buffer may be messed up, e.g., when a mouse-up event
is received. Avoid invoking the autocommands from the function waiting for a
character, let it put K_CURSORHOLD in the input buffer.
Removed the "COUNT" flag from ":argadd", to avoid ":argadd 1*" to be used like
":1argadd *". Same for ":argdelete" and ":argedit".
Avoid that $LANG is used for the menus when LC_MESSAGES is "en_US".
Added backslashes before dashes in the vim.1 manual page to make them appear
as real dashes. (Pierre Habouzit)
Where "gq" left the cursor depended on the value of 'formatprg'. Now "gq"
always leaves the cursor at the last line of the formatted text.
When editing a compressed file, such as "changelog.Debian.gz" file, filetype
detection may try to check the contents of the file while it's still
compressed. Skip setting 'filetype' for compressed files until they have been
decompressed. Required for patterns that end in a "*".
Starting with an argument "+cmd" or "-S script" causes the cursor to be moved
to the first line. That breaks a BufReadPost autocommand that uses g`".
Don't move the cursor if it's somewhere past the first line.
"gg=G" while 'modifiable' is off was uninterruptible.
When 'encoding' is "sjis" inserting CTRL-V u d800 a few times causes a crash.
Don't insert a DBCS character with a NUL second byte.
In Insert mode CTRL-O<Home> didn't move the cursor. Made "ins_at_eol" global
and reset it in nv_home().
Wildcard expansion failed: ":w /tmp/$$.`echo test`". Don't put quotes around
spaces inside backticks.
After this sequence of commands: Y V p gv: the wrong line is selected. Now
let "gv" select the text that was put, since the original text is deleted.
This should be the most useful thing to do.
":sleep 100u" sleeps for 100 seconds, not 100 usec as one might expect. Give
an error message when the argument isn't recognized.
In gui_mch_draw_string() in gui_w32.c "unibuflen" wasn't static, resulting in
reallocating the buffer every time. (Alexei Alexandrov)
When using a Python "atexit" function it was not invoked when Vim exits. Now
call Py_Finalize() for that. (Ugo Di Girolamo)
This breaks the thread stuff though, fixed by Ugo.
GTK GUI: using a .vimrc with "set cmdheight=2 lines=43" and ":split" right
after startup, the window layout is messed up. (Michael Schaap) Added
win_new_shellsize() call in gui_init() to fix the topframe size.
Trick to get ...MOUSE_NM not used when there are vertical splits. Now pass
column -1 for the left most window and add MOUSE_COLOFF for others. Limits
mouse column to 10000.
searchpair() may hang when the end pattern has "\zs" at the end. Check that
we find the same position again and advance one character.
When in diff mode and making a change that causes the "changed" highlighting
to disappear or reappear, it was still highlighted in another window.
When a ":next" command fails because the user selects "Abort" at the ATTENTION
prompt the argument index was advanced anyway.
When "~" is in 'iskeyword' the "gd" doesn't work, it's used for the previous
substitute pattern. Put "\V" in the pattern to avoid that.
Use of sprintf() sometimes didn't check properly for buffer overflow. Also
when using smsg(). Included code for snprintf() to avoid having to do size
checks where invoking them
":help \=<Tab>" didn't find "sub-replace-\=". Wild menu for help tags didn't
show backslashes. ":he :s\=" didn't work.
When reading an errorfile "~/" in a file name was not expanded.
GTK GUI: When adding a scrollbar (e.g. when using ":vsplit") in a script or
removing it the window size may change. GTK sends us resize events when we
change the window size ourselves, but they may come at an unexpected moment.
Peek for a character to get any window resize events and fix 'columns' and
'lines' to undo this.
When using the GTK plug mechanism, resizing and focus was not working
properly. (Neil Bird)
After deleting files from the argument list a session file generated with
":mksession" may contain invalid ":next" commands.
When 'shortmess' is empty and 'keymap' set to accents, in Insert mode CTRL-N
may cause the hit-enter prompt. Typing 'a then didn't result in the accented
character. Put the character typed at the prompt back in the typeahead buffer
so that mapping is done in the right mode.
setbufvar() and setwinvar() did not give error messages.
It was possible to set a variable with an illegal name, e.g. with setbufvar().
It was possible to define a function with illegal name, e.t. ":func F{-1}()"
CTRL-W F and "gf" didn't use the same method to get the file name.
When reporting a conversion error the line number of the last error could be
given. Now report the first encountered error.
When using ":e ++enc=name file" and iconv() was used for conversion an error
caused a fall-back to no conversion. Now replace a character with '?' and
continue.
When opening a new buffer the local value of 'bomb' was not initialized from
the global value.
Win32: When using the "Edit with Vim" entry the file name was limited to about
200 characters.
When using command line completion for ":e *foo" and the file "+foo" exists
the resulting command ":e +foo" doesn't work. Now insert a backslash: ":e
\+foo".
When the translation of "-- More --" was not 10 characters long the following
message would be in the wrong position.
At the more-prompt the last character in the last line wasn't drawn.
When deleting non-existing text while 'virtualedit' is set the '[ and '] marks
were not set.
Win32: Could not use "**/" in 'path', it had to be "**\".
The search pattern "\n" did not match at the end of the last line.
Searching for a pattern backwards, starting on the NUL at the end of the line
and 'encoding' is "utf-8" would match the pattern just before it incorrectly.
Affected searchpair('/\*', '', '\*/').
For the Find/Replace dialog it was possible that not finding the text resulted
in an error message while redrawing, which cleared the syntax highlighting
while it was being used, resulting in a crash. Now don't clear syntax
highlighting, disable it with b_syn_error.
Win32: Combining UTF-8 characters were drawn on the previous character.
Could be noticed with a Thai font.
Output of ":function" could leave some of the typed text behind. (Yegappan
Lakshmanan)
When the command line history has only a few lines the command line window
would be opened with these lines above the first window line.
When using a command line window for search strings ":qa" would result in
searching for "qa" instead of quitting all windows.
GUI: When scrolling with the scrollbar and there is a line that doesn't fit
redrawing may fail. Make sure w_skipcol is valid before redrawing.
Limit the values of 'columns' and 'lines' to avoid an overflow in Rows *
Columns. Fixed bad effects when running out of memory (command line would be
reversed, ":qa!" resulted in ":!aq").
Motif: "gvim -iconic" opened the window anyway. (David Harrison)
There is a tiny chance that a symlink gets created between checking for an
existing file and creating a file. Use the O_NOFOLLOW for open() if it's
available.
In an empty line "ix<CTRL-O>0" moved the cursor to after the line instead of
sticking to the first column.
When using ":wq" and a BufWriteCmd autocmd uses inputsecret() the text was
echoed anyway. Set terminal to raw mode in getcmdline().
Unix: ":w a;b~c" caused an error in expanding wildcards.
When appending to a file with ":w >>fname" in a buffer without a name, causing
the buffer to use "fname", the modified flag was reset.
When appending to the current file the "not edited" flag would be reset.
":w" would overwrite the file accidentally.
Unix: When filtering text with an external command Vim would still read input,
causing text typed for the command (e.g., a password) to be eaten and echoed.
Don't read input when the terminal is in cooked mode.
The Cygwin version of xxd used CR/LF line separators. (Corinna Vinschen)
Unix: When filtering text through a shell command some resulting text may be
dropped. Now after detecting that the child has exited try reading some more
of its output.
When inside input(), using "CTRL-R =" and the expression throws an exception
the command line was not abandoned but it wasn't used either. Now abandon
typing the command line.
'delcombine' was also used in Visual and Select mode and for commands like
"cl". That was illogical and has been disabled.
When recording while a CursorHold autocommand was defined special keys would
appear in the register. Now the CursorHold event is not triggered while
recording.
Unix: the src/configure script used ${srcdir-.}, not all shells understand
that. Use ${srcdir:-.} instead.
When editing file "a" which is a symlink to file "b" that doesn't exist,
writing file "a" to create "b" and then ":split b" resulted in two buffers on
the same file with two different swapfile names. Now set the inode in the
buffer when creating a new file.
When 'esckeys' is not set don't send the xterm code to request the version
string, because it may cause trouble in Insert mode.
When evaluating an expression for CTRL-R = on the command line it was possible
to call a function that opens a new window, resulting in errors for
incremental search, and many other nasty things were possible. Now use the
textlock to disallow changing the buffer or jumping to another window
to protect from unexpected behavior. Same for CTRL-\ e.
"d(" deleted the character under the cursor, while the documentation specified
an exclusive motion. Vi also doesn't delete the character under the cursor.
Shift-Insert in Insert mode could put the cursor before the last character
when it just fits in the window. In coladvance() don't stop at the window
edge when filling with spaces and when in Insert mode. In mswin.vim avoid
getting a beep from the "l" command.
Win32 GUI: When Alt-F4 is used to close the window and Cancel is selected in
the dialog then Vim would insert <M-F4> in the text. Now it's ignored.
When ":silent! {cmd}" caused the swap file dialog, which isn't displayed,
there would still be a hit-enter prompt.
Requesting the termresponse ( t_RV ) early may cause problems with "-c"
arguments that invoke an external command or even "-c quit". Postpone it
until after executing "-c" arguments.
When typing in Insert mode so that a new line is started, using CTRL-G u to
break undo and start a new change, then joining the lines with <BS> caused
undo info to be missing. Now reset the insertion start point.
Syntax HL: When a region start match has a matchgroup and an offset that
happens to be after the end of the line then it continued in the next line and
stopped at the region end match, making the region continue after that.
Now check for the column being past the end of the line in syn_add_end_off().
When changing a file, setting 'swapfile' off and then on again, making another
change and killing Vim, then some blocks may be missing from the swapfile.
When 'swapfile' is switched back on mark all blocks in the swapfile as dirty.
Added mf_set_dirty().
Expanding wildcards in a command like ":e aap;<>!" didn't work. Put
backslashes before characters that are special to the shell. (Adri Verhoef)
A CursorHold autocommand would cause a message to be cleared. Don't show the
special key for the event for 'showcmd'.
When expanding a file name for a shell command, as in "!cmd foo<Tab>" or ":r
!cmd foo<Tab>" also escape characters that are special for the shell:
"!;&()<>".
When the name of the buffer was set by a ":r fname" command cpo-f no
autocommands were triggered to notify about the change in the buffer list.
In the quickfix buffer 'bufhidden' was set to "delete", which caused closing
the quickfix window to leave an unlisted "No Name" buffer behind every time.
Win32: when using two screens of different size, setting 'lines' to a large
value didn't fill the whole screen. (SungHyun Nam)
Win32 installer: The generated _vimrc contained an absolute path to diff.exe.
After upgrading it becomes invalid. Now use $VIMRUNTIME instead.
The command line was cleared to often when 'showmode' was set and ":silent
normal vy" was used. Don't clear the command line unless the mode was
actually displayed. Added the "mode_displayed" variable.
The "load session" toolbar item could not handle a space or other special
characters in v:this_session.
":set sta ts=8 sw=4 sts=2" deleted 4 spaces halfway a line instead of 2.
In a multi-byte file the foldmarker could be recognized in the trail byte.
(Taro Muraoka)
Pasting with CTRL-V and menu didn't work properly when some commands are
mapped. Use ":normal!" instead of ":normal". (Tony Apuzzo)
Crashed when expanding a file name argument in backticks.
In some situations the menu and scrollbar didn't work, when the value contains
a CSI byte. (Yukihiro Nakadaira)
GTK GUI: When drawing the balloon focus changes and we might get a key release
event that removed the balloon again. Ignore the key release event.
'titleold' was included in ":mkexrc" and ":mksession" files.
":set background&" didn't use the same logic as was used when starting up.
When "umask" is set such that nothing is writable then the viminfo file would
be written without write permission. (Julian Bridle)
Motif: In diff mode dragging one scrollbar didn't update the scrollbar of the
other diff'ed window.
When editing in an xterm with a different number of colors than expected the
screen would be cleared and redrawn, causing the message about the edited file
to be cleared. Now set "keep_msg" to redraw the last message.
For a color terminal: When the Normal HL uses bold, possibly to make the color
lighter, and another HL group specifies a color it might become light as well.
Now reset bold if a HL group doesn't specify bold itself.
When using 256 color xterm the color 255 would show up as color 0. Use a
short instead of a char to store the color number.
ml_get errors when searching for "\n\zs" in an empty file.
When selecting a block and using "$" to select until the end of every line and
not highlighting the character under the cursor the first character of the
block could be unhighlighted.
When counting words for the Visual block area and using "$" to select until
the end of every line only up to the length of the last line was counted.
"dip" in trailing empty lines left one empty line behind.
The script ID was only remembered globally for each option. When a buffer- or
window-local option was set the same "last set" location was changed for all
buffers and windows. Now remember the script ID for each local option
separately.
GUI: The "Replace All" button didn't handle backslashes in the replacement in
the same way as "Replace". Escape backslashes so that they are taken
literally.
When using Select mode from Insert mode and typing a key, causing lines to be
deleted and a message displayed, delayed the effect of inserting the key.
Now overwrite the message without delay.
When 'whichwrap' includes "l" then "dl" and "yl" on a single letter line
worked differently. Now recognize all operators when using "l" at the end of
a line.
GTK GUI: when the font selector returned a font name with a comma in it then
it would be handled like two font names. Now put a backslash before the
comma.
MS-DOS, Win32: When 'encoding' defaults to "latin1" then the value for
'iskeyword' was still for CPxxx. And when 'nocompatible' was set 'isprint'
would also be the wrong value.
When a command was defined not to take arguments and no '|' no warning message
would be given for using a '|'. Also with ":loadkeymap".
Motif: When using a fontset and 'encoding' is "utf-8" and sizeof(wchar_t) !=
sizeof(XChar2b) then display was wrong. (Yukihiro Nakadaira)
":all" always set the current window to the first window, even when it
contains a buffer that is not in the argument list (can't be closed because it
is modified). Now go to the window that has the first item of the argument
list.
GUI: To avoid left-over pixels from bold text all characters after a character
with special attributes were redrawn. Now only do this for characters that
actually are bold. Speeds up displaying considerably.
When only highlighting changes and the text is scrolled at the same time
everything is redrawn instead of using a scroll and updating the changed text.
E.g., when using ":match" to highlight a paren that the cursor landed on.
Added SOME_VALID: Redraw the whole window but also try to scroll to minimize
redrawing.
Win32: When using Korean IME making it active didn't work properly. (Moon,
Yu-sung, 2005 March 21)
Ruby interface: when inserting/deleting lines display wasn't updated. (Ryan
Paul)
--- fixes since Vim 7.0b ---
Getting the GCC version in configure didn't work with Solaris sed. First
strip any "darwin." and then get the version number.
The "autoload" directory was missing from the self-installing executable for
MS-Windows.
The MS-Windows install program would find "vimtutor.bat" in the install
directory. After changing to "c:" also change to "\" to avoid looking in the
install directory.
To make the 16 bit DOS version compile exclude not used highlight
initializations and build a tiny instead of small version.
finddir() and findfile() accept a negative count and return a List then.
The Python indent file contained a few debugging statements, removed.
Expanding {} for a function name, resulting in a name starting with "s:" was
not handled correctly.
Spelling: renamed COMPOUNDMAX to COMPOUNDWORDMAX. Added several items to be
able to handle the new Hungarian dictionary.
Mac: Default to building for the current platform only, that is much faster
than building a universal binary. Also, using Perl/Python/etc. only works for
the current platform.
The time on undo messages disappeared for someone. Using %T for strftime()
apparently doesn't work everywhere. Use %H:%M:%S instead.
Typing BS at the "z=" prompt removed the prompt.
--- fixes and changes since Vim 7.0c ---
When jumping to another tab page the Vim window size was always set, even when
nothing in the layout changed.
Win32 GUI tab pages line wasn't always enabled. Do a proper check for the
compiler version.
Win32: When switching between tab pages the Vim window was moved when part of
it was outside of the screen. Now only do that in the direction of a size
change.
Win32: added menu to GUI tab pages line. (Yegappan Lakshmanan)
Mac: Added document icons. (Benji Fisher)
Insert mode completion: Using Enter to accept the current match causes
confusion. Use CTRL-Y instead. Also, use CTRL-E to go back to the typed
text.
GUI: When there are left and right scrollbars, ":tabedit" kept them instead of
using the one that isn't needed.
Using "gP" to replace al the text could leave the cursor below the last line,
causing ml_get errors.
When 'cursorline' is set don't use the highlighting when Visual mode is
active, otherwise it's difficult to see the selected area.
The matchparen plugin restricts the search to 100 lines, to avoid a long delay
when there are closed folds.
Sometimes using CTRL-X s to list spelling suggestions used text from another
line.
Win32: Set the default for 'isprint' back to the wrong default "@,~-255",
because many people use Windows-1252 while 'encoding' is "latin1".
GTK: Added a workaround for gvim crashing when used over an untrusted ssh
link, caused by GTK doing something nasty. (Ed Catmur)
Win32: The font used for the tab page labels is too big. Use the system menu
font. (George Reilly)
Win32: Adjusting the window position and size to keep it on the screen didn't
work properly when the taskbar is on the left or top of the screen.
The installman.sh and installml.sh scripts use ${10}, that didn't work with
old shells. And use "test -f" instead of "test -e".
Win32: When 'encoding' was set in the vimrc then a directory argument for diff
mode didn't work.
GUI: at the inputlist() prompt the cursorshape was adjusted as if the windows
were still at their old position.
The parenmatch plugin didn't remember the highlighting per window.
Using ":bd" for a buffer that's the current window in another tab page caused
a crash.
For a new tab page the 'scroll' option wasn't set to a good default.
Using an end offset for a search "/pat/e" didn't work properly for multi-byte
text. (Yukihiro Nakadaira)
":s/\n/,/" doubled the text when used on the last line.
When "search" is in 'foldopen' "[s" and "]s" now open folds.
When using a numbered function "dict" can be omitted, but "self" didn't work
then. Always add FC_DICT to the function flags when it's part of a
dictionary.
When "--remote-tab" executes locally it left an empty tab page.
"gvim -u NONE", ":set cursorcolumn", "C" in the second line didn't update
text. Do update further lines even though the "$" is displayed.
VMS: Support GTK better, also enable +clientserver. (Zoltan Arpadffy)
When highlighting of statusline or tabline is changed there was no redraw to
show the effect.
Mac: Added "CFBundleIdentifier" to infplist.xml.
Added tabpage-local variables t:var.
Win32: Added double-click in tab pages line creates new tab. (Yegappan
Lakshmanan)
Motif: Added GUI tab pages line. (Yegappan Lakshmanan)
Fixed crash when 'lines' was set to 1000 in a modeline.
When init_spellfile() finds a writable directory in 'runtimepath' but it
doesn't contain a "spell" directory, create one.
Win32: executable() also finds "xxd" in the directory where Vim was started,
but "!xxd" doesn't work. Append the Vim starting directory to $PATH.
The tab page labels are shortened, directory names are reduced to a single
letter by default. Added the pathshorten() function to allow a user to do the
same.
":saveas" now resets 'readonly' if the file was successfully written.
Set $MYVIMRC file to the first found .vimrc file.
Set $MYGVIMRC file to the first found .gvimrc file.
Added menu item "Startup Settings" that edits the $MYVIMRC file
Added matcharg().
Error message E745 appeared twice. Renamed one to E786.
Fixed crash when using "au BufRead * Sexplore" and doing ":help". Was wiping
out a buffer that's still in a window.
":hardcopy" resulted in an error message when 'encoding' is "utf-8" and
'printencoding' is empty. Now it assumes latin1. (Mike Williams)
The check for the toolbar feature for Motif, depending on certain included
files, wasn't detailed enough, causing building to fail in gui_xmebw.c.
Using CTRL-E in Insert mode completion after CTRL-P inserted the first match
instead of the original text.
When displaying a UTF-8 character with a zero lower byte Vim might think the
previous character is double-wide.
The "nbsp" item of 'listchars' didn't work when 'encoding' was utf-8.
Motif: when Xm/xpm.h is missing gui_xmebw.c would not compile.
HAVE_XM_UNHIGHLIGHTT_H was missing a T.
Mac: Moved the .icns files into src/os_mac_rsrc, so that they can all be
copied at once. Adjusted the Info.plist file for three icons.
When Visual mode is active while switching to another tabpage could get ml_get
errors.
When 'list' is set, 'nowrap' the $ in the first column caused 'cursorcolumn'
to move to the right.
When a line wraps, 'cursorcolumn' was never displayed past the end of the
line.
'autochdir' was only available when compiled with NetBeans and GUI. Now it's
a separate feature, also available in the "big" version.
Added CTRL-W gf: open file under cursor in new tab page.
When using the menu in the tab pages line, "New Tab" opens the new tab before
where the click was. Beyond the labels the new tab appears at the end instead
of after the current tab page.
Inside a mapping with an expression getchar() could not be used.
When vgetc is used recursively vgetc_busy protects it from being used
recursively. But after a ":normal" command the protection was reset.
":s/a/b/n" didn't work when 'modifiable' was off.
When $VIMRUNTIME includes a multi-byte character then rgb.txt could not be
found. (Yukihiro Nakadaira)
":mkspell" didn't work correctly for non-ASCII affix flags when conversion is
needed on the spell file.
glob('/dir/\$ABC/*') didn't work.
When using several tab pages and changing 'cmdheight' the display could become
messed up. Now store the value of 'cmdheight' separately for each tab page.
The user of the Enter key while the popup menu is visible was still confusing.
Now use Enter to select the match after using a cursor key.
Added "usetab" to 'switchbuf'.
--- fixes and changes since Vim 7.0d ---
Added CTRL-W T: move a window to a new tab page.
Using CTRL-X s in Insert mode to complete spelling suggestions and using BS
deleted characters before the bad word.
A few small fixes for the VMS makefile. (Zoltan Arpadffy)
With a window of 91 lines 45 cols, ":vsp" scrolled the window. Copy w_wrow
when splitting a window and skip setting the height when it's already at the
right value.
Using <silent> in a mapping with a shell command and the GUI caused redraw
to use wrong attributes.
Win32: Using MSVC 4.1 for install.exe resulted in the start menu items to be
created in the administrator directory instead of "All Users". Define the
CSIDL_ items if they are missing.
Motif: The GUI tabline did not use the space above the right scrollbar. Work
around a bug in the Motif library. (Yegappan Lakshmanan)
The extra files for XML Omni completion are now also installed.
xml-omni-datafile
GTK GUI: when 'm' is missing from 'guioptions' during startup and pressing
<F10> GTK produced error messages. Now do create the menu but disable it just
after the first gui_mch_update().
":mkspell" doesn't work well with the Hungarian dictionary from the Hunspell
project. Back to the Myspell dictionary.
In help files hide the | used around tags.
Renamed pycomplete to pythoncomplete.
Added "tabpages" to 'sessionoptions'.
When 'guitablabel' is set the effect wasn't visible right away.
Fixed a few 'cindent' errors.
When completing menu names, e.g., after ":emenu", don't sort the entries but
keep them in the original order.
Fixed a crash when editing a directory in diff mode. Don't trigger
autocommands when executing the diff command.
Getting a keystroke could get stuck if 'encoding' is a multi-byte encoding and
typing a special key.
When 'foldignore' is set the folds were not updated right away.
When a list is indexed with [a : b] and b was greater than the length an error
message was given. Now silently truncate the result.
When using BS during Insert mode completion go back to the original text, so
that CTRL-N selects the first matching entry.
Added the 'M' flag to 'cinoptions'.
Win32: Make the "gvim --help" window appear in the middle of the screen
instead of at an arbitrary position. (Randall W. Morris)
Added gettabwinvar() and settabwinvar().
Command line completion: pressing <Tab> after ":e /usr/*" expands the whole
tree, because it becomes ":e /usr/**". Don't add a star if there already is
one.
Added grey10 to grey90 to all GUIs, so that they can all be used for
initializing highlighting. Use grey40 for CursorColumn and CursorLine when
'background' is "dark".
When reading a file and using iconv for conversion, an incomplete byte
sequence at the end caused problems. (Yukihiro Nakadaira)
--- fixes and changes since Vim 7.0e ---
Default color for MatchParen when 'background' is "dark" is now DarkCyan.
":syn off" had to be used twice in a file that sets 'syntax' in a modeline.
(Michael Geddes)
When using ":vsp" or ":sp" the available space wasn't used equally between
windows. (Servatius Brandt)
Expanding <cWORD> on a trailing blank resulted in the first word in the line
if 'encoding' is a multi-byte encoding.
Spell checking: spellbadword() didn't see a missing capital in the first word
of a line. Popup menu now only suggest the capitalized word when appropriate.
When using whole line completion CTRL-L moves through the matches but it
didn't work when at the original text.
When completion finds the longest match, don't go to the first match but stick
at the original text, so that CTRL-N selects the first one.
Recognize "zsh-beta" like "zsh" for setting the 'shellpipe' default. (James
Vega)
When using ":map <expr>" and the expression results in something with a
special byte (NUL or CSI) then it didn't work properly. Now escape special
bytes.
The default Visual highlighting for a color xterm with 8 colors was a magenta
background, which made magenta text disappear. Now use reverse in this
specific situation.
After completing the longest match "." didn't insert the same text. Repeating
also didn't work correctly for multi-byte text.
When using Insert mode completion and BS the whole word that was completed
would result in all possible matches. Now stop completion. Also fixes that
for spell completion the previous word was deleted.
GTK: When 'encoding' is "latin1" and using non-ASCII characters in a file name
the tab page label was wrong and an error message would be given.
The taglist() function could hang on a tags line with a non-ASCII character.
Win32: When 'encoding' differs from the system encoding tab page labels with
non-ASCII characters looked wrong. (Yegappan Lakshmanan)
Motif: building failed when Xm/Notebook.h doesn't exist. Added a configure
check, disable GUI tabline when it's missing.
Mac: When compiled without multi-byte feature the clipboard didn't work.
It was possible to switch to another tab page when the cmdline window is open.
Completion could hang when 'lines' is 6 and a preview window was opened.
Added CTRL-W gF: open file under cursor in new tab page and jump to the line
number following the file name.
Added 'guitabtooltip'. Implemented for Win32 (Yegappan Lakshmanan).
Added "throw" to 'debug' option: throw an exception for error messages even
whey they would otherwise be ignored.
When 'keymap' is set and a line contains an invalid entry could get a "No
mapping found" warning instead of a proper error message.
Motif: default to using XpmAttributes instead of XpmAttributes_21.
A few more changes for 64 bit MS-Windows. (George Reilly)
Got ml_get errors when doing "o" and selecting in other window where there are
less lines shorter than the cursor position in the other window. ins_mouse()
was using position in wrong window.
Win32 GUI: Crash when giving a lot of messages during startup. Allocate twice
as much memory for the dialog template.
Fixed a few leaks and wrong pointer use reported by coverity.
When showing menus the mode character was sometimes wrong.
Added feedkeys(). (Yakov Lerner)
Made matchlist() always return all submatches.
Moved triggering QuickFixCmdPost to before jumping to the first location.
Mac: Added the 'macatsui' option as a temporary work around for text drawing
problems.
Line completion on "/**" gave error messages when scanning an unloaded buffer.
--- fixes and changes since Vim 7.0f ---
Win32: The height of the tab page labels is now adjusted to the font height.
(Yegappan Lakshmanan)
Win32: selecting the tab label was off by one. (Yegappan Lakshmanan)
Added tooltips for Motif and GTK tab page labels. (Yegappan Lakshmanan)
When 'encoding' is "utf-8" then ":help spell" would report an illegal byte and
the file was not converted from latin1 to utf-8. Now retry with latin1 if
reading the file as utf-8 results in illegal bytes.
Escape the argument of feedkeys() before putting it in the typeahead buffer.
(Yukihiro Nakadaira)
Added the v:char variable for evaluating 'formatexpr'. (Yukihiro Nakadaira)
With 8 colors Search highlighting combined with Statement highlighted text
made the text disappear.
VMS: avoid warnings for redefining MAX and MIN. (Zoltan Arpadffy)
When 'virtualedit' includes "onemore", stopping Visual selection would still
move the cursor left.
Prevent that using CTRL-R = in Insert mode can start Visual mode.
Fixed a crash that occurred when in Insert mode with completion active and a
mapping caused edit() to be called recursively.
When using CTRL-O in Insert mode just after the last character while
'virtualedit' is "all", then typing CR moved the last character to the next
line. Call coladvance() before starting the new line.
When using :shell ignore clicks on the tab page labels. Also when using the
command line window.
When 'eventignore' is "all" then adding more to ignoring some events, e.g.,
for ":vimgrep", would actually trigger more events.
Win32: When a running Vim uses server name GVIM1 then "gvim --remote fname"
didn't find it. When looking for a server name that doesn't end in a digit
and it is not found then use another server with that name and a number (just
like on Unix).
When using "double" in 'spellsuggest' when the language doesn't support sound
folding resulted in too many suggestions.
Win32: Dropping a shortcut on the Vim icon didn't edit the referred file like
editing it in another way would. Use fname_expand() in buf_set_name() instead
of simply make the file name a full path.
Using feedkeys() could cause Vim to hang.
When closing another tab page from the tabline menu in Insert mode the tabline
was not updated right away.
The syntax menu didn't work in compatible mode.
After using ":tag id" twice with the same "id", ":ts" and then ":pop" a ":ts"
reported no matching tag. Clear the cached tag name.
In Insert mode the matchparen plugin highlighted the wrong paren when there is
a string just next to a paren.
GTK: After opening a new tab page the text was sometimes not drawn correctly.
Flush output and catch up with events when updating the tab page labels.
In the GUI, using CTRL-W q to close the last window of a tab page could cause
a crash.
GTK: The tab pages line menu was not converted from 'encoding' to utf-8.
Typing a multi-byte character or a special key at the hit-enter prompt did not
work.
When 'virtualedit' contains "onemore" CTRL-O in Insert mode still moved the
cursor left when it was after the end of the line, even though it's allowed to
be there.
Added test for using tab pages.
towupper() and towlower() were not used, because of checking for
__STDC__ISO_10646__ instead of __STDC_ISO_10646__. (sertacyildiz)
For ":map <expr>" forbid changing the text, jumping to another buffer and
using ":normal" to avoid nasty side effects.
--- fixes and changes since Vim 7.0g ---
Compilation error on HP-UX, use of "dlerr" must be inside a #ifdef.
(Gary Johnson)
Report +reltime feature in ":version" output.
The tar and zip plugins detect failure to get the contents of the archive and
edit the file as-is.
When the result of 'guitablabel' is empty fall back to the default label.
Fixed crash when using ":insert" in a while loop and missing "endwhile".
"gt" and other commands could move to another window when textlock active
and when the command line window was open.
Spell checking a file with syntax highlighting and a bad word at the end of
the line is ignored could make "]s" hang.
Mac: inputdialog() didn't work when compiled with big features.
Interrupting ":vimgrep" while it is busy loading a file left a modified and
hidden buffer behind. Use enter_cleanup() and leave_cleanup() around
wipe_buffer().
When making 'keymap' empty the b:keymap_name variable wasn't deleted.
Using CTRL-N that searches a long time, pressing space to interrupt the
searching and accept the first match, the popup menu was still displayed
briefly.
When setting the Vim window height with -geometry the 'window' option could be
at a value that makes CTRL-F behave differently.
When opening a quickfix window in two tabs they used different buffers,
causing redrawing problems later. Now use the same buffer for all quickfix
windows. (Yegappan Lakshmanan)
When 'mousefocus' is set moving the mouse to the text tab pages line would
move focus to the first window. Also, the mouse pointer would jump to the
active window.
In a session file, when an empty buffer is wiped out, do this silently.
When one window has the cursor on the last line and another window is resized
to make that window smaller, the cursor line could go below the displayed
lines. In win_new_height() subtract one from the available space.
Also avoid that using "~" lines makes the window scroll down.
Mac: When sourcing the "macmap.vim" script and then finding a .vimrc file the
'cpo' option isn't set properly, because it was already set and restored.
Added the <special> argument to ":map", so that 'cpo' doesn't need to be
changed to be able to use <> notation. Also do this for ":menu" for
consistency.
When using "/encoding=abc" in a spell word list, only "bc" was used.
When 'encoding' and 'printencoding' were both "utf-8" then ":hardcopy" didn't
work. (Mike Williams)
Mac: When building with "--disable-gui" the install directory would still be
"/Applications" and Vim.app would be installed. Now install in /usr/local as
usual for a console application.
GUI: when doing completion and there is one match and still searching for
another, the cursor was displayed at the end of the line instead of after the
match. Now show the cursor after the match while still searching for matches.
GUI: The mouse shape changed on the statusline even when 'mouse' was empty and
they can't be dragged.
GTK2: Selecting a button in the confirm() dialog with Tab or cursor keys and
hitting Enter didn't select that button. Removed GTK 1 specific code. (Neil
Bird)
When evaluating 'balloonexpr' takes a long time it could be called
recursively, which could cause a crash.
exists() could not be used to detect whether ":2match" is supported. Added a
check for it specifically.
GTK1: Tab page labels didn't work. (Yegappan Lakshmanan)
Insert mode completion: When finding matches use 'ignorecase', but when adding
matches to the list don't use it, so that all words with different case are
added, "word", "Word" and "WORD".
When 'cursorline' and 'hlsearch' are set and the search pattern is "x\n"
the rest of the line was highlighted as a match.
Cursor moved while evaluating 'balloonexpr' that invokes ":isearch" and
redirects the output. Don't move the cursor to the command line if msg_silent
is set.
exists() ignored text after a function name and option name, which could
result in false positives.
exists() ignored characters after the recognized word, which can be wrong when
using a name with non-keyword characters. Specifically, these calls no longer
allow characters after the name: exists('*funcname') exists('*funcname(...')
exists('&option') exists(':cmd') exists('g:name') exists('g:name[n]')
exists('g:name.n')
Trigger the TabEnter autocommand only after entering the current window of the
tab page, otherwise the commands are executed with an invalid current window.
Win32: When using two monitors and Vim is on the second monitor, changing the
width of the Vim window could make it jump to the first monitor.
When scrolling back at the more prompt and the quitting a line of text would
be left behind when 'cmdheight' is 2 or more.
Fixed a few things for Insert mode completion, especially when typing BS,
CTRL-N or a printable character while still searching for matches.

Could not build the Win32s version. Added a few structure definitions in
src/gui_w32.c
Patch 7.0.001
问题: ":set spellsuggest+=10" does not work. (Suresh Govindachar)
解决方案: Add P_COMMA to the 'spellsuggest' flags.
相关文件: src/option.c
Patch 7.0.002
问题: C omni completion has a problem with tags files with a path
containing "#" or "%".
解决方案: Escape these characters. (Sebastian Baberowski)
相关文件: runtime/autoload/ccomplete.vim
Patch 7.0.003
问题: GUI: clicking in the lower part of a label in the tab pages line
while 'mousefocus' is set may warp the mouse pointer. (Robert
Webb)
解决方案: Check for a negative mouse position.
相关文件: src/gui.c
Patch 7.0.004
问题: Compiler warning for debug_saved used before set. (Todd Blumer)
解决方案: Remove the "else" for calling save_dbg_stuff().
相关文件: src/ex_docmd.c
Patch 7.0.005 (extra)
问题: Win32: The installer doesn't remove the "autoload" and "spell"
directories. (David Fishburn)
解决方案: Add the directories to the list to be removed.
相关文件: nsis/gvim.nsi
Patch 7.0.006
问题: Mac: "make shadow" doesn't make a link for infplist.xml. (Axel
Kielhorn)
解决方案: Make the link.
相关文件: src/Makefile
Patch 7.0.007
问题: AIX: compiling fails for message.c. (Ruediger Hornig)
解决方案: Move the #if outside of memchr().
相关文件: src/message.c
Patch 7.0.008
问题: Can't call a function that uses both <SID> and {expr}. (Thomas)
解决方案: Check both the expanded and unexpanded name for <SID>.
相关文件: src/eval.c
Patch 7.0.009
问题: ml_get errors with both 'sidescroll' and 'spell' set.
解决方案: Use ml_get_buf() instead of ml_get(), get the line from the right
buffer, not the current one.
相关文件: src/spell.c
Patch 7.0.010
问题: The spellfile plugin required typing login name and password.
解决方案: Use "anonymous" and "vim7user" by default. No need to setup a
.netrc file.
相关文件: runtime/autoload/spellfile.vim
Patch 7.0.011
问题: Can't compile without the folding and with the eval feature.
解决方案: Add an #ifdef. (Vallimar)
相关文件: src/option.c
Patch 7.0.012
问题: Using the matchparen plugin, moving the cursor in Insert mode to a
shorter line that ends in a brace, changes the preferred column
解决方案: Use winsaveview()/winrestview() instead of getpos()/setpos().
相关文件: runtime/plugin/matchparen.vim
Patch 7.0.013
问题: Insert mode completion: using CTRL-L to add an extra character
also deselects the current match, making it impossible to use
CTRL-L a second time.
解决方案: Keep the current match. Also make CTRL-L work at the original
text, using the first displayed match.
相关文件: src/edit.c
Patch 7.0.014
问题: Compiling gui_xmebw.c fails on Dec Alpha Tru64. (Rolfe)
解决方案: Disable some code for Motif 1.2 and older.
相关文件: src/gui_xmebw.c
Patch 7.0.015
问题: Athena: compilation problems with modern compiler.
解决方案: Avoid type casts for lvalue. (Alexey Froloff)
相关文件: src/gui_at_fs.c
Patch 7.0.016
问题: Printing doesn't work for "dec-mcs" encoding.
解决方案: Add "dec-mcs", "mac-roman" and "hp-roman8" to the list of
recognized 8-bit encodings. (Mike Williams)
相关文件: src/mbyte.c
Patch 7.0.017 (after 7.0.014)
问题: Linking gui_xmebw.c fails on Dec Alpha Tru64. (Rolfe)
解决方案: Adjust defines for Motif 1.2 and older.
相关文件: src/gui_xmebw.c
Patch 7.0.018
问题: VMS: plugins are not loaded on startup.
解决方案: Remove "**" from the path. (Zoltan Arpadffy)
相关文件: src/main.c
Patch 7.0.019
问题: Repeating "VjA789" may cause a crash. (James Vega)
解决方案: Check the cursor column after moving it to another line.
相关文件: src/ops.c
Patch 7.0.020
问题: Crash when using 'mousefocus'. (William Fulton)
解决方案: Make buffer for mouse coordinates 2 bytes longer. (Juergen Weigert)
相关文件: src/gui.c
Patch 7.0.021
问题: Crash when using "\\[" and "\\]" in 'errorformat'. (Marc Weber)
解决方案: Check for valid submatches after matching the pattern.
相关文件: src/quickfix.c
Patch 7.0.022
问题: Using buffer.append() in Ruby may append the line to the wrong
buffer. (Alex Norman)
解决方案: Properly switch to the buffer to do the appending. Also for
buffer.delete() and setting a buffer line.
相关文件: src/if_ruby.c
Patch 7.0.023
问题: Crash when doing spell completion in an empty line and pressing
CTRL-E.
解决方案: Check for a zero pointer. (James Vega)
Also handle a situation without a matching pattern better, report
"No matches" instead of remaining in undefined CTRL-X mode. And
get out of CTRL-X mode when typing a letter.
相关文件: src/edit.c
Patch 7.0.024
问题: It is possible to set arbitrary "v:" variables.
解决方案: Disallow setting "v:" variables that are not predefined.
相关文件: src/eval.c
Patch 7.0.025
问题: Crash when removing an element of a:000. (Nikolai Weibull)
解决方案: Mark the a:000 list with VAR_FIXED.
相关文件: src/eval.c
Patch 7.0.026
问题: Using libcall() may show an old error.
解决方案: Invoke dlerror() to clear a previous error. (Yukihiro Nakadaira)
相关文件: src/os_unix.c
Patch 7.0.027 (extra)
问题: Win32: When compiled with SNIFF gvim may hang on exit.
解决方案: Translate and dispatch the WM_USER message. (Mathias Michaelis)
相关文件: src/gui_w48.c
Patch 7.0.028 (extra)
问题: OS/2: Vim doesn't compile with gcc 3.2.1.
解决方案: Add argument to after_pathsep(), don't define vim_handle_signal(),
define HAVE_STDARG_H. (David Sanders)
相关文件: src/os_unix.c, src/vim.h, src/os_os2_cfg.h
Patch 7.0.029
问题: getchar() may not position the cursor after a space.
解决方案: Position the cursor explicitly.
相关文件: src/eval.c
Patch 7.0.030
问题: The ":compiler" command can't be used in a FileChangedRO event.
(Hari Krishna Dara)
解决方案: Add the CMDWIN flag to the ":compiler" command.
相关文件: src/ex_cmds.h
Patch 7.0.031
问题: When deleting a buffer the buffer-local mappings for Select mode
remain.
解决方案: Add the Select mode bit to MAP_ALL_MODES. (Edwin Steiner)
相关文件: src/vim.h
Patch 7.0.032 (extra, after 7.0.027)
问题: Missing semicolon.
解决方案: Add the semicolon.
相关文件: src/gui_w48.c
Patch 7.0.033
问题: When pasting text, with the menu or CTRL-V, autoindent is removed.
解决方案: Use "x<BS>" to avoid indent to be removed. (Benji Fisher)
相关文件: runtime/autoload/paste.vim
Patch 7.0.034
问题: After doing completion and typing more characters or using BS
repeating with "." didn't work properly. (Martin Stubenschrott)
解决方案: Don't put BS and other characters in the redo buffer right away,
do this when finishing completion.
相关文件: src/edit.c
Patch 7.0.035
问题: Insert mode completion works when typed but not when replayed from
a register. (Hari Krishna Dara)
Also: Mappings for Insert mode completion don't always work.
解决方案: When finding a non-completion key in the input don't interrupt
completion when it wasn't typed.
Do use mappings when checking for typeahead while still finding
completions. Avoids that completion is interrupted too soon.
Use "compl_pending" in a different way.
相关文件: src/edit.c
Patch 7.0.036
问题: Can't compile with small features and syntax highlighting or the
diff feature.
解决方案: Define LINE_ATTR whenever syntax highlighting or the diff feature
is enabled.
相关文件: src/screen.c
Patch 7.0.037
问题: Crash when resizing the GUI window vertically when there is a line
that doesn't fit.
解决方案: Don't redraw while the screen data is invalid.
相关文件: src/screen.c
Patch 7.0.038
问题: When calling complete() from an Insert mode expression mapping
text could be inserted in an improper way.
解决方案: Make undo_allowed() global and use it in complete().
相关文件: src/undo.c, src/proto/undo.pro, src/eval.c
Patch 7.0.039
问题: Calling inputdialog() with a third argument in the console doesn't
work.
解决方案: Make a separate function for input() and inputdialog(). (Yegappan
Lakshmanan)
相关文件: src/eval.c
Patch 7.0.040
问题: When 'cmdheight' is larger than 1 using inputlist() or selecting
a spell suggestion with the mouse gets the wrong entry.
解决方案: Start listing the first alternative on the last line of the screen.
相关文件: src/eval.c, src/spell.c
Patch 7.0.041
问题: cursor([1, 1]) doesn't work. (Peter Hodge)
解决方案: Allow leaving out the third item of the list and use zero for the
virtual column offset.
相关文件: src/eval.c
Patch 7.0.042
问题: When pasting a block of text in Insert mode Vim hangs or crashes.
(Noam Halevy)
解决方案: Avoid that the cursor is positioned past the NUL of a line.
相关文件: src/ops.c
Patch 7.0.043
问题: Using "%!" at the start of 'statusline' doesn't work.
解决方案: Recognize the special item when the option is being set.
相关文件: src/option.c
Patch 7.0.044
问题: Perl: setting a buffer line in another buffer may result in
changing the current buffer.
解决方案: Properly change to the buffer to be changed.
相关文件: src/if_perl.xs
Patch 7.0.045 (extra)
问题: Win32: Warnings when compiling OLE version with MSVC 2005.
解决方案: Move including vim.h to before windows.h. (Ilya Bobir)
相关文件: src/if_ole.cpp
Patch 7.0.046
问题: The matchparen plugin ignores parens in strings, but not in single
quotes, often marked with "character".
解决方案: Also ignore parens in syntax items matching "character".
相关文件: runtime/plugin/matchparen.vim
Patch 7.0.047
问题: When running configure the exit status is wrong.
解决方案: Handle the exit status properly. (Matthew Woehlke)
相关文件: configure, src/configure
Patch 7.0.048
问题: Writing a compressed file fails when there are parens in the name.
(Wang Jian)
解决方案: Put quotes around the temp file name.
相关文件: runtime/autoload/gzip.vim
Patch 7.0.049
问题: Some TCL scripts are not recognized. (Steven Atkinson)
解决方案: Check for "exec wish" in the file.
相关文件: runtime/scripts.vim
Patch 7.0.050
问题: After using the netbeans interface close command a stale pointer
may be used.
解决方案: Clear the pointer to the closed buffer. (Xavier de Gaye)
相关文件: src/netbeans.c
Patch 7.0.051 (after 7.0.44)
问题: The Perl interface doesn't compile or doesn't work properly.
解决方案: Remove the spaces before #ifdef and avoid an empty line above it.
相关文件: src/if_perl.xs
Patch 7.0.052
问题: The user may not be aware that the Vim server allows others more
functionality than desired.
解决方案: When running Vim as root don't become a Vim server without an
explicit --servername argument.
相关文件: src/main.c
Patch 7.0.053
问题: Shortening a directory name may fail when there are multi-byte
characters.
解决方案: Copy the correct bytes. (Titov Anatoly)
相关文件: src/misc1.c
Patch 7.0.054
问题: Mac: Using a menu name that only has a mnemonic or accelerator
causes a crash. (Elliot Shank)
解决方案: Check for an empty menu name. Also delete empty submenus that
were created before detecting the error.
相关文件: src/menu.c
Patch 7.0.055
问题: ":startinsert" in a CmdwinEnter autocommand doesn't take immediate
effect. (Bradley White)
解决方案: Put a NOP key in the typeahead buffer. Also avoid that using
CTRL-C to go back to the command line moves the cursor left.
相关文件: src/edit.c, src/ex_getln.c
Patch 7.0.056
问题: "#!something" gives an error message.
解决方案: Ignore this line, so that it can be used in an executable Vim
script.
相关文件: src/ex_docmd.c
Patch 7.0.057 (extra, after 7.0.45)
问题: Win32: Compilation problem with Borland C 5.5.
解决方案: Include vim.h as before. (Mark S. Williams)
相关文件: src/if_ole.cpp
Patch 7.0.058
问题: The gbk and gb18030 encodings are not recognized.
解决方案: Add aliases to cp936. (Edward L. Fox)
相关文件: src/mbyte.c
Patch 7.0.059
问题: The Perl interface doesn't compile with ActiveState Perl 5.8.8.
解决方案: Remove the __attribute__() items. (Liu Yubao)
相关文件: src/if_perl.xs
Patch 7.0.060 (after 7.0.51)
问题: Code for temporarily switching to another buffer is duplicated in
quite a few places.
解决方案: Use aucmd_prepbuf() and aucmd_restbuf() also when FEAT_AUTOCMD is
not defined.
相关文件: src/buffer.c, src/eval.c, src/fileio.c, src/if_ruby.c,
src/if_perl.xs, src/quickfix.c, src/structs.h
Patch 7.0.061
问题: Insert mode completion for Vim commands may crash if there is
nothing to complete.
解决方案: Instead of freeing the pattern make it empty, so that a "not
found" error is given. (Yukihiro Nakadaira)
相关文件: src/edit.c
Patch 7.0.062
问题: Mac: Crash when using the popup menu for spell correction. The
popup menu appears twice when letting go of the right mouse button
early.
解决方案: Don't show the popup menu on the release of the right mouse
button. Also check that a menu pointer is actually valid.
相关文件: src/proto/menu.pro, src/menu.c, src/normal.c, src/term.c
Patch 7.0.063
问题: Tiny chance for a memory leak. (coverity)
解决方案: Free pointer when next memory allocation fails.
相关文件: src/eval.c
Patch 7.0.064
问题: Using uninitialized variable. (Tony Mechelynck)
解决方案: When not used set "temp" to zero. Also avoid a warning for
"files" in ins_compl_dictionaries().
相关文件: src/edit.c
Patch 7.0.065 (extra)
问题: Mac: left-right movement of the scrollwheel causes up-down
scrolling.
解决方案: Ignore mouse wheel events that are not up-down. (Nicolas Weber)
相关文件: src/gui_mac.c
Patch 7.0.066
问题: After the popup menu for Insert mode completion overlaps the tab
pages line it is not completely removed.
解决方案: Redraw the tab pages line after removing the popup menu. (Ori
Avtalion)
相关文件: src/popupmnu.c
Patch 7.0.067
问题: Undo doesn't always work properly when using "scim" input method.
Undo is split up when using preediting.
解决方案: Reset xim_has_preediting also when preedit_start_col is not
MAXCOL. Don't split undo when <Left> is used while preediting.
(Yukihiro Nakadaira)
相关文件: src/edit.c, src/mbyte.c
Patch 7.0.068
问题: When 'ignorecase' is set and using Insert mode completion,
typing characters to change the list of matches, case is not
ignored. (Hugo Ahlenius)
解决方案: Store the 'ignorecase' flag with the matches where needed.
相关文件: src/edit.c, src/search.c, src/spell.c
Patch 7.0.069
问题: Setting 'guitablabel' to %!expand(\%) causes Vim to free an
invalid pointer. (Kim Schulz)
解决方案: Don't try freeing a constant string pointer.
相关文件: src/buffer.c
Patch 7.0.070
问题: Compiler warnings for shadowed variables and uninitialized
variables.
解决方案: Rename variables such as "index", "msg" and "dup". Initialize
variables.
相关文件: src/edit.c, src/eval.c, src/ex_cmds.c, src/ex_cmds2.c,
src/ex_docmd.c, src/gui_beval.c, src/gui_gtk.c, src/gui_gtk_x11.c,
src/hardcopy.c, src/if_cscope.c, src/main.c, src/mbyte.c,
src/memline.c, src/netbeans.c, src/normal.c, src/option.c,
src/os_unix.c, src/quickfix.c, src/regexp.c, src/screen.c,
src/search.c, src/spell.c, src/ui.c, src/undo.c, src/window.c,
src/version.c
Patch 7.0.071
问题: Using an empty search pattern may cause a crash.
解决方案: Avoid using a NULL pointer.
相关文件: src/search.c
Patch 7.0.072
问题: When starting the GUI fails there is no way to adjust settings or
do something else.
解决方案: Add the GUIFailed autocommand event.
相关文件: src/fileio.c, src/gui.c, src/vim.h
Patch 7.0.073
问题: Insert mode completion: Typing <CR> sometimes selects the original
text instead of keeping what was typed. (Justin Constantino)
解决方案: Don't let <CR> select the original text if there is no popup menu.
相关文件: src/edit.c
Patch 7.0.074 (extra)
问题: Win32: tooltips were not converted from 'encoding' to Unicode.
解决方案: Set the tooltip to use Unicode and do the conversion. Also
cleanup the code for the tab pages tooltips. (Yukihiro Nakadaira)
相关文件: src/gui_w32.c, src/gui_w48.c
Patch 7.0.075
问题: winsaveview() did not store the actual value of the desired cursor
column. This could move the cursor in the matchparen plugin.
解决方案: Call update_curswant() before using the value w_curswant.
相关文件: src/eval.c
Patch 7.0.076 (after 7.0.010)
问题: Automatic downloading of spell files only works for ftp.
解决方案: Don't add login and password for non-ftp URLs. (Alexander Patrakov)
相关文件: runtime/autoload/spellfile.vim
Patch 7.0.077
问题: ":unlet v:this_session" causes a crash. (Marius Roets)
解决方案: When trying to unlet a fixed variable give an error message.
相关文件: src/eval.c
Patch 7.0.078
问题: There are two error messages E46.
解决方案: Change the number for the sandbox message to E794.
相关文件: src/globals.h
Patch 7.0.079
问题: Russian tutor doesn't work when 'encoding' is "utf-8".
解决方案: Use tutor.ru.utf-8 as the master, and generate the other encodings
from it. Select the right tutor depending on 'encoding'. (Alexey
Froloff)
相关文件: runtime/tutor/Makefile, runtime/tutor/tutor.vim,
runtime/tutor/tutor.ru.utf-8
Patch 7.0.080
问题: Generating auto/pathdef.c fails for CFLAGS with a backslash.
解决方案: Double backslashes in the string. (Alexey Froloff)
相关文件: src/Makefile
Patch 7.0.081
问题: Command line completion doesn't work for a shell command with an
absolute path.
解决方案: Don't use $PATH when there is an absolute path.
相关文件: src/ex_getln.c
Patch 7.0.082
问题: Calling a function that waits for input may cause List and
Dictionary arguments to be freed by the garbage collector.
解决方案: Keep a list of all arguments to internal functions.
相关文件: src/eval.c
Patch 7.0.083
问题: Clicking with the mouse on an item for inputlist() doesn't work
when 'compatible' is set and/or when 'cmdheight' is more than one.
(Christian J. Robinson)
解决方案: Also decrement "lines_left" when 'more' isn't set. Set
"cmdline_row" to zero to get all mouse events.
相关文件: src/message.c, src/misc1.c
Patch 7.0.084
问题: The garbage collector may do its work while some Lists or
Dictionaries are used internally, e.g., by ":echo" that runs into
the more-prompt or ":echo [garbagecollect()]".
解决方案: Only do garbage collection when waiting for a character at the
toplevel. Let garbagecollect() set a flag that is handled at the
toplevel before waiting for a character.
相关文件: src/eval.c, src/getchar.c, src/globals.h, src/main.c
Patch 7.0.085
问题: When doing "make test" the viminfo file is modified.
解决方案: Use another viminfo file after setting 'compatible'.
相关文件: src/testdir/test56.in
Patch 7.0.086
问题: getqflist() returns entries for pattern and text with the number
zero. Passing these to setqflist() results in the string "0".
解决方案: Use an empty string instead of the number zero.
相关文件: src/quickfix.c
Patch 7.0.087
问题: After ":file fname" and ":saveas fname" the 'autochdir' option
does not take effect. (Yakov Lerner)
Commands for handling 'autochdir' are repeated many times.
解决方案: Add the DO_AUTOCHDIR macro and do_autochdir(). Use it for
":file fname" and ":saveas fname".
相关文件: src/proto/buffer.pro, src/buffer.c, src/ex_cmds.c, src/macros.h,
src/netbeans.c, src/option.c, src/window.c
Patch 7.0.088
问题: When compiled with Perl the generated prototypes have "extern"
unnecessarily added.
解决方案: Remove the "-pipe" argument from PERL_CFLAGS.
相关文件: src/auto/configure, src/configure.in
Patch 7.0.089
问题: "ga" does not work properly for a non-Unicode multi-byte encoding.
解决方案: Only check for composing chars for utf-8. (Taro Muraoka)
相关文件: src/ex_cmds.c
Patch 7.0.090
问题: Cancelling the conform() dialog on the console with Esc requires
typing it twice. (Benji Fisher)
解决方案: When the start of an escape sequence is found use 'timeoutlen' or
'ttimeoutlen'.
相关文件: src/misc1.c
Patch 7.0.091
问题: Using winrestview() while 'showcmd' is set causes the cursor to be
displayed in the wrong position. (Yakov Lerner)
解决方案: Set the window topline properly.
相关文件: src/eval.c
Patch 7.0.092 (after 7.0.082 and 7.0.084)
问题: The list of internal function arguments is obsolete now that
garbage collection is only done at the toplevel.
解决方案: Remove the list of all arguments to internal functions.
相关文件: src/eval.c
Patch 7.0.093
问题: The matchparen plugin can't handle a 'matchpairs' value where a
colon is matched.
解决方案: Change the split() that is used to change 'matchpairs' into a
List.
相关文件: runtime/plugin/matchparen.vim
Patch 7.0.094
问题: When a hidden buffer is made the current buffer and another file
edited later, the file message will still be given. Using
":silent" also doesn't prevent the file message. (Marvin Renich)
解决方案: Reset the need_fileinfo flag when reading a file. Don't set
need_fileinfo when msg_silent is set.
相关文件: src/buffer.c, src/fileio.c
Patch 7.0.095
问题: The Greek tutor is not available in utf-8. "el" is used for the
language, only "gr" for the country is recognized.
解决方案: Add the utf-8 Greek tutor. Use it for conversion to iso-8859-7
and cp737. (Lefteris Dimitroulakis)
相关文件: runtime/tutor/Makefile, runtime/tutor/tutor.gr.utf-8,
runtime/tutor/tutor.vim
Patch 7.0.096
问题: taglist() returns the filename relative to the tags file, while
the directory of the tags file is unknown. (Hari Krishna Dara)
解决方案: Expand the file name. (Yegappan Lakshmanan)
相关文件: src/tag.c
Patch 7.0.097
问题: ":tabclose N" that closes another tab page does not remove the tab
pages line. Same problem when using the mouse.
解决方案: Adjust the tab pages line when needed in tabpage_close_other().
相关文件: src/ex_docmd.c
Patch 7.0.098
问题: Redirecting command output in a cmdline completion function
doesn't work. (Hari Krishna Dara)
解决方案: Enable redirection when redirection is started.
相关文件: src/ex_docmd.c, src/ex_getln.c
Patch 7.0.099
问题: GUI: When the popup menu is visible using the scrollbar messes up
the display.
解决方案: Disallow scrolling the current window. Redraw the popup menu
after scrolling another window.
相关文件: src/gui.c
Patch 7.0.100
问题: "zug" may report the wrong filename. (Lawrence Kesteloot)
解决方案: Call home_replace() to fill NameBuff[].
相关文件: src/spell.c
Patch 7.0.101
问题: When the "~/.vim/spell" directory does not exist "zg" may create
a wrong directory. "zw" doesn't work.
解决方案: Use the directory of the file name instead of NameBuff. For "zw"
not only remove a good word but also add the word with "!".
相关文件: src/spell.c
Patch 7.0.102
问题: Redrawing cmdline is not correct when using SCIM.
解决方案: Don't call im_get_status(). (Yukihiro Nakadaira)
相关文件: src/ex_getln.c
Patch 7.0.103 (after 7.0.101)
问题: Compiler warning for uninitialized variable. (Tony Mechelynck)
解决方案: Init variable.
相关文件: src/spell.c
Patch 7.0.104
问题: The CursorHoldI event only triggers once in Insert mode. It also
triggers after CTRL-V and other two-key commands.
解决方案: Set "did_cursorhold" before getting a second key. Reset
"did_cursorhold" after handling a command.
相关文件: src/edit.c, src/fileio.c
Patch 7.0.105
问题: When using incremental search the statusline ruler isn't updated.
(Christoph Koegl)
解决方案: Update the statusline when it contains the ruler.
相关文件: src/ex_getln.c
Patch 7.0.106
问题: The spell popup menu uses ":amenu", triggering mappings. Other
PopupMenu autocommands are removed. (John Little)
解决方案: Use ":anoremenu" and use an autocmd group.
相关文件: runtime/menu.vim
Patch 7.0.107
问题: Incremental search doesn't redraw the text tabline. (Ilya Bobir)
Also happens in other situations with one window in a tab page.
解决方案: Redraw the tabline after clearing the screen.
相关文件: src/screen.c
Patch 7.0.108 (extra)
问题: Amiga: Compilation problem.
解决方案: Have mch_mkdir() return a failure flag. (Willy Catteau)
相关文件: src/os_amiga.c, src/proto/os_amiga.pro
Patch 7.0.109
问题: Lisp indenting is confused by escaped quotes in strings. (Dorai
Sitaram)
解决方案: Check for backslash inside strings. (Sergey Khorev)
相关文件: src/misc1.c
Patch 7.0.110
问题: Amiga: Compilation problems when not using libnix.
解决方案: Change a few #ifdefs. (Willy Catteau)
相关文件: src/memfile.c
Patch 7.0.111
问题: The gzip plugin can't handle filenames with single quotes.
解决方案: Add and use the shellescape() function. (partly by Alexey Froloff)
相关文件: runtime/autoload/gzip.vim, runtime/doc/eval.txt, src/eval.c,
src/mbyte.c, src/misc2.c, src/proto/misc2.pro
Patch 7.0.112
问题: Python interface does not work with Python 2.5.
解决方案: Change PyMem_DEL() to Py_DECREF(). (Sumner Hayes)
相关文件: src/if_python.c
Patch 7.0.113
问题: Using CTRL-L in Insert completion when there is no current match
may cause a crash. (Yukihiro Nakadaira)
解决方案: Check for compl_leader to be NULL
相关文件: src/edit.c
Patch 7.0.114
问题: When aborting an insert with CTRL-C an extra undo point is
created in the GUI. (Yukihiro Nakadaira)
解决方案: Call gotchars() only when advancing.
相关文件: src/getchar.c
Patch 7.0.115
问题: When 'ignorecase' is set, Insert mode completion only adds "foo"
and not "Foo" when both are found.
A found match isn't displayed right away when 'completeopt' does
not have "menu" or "menuone".
解决方案: Do not ignore case when checking if a completion match already
exists. call ins_compl_check_keys() also when not using a popup
menu. (Yukihiro Nakadaira)
相关文件: src/edit.c
Patch 7.0.116
问题: 64 bit Windows version reports "32 bit" in the ":version" output.
(M. Veerman)
解决方案: Change the text for Win64.
相关文件: src/version.c
Patch 7.0.117
问题: Using "extend" on a syntax item inside a region with "keepend", an
intermediate item may be truncated.
When applying the "keepend" and there is an offset to the end
pattern the highlighting of a contained item isn't adjusted.
解决方案: Use the seen_keepend flag to remember when to apply the "keepend"
flag. Adjust the keepend highlighting properly. (Ilya Bobir)
相关文件: src/syntax.c
Patch 7.0.118
问题: printf() does not do zero padding for strings.
解决方案: Do allow zero padding for strings.
相关文件: src/message.c
Patch 7.0.119
问题: When going back from Insert to Normal mode the CursorHold event
doesn't trigger. (Yakov Lerner)
解决方案: Reset "did_cursorhold" when leaving Insert mode.
相关文件: src/edit.c
Patch 7.0.120
问题: Crash when using CTRL-R = at the command line and entering
"getreg('=')". (James Vega)
解决方案: Avoid recursiveness of evaluating the = register.
相关文件: src/ops.c
Patch 7.0.121
问题: GUI: Dragging the last status line doesn't work when there is a
text tabline. (Markus Wolf)
解决方案: Take the text tabline into account when deciding to start modeless
selection.
相关文件: src/gui.c
Patch 7.0.122
问题: GUI: When clearing after a bold, double-wide character half a
character may be drawn.
解决方案: Check for double-wide character and redraw it. (Yukihiro Nakadaira)
相关文件: src/screen.c
Patch 7.0.123
问题: On SCO Openserver configure selects the wrong terminal library.
解决方案: Put terminfo before the other libraries. (Roger Cornelius)
Also fix a small problem compiling on Mac without Darwin.
相关文件: src/configure.in, src/auto/configure
Patch 7.0.124
问题: getwinvar() obtains a dictionary with window-local variables, but
it's always for the current window.
解决方案: Get the variables of the specified window. (Geoff Reedy)
相关文件: src/eval.c
Patch 7.0.125
问题: When "autoselect" is in the 'clipboard' option then the '< and '>
marks are set while Visual mode is still active.
解决方案: Don't set the '< and '> marks when yanking the selected area for
the clipboard.
相关文件: src/normal.c
Patch 7.0.126
问题: When 'formatexpr' uses setline() and later internal formatting is
used undo information is not correct. (Jiri Cerny, Benji Fisher)
解决方案: Set ins_need_undo after using 'formatexpr'.
相关文件: src/edit.c
Patch 7.0.127
问题: Crash when swap files has invalid timestamp.
解决方案: Check return value of ctime() for being NULL.
相关文件: src/memline.c
Patch 7.0.128
问题: GUI: when closing gvim is cancelled because there is a changed
buffer the screen isn't updated to show the changed buffer in the
current window. (Krzysztof Kacprzak)
解决方案: Redraw when closing gvim is cancelled.
相关文件: src/gui.c
Patch 7.0.129
问题: GTK GUI: the GTK file dialog can't handle a relative path.
解决方案: Make the initial directory a full path before passing it to GTK.
(James Vega) Also postpone adding the default file name until
after setting the directory.
相关文件: src/gui_gtk.c
Patch 7.0.130 (extra)
问题: Win32: Trying to edit or write devices may cause Vim to get stuck.
解决方案: Add the 'opendevice' option, default off. Disallow
reading/writing from/to devices when it's off.
Also detect more devices by the full name starting with "\\.\".
相关文件: runtime/doc/options.txt, src/fileio.c, src/option.c, src/option.h,
src/os_win32.c
Patch 7.0.131
问题: Win32: "vim -r" does not list all the swap files.
解决方案: Also check for swap files starting with a dot.
相关文件: src/memline.c
Patch 7.0.132 (after 7.0.130)
问题: Win32: Crash when Vim reads from stdin.
解决方案: Only use mch_nodetype() when there is a file name.
相关文件: src/fileio.c
Patch 7.0.133
问题: When searching included files messages are added to the history.
解决方案: Set msg_hist_off for messages about scanning included files.
Set msg_silent to avoid message about wrapping around.
相关文件: src/edit.c, src/globals.h, src/message.c, src/search.c
Patch 7.0.134
问题: Crash when comparing a recursively looped List or Dictionary.
解决方案: Limit recursiveness for comparing to 1000.
相关文件: src/eval.c
Patch 7.0.135
问题: Crash when garbage collecting list or dict with loop.
解决方案: Don't use DEL_REFCOUNT but don't recurse into Lists and
Dictionaries when freeing them in the garbage collector.
Also add allocated Dictionaries to the list of Dictionaries to
avoid leaking memory.
相关文件: src/eval.c, src/proto/eval.pro, src/tag.c
Patch 7.0.136
问题: Using "O" while matching parens are highlighted may not remove the
highlighting. (Ilya Bobir)
解决方案: Also trigger CursorMoved when a line is inserted under the cursor.
相关文件: src/misc1.c
Patch 7.0.137
问题: Configure check for big features is wrong.
解决方案: Change "==" to "=". (Martti Kuparinen)
相关文件: src/auto/configure, src/configure.in
Patch 7.0.138 (extra)
问题: Mac: modifiers don't work with function keys.
解决方案: Use GetEventParameter() to obtain modifiers. (Nicolas Weber)
相关文件: src/gui_mac.c
Patch 7.0.139
问题: Using CTRL-PageUp or CTRL-PageDown in Insert mode to go to another
tab page does not prepare for undo properly. (Stefano Zacchiroli)
解决方案: Call start_arrow() before switching tab page.
相关文件: src/edit.c
Patch 7.0.140 (after 7.0.134)
问题: Comparing recursively looped List or Dictionary doesn't work well.
解决方案: Detect comparing a List or Dictionary with itself.
相关文件: src/eval.c
Patch 7.0.141
问题: When pasting a while line on the command line an extra CR is added
literally.
解决方案: Don't add the trailing CR when pasting with the mouse.
相关文件: src/ex_getln.c, src/proto/ops.pro, src/ops.c
Patch 7.0.142
问题: Using the middle mouse button in Select mode to paste text results
in an extra "y". (Kriton Kyrimis)
解决方案: Let the middle mouse button replace the selected text with the
contents of the clipboard.
相关文件: src/normal.c
Patch 7.0.143
问题: Setting 'scroll' to its default value was not handled correctly.
解决方案: Compare the right field to PV_SCROLL.
相关文件: src/option.c
Patch 7.0.144
问题: May compare two unrelated pointers when matching a pattern against
a string. (Dominique Pelle)
解决方案: Avoid calling reg_getline() when REG_MULTI is false.
相关文件: src/regexp.c
Patch 7.0.145 (after 7.0.142)
问题: Compiler warning.
解决方案: Add type cast.
相关文件: src/normal.c
Patch 7.0.146
问题: When 'switchbuf' is set to "usetab" and the current tab has only a
quickfix window, jumping to an error always opens a new window.
Also, when the buffer is open in another tab page it's not found.
解决方案: Check for the "split" value of 'switchbuf' properly. Search in
other tab pages for the desired buffer. (Yegappan Lakshmanan)
相关文件: src/buffer.c, src/quickfix.c
Patch 7.0.147
问题: When creating a session file and there are several tab pages and
some windows have a local directory a short file name may be used
when it's not valid. (Marius Roets)
A session with multiple tab pages may result in "No Name" buffers.
(Bill McCarthy)
解决方案: Don't enter tab pages when going through the list, only use a
pointer to the first window in each tab page.
Use "tabedit" instead of "tabnew | edit" when possible.
相关文件: src/ex_docmd.c
Patch 7.0.148
问题: When doing "call a.xyz()" and "xyz" does not exist in dictionary
"a" there is no error message. (Yegappan Lakshmanan)
解决方案: Add the error message.
相关文件: src/eval.c
Patch 7.0.149
问题: When resizing a window that shows "~" lines the text sometimes
jumps down.
解决方案: Remove code that uses "~" lines in some situations. Fix the
computation of the screen line of the cursor. Also set w_skipcol
to handle very long lines.
相关文件: src/misc1.c, src/window.c
Patch 7.0.150
问题: When resizing the Vim window scrollbinding doesn't work. (Yakov
Lerner)
解决方案: Do scrollbinding in set_shellsize().
相关文件: src/term.c
Patch 7.0.151
问题: Buttons in file dialog are not according to Gnome guidelines.
解决方案: Swap Cancel and Open buttons. (Stefano Zacchiroli)
相关文件: src/gui_gtk.c
Patch 7.0.152
问题: Crash when using lesstif 2.
解决方案: Fill in the extension field. (Ben Hutchings)
相关文件: src/gui_xmebw.c
Patch 7.0.153
问题: When using cscope and opening the temp file fails Vim crashes.
(Kaya Bekiroglu)
解决方案: Check for NULL pointer returned from mch_open().
相关文件: src/if_cscope.c
Patch 7.0.154
问题: When 'foldnestmax' is negative Vim can hang. (James Vega)
解决方案: Avoid the fold level becoming negative.
相关文件: src/fold.c, src/syntax.c
Patch 7.0.155
问题: When getchar() returns a mouse button click there is no way to get
the mouse coordinates.
解决方案: Add v:mouse_win, v:mouse_lnum and v:mouse_col.
相关文件: runtime/doc/eval.txt, src/eval.c, src/vim.h
Patch 7.0.156 (extra)
问题: Vim doesn't compile for Amiga OS 4.
解决方案: Various changes for Amiga OS4. (Peter Bengtsson)
相关文件: src/feature.h, src/mbyte.c, src/memfile.c, src/memline.c,
src/os_amiga.c, src/os_amiga.h, src/pty.c
Patch 7.0.157
问题: When a function is used recursively the profiling information is
invalid. (Mikolaj Machowski)
解决方案: Put the start time on the stack instead of in the function.
相关文件: src/eval.c
Patch 7.0.158
问题: In a C file with ":set foldmethod=syntax", typing {<CR> on the
last line results in the cursor being in a closed fold. (Gautam
Iyer)
解决方案: Open fold after inserting a new line.
相关文件: src/edit.c
Patch 7.0.159
问题: When there is an I/O error in the swap file the cause of the error
cannot be seen.
解决方案: Use PERROR() instead of EMSG() where possible.
相关文件: src/memfile.c
Patch 7.0.160
问题: ":@a" echoes the command, Vi doesn't do that.
解决方案: Set the silent flag in the typeahead buffer to avoid echoing the
command.
相关文件: src/ex_docmd.c, src/normal.c, src/ops.c, src/proto/ops.pro
Patch 7.0.161
问题: Win32: Tab pages line popup menu isn't using the right encoding.
(Yongwei Wu)
解决方案: Convert the text when necessary. Also fixes the Find/Replace
dialog title. (Yegappan Lakshmanan)
相关文件: src/gui_w48.c
Patch 7.0.162
问题: "vim -o a b" when file "a" triggers the ATTENTION dialog,
selecting "Quit" exits Vim instead of editing "b" only.
When file "b" triggers the ATTENTION dialog selecting "Quit" or
"Abort" results in editing file "a" in that window.
解决方案: When selecting "Abort" exit Vim. When selecting "Quit" close the
window. Also avoid hit-enter prompt when selecting Abort.
相关文件: src/buffer.c, src/main.c
Patch 7.0.163
问题: Can't retrieve the position of a sign after it was set.
解决方案: Add the netbeans interface getAnno command. (Xavier de Gaye)
相关文件: runtime/doc/netbeans.txt, src/netbeans.c
Patch 7.0.164
问题: ":redir @+" doesn't work.
解决方案: Accept "@+" just like "@*". (Yegappan Lakshmanan)
相关文件: src/ex_docmd.c
Patch 7.0.165
问题: Using CTRL-L at the search prompt adds a "/" and other characters
without escaping, causing the pattern not to match.
解决方案: Escape special characters with a backslash.
相关文件: src/ex_getln.c
Patch 7.0.166
问题: Crash in cscope code when connection could not be opened.
(Kaya Bekiroglu)
解决方案: Check for the file descriptor to be NULL.
相关文件: src/if_cscope.c
Patch 7.0.167
问题: ":function" redefining a dict function doesn't work properly.
(Richard Emberson)
解决方案: Allow a function name to be a number when it's a function
reference.
相关文件: src/eval.c
Patch 7.0.168
问题: Using uninitialized memory and memory leak. (Dominique Pelle)
解决方案: Use alloc_clear() instead of alloc() for w_lines. Free
b_ml.ml_stack after recovery.
相关文件: src/memline.c, src/window.c
Patch 7.0.169
问题: With a Visual block selection, with the cursor in the left upper
corner, pressing "I" doesn't remove the highlighting. (Guopeng
Wen)
解决方案: When checking if redrawing is needed also check if Visual
selection is still active.
相关文件: src/screen.c
Patch 7.0.170 (extra)
问题: Win32: Using "gvim --remote-tab foo" when gvim is minimized while
it previously was maximized, un-maximizing doesn't work properly.
And the labels are not displayed properly when 'encoding' is
utf-8.
解决方案: When minimized check for SW_SHOWMINIMIZED. When updating the tab
pages line use TCM_SETITEMW instead of TCM_INSERTITEMW. (Liu
Yubao)
相关文件: src/gui_w48.c
Patch 7.0.171 (extra)
问题: VMS: A file name with multiple paths is written in the wrong file.
解决方案: Get the actually used file name. (Zoltan Arpadffy)
Also add info to the :version command about compilation.
相关文件: src/Make_vms.mms, src/buffer.c, src/os_unix.c, src/version.c
Patch 7.0.172
问题: Crash when recovering and quitting at the "press-enter" prompt.
解决方案: Check for "msg_list" to be NULL. (Liu Yubao)
相关文件: src/ex_eval.c
Patch 7.0.173
问题: ":call f().TT()" doesn't work. (Richard Emberson)
解决方案: When a function returns a Dictionary or another composite continue
evaluating what follows.
相关文件: src/eval.c
Patch 7.0.174
问题: ":mksession" doesn't restore window layout correctly in tab pages
other than the current one. (Zhibin He)
解决方案: Use the correct topframe for producing the window layout commands.
相关文件: src/ex_docmd.c
Patch 7.0.175
问题: The result of tr() is missing the terminating NUL. (Ingo Karkat)
解决方案: Add the NUL.
相关文件: src/eval.c
Patch 7.0.176
问题: ":emenu" isn't executed directly, causing the encryption key
prompt to fail. (Life Jazzer)
解决方案: Fix wrong #ifdef.
相关文件: src/menu.c
Patch 7.0.177
问题: When the press-enter prompt gets a character from a non-remappable
mapping, it's put back in the typeahead buffer as remappable,
which may cause an endless loop.
解决方案: Restore the non-remappable flag and the silent flag when putting a
char back in the typeahead buffer.
相关文件: src/getchar.c, src/message.c, src/normal.c
Patch 7.0.178
问题: When 'enc' is "utf-8" and 'ignorecase' is set the result of ":echo
("\xe4" == "\xe4")" varies.
解决方案: In mb_strnicmp() avoid looking past NUL bytes.
相关文件: src/mbyte.c
Patch 7.0.179
问题: Using ":recover" or "vim -r" without a swapfile crashes Vim.
解决方案: Check for "buf" to be unequal NULL. (Yukihiro Nakadaira)
相关文件: src/memline.c
Patch 7.0.180 (extra, after 7.0.171)
问题: VMS: build failed. Problem with swapfiles.
解决方案: Add "compiled_arch". Always expand path and pass it to
buf_modname(). (Zoltan Arpadffy)
相关文件: src/globals.h, src/memline.c, src/os_unix.c, runtime/menu.vim
Patch 7.0.181
问题: When reloading a file that starts with an empty line, the reloaded
buffer has an extra empty line at the end. (Motty Lentzitzky)
解决方案: Delete all lines, don't use bufempty().
相关文件: src/fileio.c
Patch 7.0.182
问题: When using a mix of undo and "g-" it may no longer be possible to
go to every point in the undo tree. (Andy Wokula)
解决方案: Correctly update pointers in the undo tree.
相关文件: src/undo.c
Patch 7.0.183
问题: Crash in ":let" when redirecting to a variable that's being
displayed. (Thomas Link)
解决方案: When redirecting to a variable only do the assignment when
stopping redirection to avoid that setting the variable causes a
freed string to be accessed.
相关文件: src/eval.c
Patch 7.0.184
问题: When the cscope program is called "mlcscope" the Cscope interface
doesn't work.
解决方案: Accept "\S*cscope:" instead of "cscope:". (Frodak D. Baksik)
相关文件: src/if_cscope.c
Patch 7.0.185
问题: Multi-byte characters in a message are displayed with attributes
from what comes before it.
解决方案: Don't use the attributes for a multi-byte character. Do use
attributes for special characters. (Yukihiro Nakadaira)
相关文件: src/message.c
Patch 7.0.186
问题: Get an ml_get error when 'encoding' is "utf-8" and searching for
"/\_s*/e" in an empty buffer. (Andrew Maykov)
解决方案: Don't try getting the line just below the last line.
相关文件: src/search.c
Patch 7.0.187
问题: Can't source a remote script properly.
解决方案: Add the SourceCmd event. (Charles Campbell)
相关文件: runtime/doc/autocmd.txt, src/ex_cmds2.c, src/fileio.c, src/vim.h
Patch 7.0.188 (after 7.0.186)
问题: Warning for wrong pointer type.
解决方案: Add a type cast.
相关文件: src/search.c
Patch 7.0.189
问题: Translated message about finding matches is truncated. (Yukihiro
Nakadaira)
解决方案: Enlarge the buffer. Also use vim_snprintf().
相关文件: src/edit.c
Patch 7.0.190
问题: "syntax spell default" results in an error message.
解决方案: Change 4 to 7 for STRNICMP(). (Raul Nunez de Arenas Coronado)
相关文件: src/syntax.c
Patch 7.0.191
问题: The items used by getqflist() and setqflist() don't match.
解决方案: Support the "bufnum" item for setqflist(). (Yegappan Lakshmanan)
相关文件: runtime/doc/eval.txt, src/quickfix.c
Patch 7.0.192
问题: When 'swapfile' is switched off in an empty file it is possible
that not all blocks are loaded into memory, causing ml_get errors
later.
解决方案: Rename "dont_release" to "mf_dont_release" and also use it to
avoid using the cached line and locked block.
相关文件: src/globals.h, src/memfile.c, src/memline.c
Patch 7.0.193
问题: Using --remote or --remote-tab with an argument that matches
'wildignore' causes a crash.
解决方案: Check the argument count before using ARGLIST[0].
相关文件: src/ex_cmds.c
Patch 7.0.194
问题: Once an ml_get error is given redrawing part of the screen may
cause it again, resulting in an endless loop.
解决方案: Don't give the error message for a recursive call.
相关文件: src/memline.c
Patch 7.0.195
问题: When a buffer is modified and 'autowriteall' is set, ":quit"
results in an endless loop when there is a conversion error while
writing. (Nikolai Weibull)
解决方案: Make autowrite() return FAIL if the buffer is still changed after
writing it.
/* put the cursor on the last char, for 'tw' formatting */
相关文件: src/ex_cmds2.c
Patch 7.0.196
问题: When using ":vert ball" the computation of the mouse pointer
position may be off by one column. (Stefan Karlsson)
解决方案: Recompute the frame width when moving the vertical separator from
one window to another.
相关文件: src/window.c
Patch 7.0.197 (extra)
问题: Win32: Compiling with EXITFREE doesn't work.
解决方案: Adjust a few #ifdefs. (Alexei Alexandrof)
相关文件: src/misc2.c, src/os_mswin.c
Patch 7.0.198 (extra)
问题: Win32: Compiler warnings. No need to generate gvim.exe.mnf.
解决方案: Add type casts. Use "*" for processorArchitecture. (George Reilly)
相关文件: src/Make_mvc.mak, src/eval.c, src/gvim.exe.mnf, src/misc2.c
Patch 7.0.199
问题: When using multi-byte characters the combination of completion and
formatting may result in a wrong cursor position.
解决方案: Don't decrement the cursor column, use dec_cursor(). (Yukihiro
Nakadaira) Also check for the column to be zero.
相关文件: src/edit.c
Patch 7.0.200
问题: Memory leaks when out of memory.
解决方案: Free the memory.
相关文件: src/edit.c, src/diff.c
Patch 7.0.201
问题: Message for ":diffput" about buffer not being in diff mode may be
wrong.
解决方案: Check for buffer in diff mode but not modifiable.
相关文件: src/diff.c
Patch 7.0.202
问题: Problems on Tandem systems while compiling and at runtime.
解决方案: Recognize root uid is 65535. Check select() return value for it
not being supported. Avoid wrong function prototypes. Mention
use of -lfloss. (Matthew Woehlke)
相关文件: src/Makefile, src/ex_cmds.c, src/fileio.c, src/main.c,
src/osdef1.h.in, src/osdef2.h.in, src/os_unix.c, src/pty.c,
src/vim.h
Patch 7.0.203
问题: 0x80 characters in a register are not handled correctly for the
"@" command.
解决方案: Escape CSI and 0x80 characters. (Yukihiro Nakadaira)
相关文件: src/ops.c
Patch 7.0.204
问题: Cscope: Parsing matches for listing isn't done properly.
解决方案: Check for line number being found. (Yu Zhao)
相关文件: src/if_cscope.c
Patch 7.0.205 (after 7.0.203)
问题: Can't compile.
解决方案: Always include the vim_strsave_escape_csi function.
相关文件: src/getchar.c
Patch 7.0.206 (after 7.0.058)
问题: Some characters of the "gb18030" encoding are not handled
properly.
解决方案: Do not use "cp936" as an alias for "gb18030" encoding. Instead
initialize 'encoding' to "cp936".
相关文件: src/mbyte.c, src/option.c
Patch 7.0.207
问题: After patch 2.0.203 CSI and K_SPECIAL characters are escaped when
recorded and then again when the register is executed.
解决方案: Remove escaping before putting the recorded characters in a
register. (Yukihiro Nakadaira)
相关文件: src/getchar.c, src/ops.c, src/proto/getchar.pro
Patch 7.0.208 (after 7.0.171 and 7.0.180)
问题: VMS: changes to path handling cause more trouble than they solve.
解决方案: Revert changes.
相关文件: src/buffer.c, src/memline.c, src/os_unix.c
Patch 7.0.209
问题: When replacing a line through Python the cursor may end up beyond
the end of the line.
解决方案: Check the cursor column after replacing the line.
相关文件: src/if_python.c
Patch 7.0.210
问题: ":cbuffer" and ":lbuffer" always fail when the buffer is modified.
(Gary Johnson)
解决方案: Support adding a !. (Yegappan Lakshmanan)
相关文件: runtime/doc/quickfix.txt, src/ex_cmds.h
Patch 7.0.211
问题: With ":set cindent noai bs=0" using CTRL-U in Insert mode will
delete auto-indent. After ":set ai" it doesn't.
解决方案: Also check 'cindent' being set. (Ryan Lortie)
相关文件: src/edit.c
Patch 7.0.212
问题: The GUI can't be terminated with SIGTERM. (Mark Logan)
解决方案: Use the signal protection in the GUI as in the console, allow
signals when waiting for 100 msec or longer.
相关文件: src/ui.c
Patch 7.0.213
问题: When 'spellfile' has two regions that use the same sound folding
using "z=" will cause memory to be freed twice. (Mark Woodward)
解决方案: Clear the hashtable properly so that the items are only freed once.
相关文件: src/spell.c
Patch 7.0.214
问题: When using <f-args> in a user command it's not possible to have an
argument end in '\ '.
解决方案: Change the handling of backslashes. (Yakov Lerner)
相关文件: runtime/doc/map.txt, src/ex_docmd.c
Patch 7.0.215 (extra)
问题: Mac: Scrollbar size isn't set. Context menu has disabled useless
Help entry. Call to MoreMasterPointers() is ignored.
解决方案: Call SetControlViewSize() in gui_mch_set_scrollbar_thumb(). Use
kCMHelpItemRemoveHelp for ContextualMenuSelect(). Remove call to
MoreMasterPointers(). (Nicolas Weber)
相关文件: src/gui_mac.c
Patch 7.0.216
问题: ":tab wincmd ]" does not open a tab page. (Tony Mechelynck)
解决方案: Copy the cmdmod.tab value to postponed_split_tab and use it.
相关文件: src/globals.h, src/ex_docmd.c, src/if_cscope.c, src/window.c
Patch 7.0.217
问题: This hangs when pressing "n": ":%s/\n/,\r/gc". (Ori Avtalion)
解决方案: Set "skip_match" to advance to the next line.
相关文件: src/ex_cmds.c
Patch 7.0.218
问题: "%B" in 'statusline' always shows zero in Insert mode. (DervishD)
解决方案: Remove the exception for Insert mode, check the column for being
valid instead.
相关文件: src/buffer.c
Patch 7.0.219
问题: When using the 'editexisting.vim' script and a file is being
edited in another tab page the window is split. The "+123"
argument is not used.
解决方案: Make the tab page with the file the current tab page. Set
v:swapcommand when starting up to the first "+123" or "-c" command
line argument.
相关文件: runtime/macros/editexisting.vim, src/main.c
Patch 7.0.220
问题: Crash when using winnr('#') in a new tab page. (Andy Wokula)
解决方案: Check for not finding the window.
相关文件: src/eval.c
Patch 7.0.221
问题: finddir() uses 'path' by default, where "." means relative to the
current file. But it works relative to the current directory.
(Tye Zdrojewski)
解决方案: Add the current buffer name to find_file_in_path_option() for the
relative file name.
相关文件: runtime/doc/eval.txt, src/eval.c
Patch 7.0.222
问题: Perl indenting using 'cindent' works almost right.
解决方案: Recognize '#' to start a comment. (Alex Manoussakis) Added '#'
flag in 'cinoptions'.
相关文件: runtime/doc/indent.txt, src/misc1.c
Patch 7.0.223
问题: Unprintable characters in completion text mess up the popup menu.
(Gombault Damien)
解决方案: Use strtrans() to make the text printable.
相关文件: src/charset.c, src/popupmnu.c
Patch 7.0.224
问题: When expanding "##" spaces are escaped twice. (Pavol Juhas)
解决方案: Don't escape the spaces that separate arguments.
相关文件: src/eval.c, src/ex_docmd.c, src/proto/ex_docmd.pro
Patch 7.0.225
问题: When using setline() in an InsertEnter autocommand and doing "A"
the cursor ends up on the last byte in the line. (Yukihiro
Nakadaira)
解决方案: Only adjust the column when using setline() for the cursor line.
Move it back to the head byte if necessary.
相关文件: src/eval.c, src/misc2.c
Patch 7.0.226
问题: Display flickering when updating signs through the netbeans
interface. (Xavier de Gaye)
解决方案: Remove the redraw_later(CLEAR) call.
相关文件: src/netbeans.c
Patch 7.0.227
问题: Crash when closing a window in the GUI. (Charles Campbell)
解决方案: Don't call out_flush() from win_free().
相关文件: src/window.c
Patch 7.0.228
问题: Cygwin: problem with symlink to DOS style path.
解决方案: Invoke cygwin_conv_to_posix_path(). (Luca Masini)
相关文件: src/os_unix.c
Patch 7.0.229
问题: When 'pastetoggle' starts with Esc then pressing Esc in Insert
mode will not time out. (Jeffery Small)
解决方案: Use KL_PART_KEY instead of KL_PART_MAP, so that 'ttimeout' applies
to the 'pastetoggle' key.
相关文件: src/getchar.c
Patch 7.0.230
问题: After using ":lcd" a script doesn't know how to restore the
current directory.
解决方案: Add the haslocaldir() function. (Bob Hiestand)
相关文件: runtime/doc/usr_41.txt, runtime/doc/eval.txt, src/eval.c
Patch 7.0.231
问题: When recovering from a swap file the page size is likely to be
different from the minimum. The block used for the first page
then has a buffer of the wrong size, causing a crash when it's
reused later. (Zephaniah Hull)
解决方案: Reallocate the buffer when the page size changes. Also check that
the page size is at least the minimum value.
相关文件: src/memline.c
Patch 7.0.232 (extra)
问题: Mac: doesn't support GUI tab page labels.
解决方案: Add GUI tab page labels. (Nicolas Weber)
相关文件: src/feature.h, src/gui.c, src/gui.h, src/gui_mac.c,
src/proto/gui_mac.pro
Patch 7.0.233 (extra)
问题: Mac: code formatted badly.
解决方案: Fix code formatting
相关文件: src/gui_mac.c
Patch 7.0.234
问题: It's possible to use feedkeys() from a modeline. That is a
security issue, can be used for a trojan horse.
解决方案: Disallow using feedkeys() in the sandbox.
相关文件: src/eval.c
Patch 7.0.235
问题: It is possible to use writefile() in the sandbox.
解决方案: Add a few more checks for the sandbox.
相关文件: src/eval.c
Patch 7.0.236
问题: Linux 2.4 uses sysinfo() with a mem_unit field, which is not
backwards compatible.
解决方案: Add an autoconf check for sysinfo.mem_unit. Let mch_total_mem()
return Kbyte to avoid overflow.
相关文件: src/auto/configure, src/configure.in, src/config.h.in,
src/option.c, src/os_unix.c
Patch 7.0.237
问题: For root it is recommended to not use 'modeline', but in
not-compatible mode the default is on.
解决方案: Let 'modeline' default to off for root.
相关文件: runtime/doc/options.txt, src/option.c
Patch 7.0.238
问题: Crash when ":match" pattern runs into 'maxmempattern'. (Yakov
Lerner)
解决方案: Don't free the regexp program of match_hl.
相关文件: src/screen.c
Patch 7.0.239
问题: When using local directories and tab pages ":mksession" uses a
short file name when it shouldn't. Window-local options from a
modeline may be applied to the wrong window. (Teemu Likonen)
解决方案: Add the did_lcd flag, use the full path when it's set. Don't use
window-local options from the modeline when using the current
window for another buffer in ":doautoall".
相关文件: src/fileio.c, src/ex_docmd.c
Patch 7.0.240
问题: Crash when splitting a window in the GUI. (opposite of 7.0.227)
解决方案: Don't call out_flush() from win_alloc(). Also avoid this for
win_delete(). Also block autocommands while the window structure
is invalid.
相关文件: src/window.c
Patch 7.0.241
问题: ":windo throw 'foo'" loops forever. (Andy Wokula)
解决方案: Detect that win_goto() doesn't work.
相关文件: src/ex_cmds2.c
Patch 7.0.242 (extra)
问题: Win32: Using "-register" in a Vim that does not support OLE causes
a crash.
解决方案: Don't use EMSG() but mch_errmsg(). Check p_go for being NULL.
(partly by Michael Wookey)
相关文件: src/gui_w32.c
Patch 7.0.243 (extra)
问题: Win32: When GvimExt is built with MSVC 2005 or later, the "Edit
with vim" context menu doesn't appear in the Windows Explorer.
解决方案: Embed the linker manifest file into the resources of GvimExt.dll.
(Mathias Michaelis)
相关文件: src/GvimExt/Makefile
Fixes after Vim 7.1a BETA:
The extra archive had CVS directories included below "farsi" and
"runtime/icons". CVS was missing the farsi icon files.
Fix compiling with Gnome 2.18, undefine bind_textdomain_codeset. (Daniel
Drake)
Mac: "make install" didn't copy rgb.txt.
When editing a compressed file while there are folds caused "ml_get" errors
and some lines could be missing. When decompressing failed option values were
not restored.
Patch 7.1a.001
问题: Crash when downloading a spell file. (Szabolcs Horvat)
解决方案: Avoid that did_set_spelllang() is used recursively when a new
window is opened for the download.
Also avoid wiping out the wrong buffer.
相关文件: runtime/autoload/spellfile.vim, src/buffer.c, src/ex_cmds.c,
src/spell.c
Patch 7.1a.002 (extra)
问题: Compilation error with MingW.
解决方案: Check for LPTOOLTIPTEXT to be defined.
相关文件: src/gui_w32.c
Fixes after Vim 7.1b BETA:
Made the Mzscheme interface build both with old and new versions of Mzscheme,
using an #ifdef. (Sergey Khorev)
Mzscheme interface didn't link, missing function. Changed order of libraries
in the configure script.
Ruby interface didn't compile on Mac. Changed #ifdef. (Kevin Ballard)
Patch 7.1b.001 (extra)
问题: Random text in a source file. No idea how it got there.
解决方案: Delete the text.
相关文件: src/gui_w32.c
Patch 7.1b.002
问题: When 'maxmem' is large there can be an overflow in computations.
(Thomas Wiegner)
解决方案: Use the same mechanism as in mch_total_mem(): first reduce the
multiplier as much as possible.
相关文件: src/memfile.c