version8

 version8.txt   For Vim version 8.0.  最近更新: 2017年8月


                  VIM 参考手册    by Bram Moolenaar
                                译者: Willis
                                http://vimcdoc.sf.net

                                 vim8   vim-8   version-8.0   version8.0 
欢迎来到 Vim 版本 8!新版本修正了大量的漏洞,也增加了几个好用的特性。本文档列
出 Vim 7.4 以来所有加入的新项目和已有特性的改动。Vim 7.4 及之前的补丁可见:
 vim-7.4 .

使用此命令可见正在使用的 Vim 程序的完整版本和特性信息: 
        :version

新 特 性                                 new-8 
        Vim 脚本增强                     new-vim-script-8 
        若干新项目                       new-items-8 

不 兼 容 的 改 动                        incompatible-8 

改 进                                    improvements-8 

编 译 时 的 改 变                        compile-changes-8 

补 丁                                    patches-8 


 vi_diff.txt  提供 Vi 和 Vim 8.0 的区别的一个概述。
 version4.txtversion5.txtversion6.txtversion7.txt  说明其它版本
间的区别。


新 特 性 new-8

首先给出最有意思的新特性的概述。下面再给出完整列表。 异步 I/O 支持,通道 Vim 现在可以在后台和其它进程交换信息。这样就可以让服务器完成工作并发送结果给 Vim。例见 channel-demo ,展示和一个 Python 服务器的交流。 和通道紧密相关的是 JSON 支持。JSON 受到广泛支持,可以方便地支持进程间通信, 支持任何语言编写的服务器。要用的函数是 json_encode()json_decode() 。 这样就可以编写十分复杂的插件,使用任何语言并在单独的进程上运行。 作业 Vim 现在可以启动作业,与之交互,并停止作业。可用于运行进程来完成补全,拼写检查 等等工作。使用通道机制和作业进行交互。作业也可以读入或写到缓冲区或文件。见 job_start()定时器 定时器是另一种异步机制。可以单次或重复激活并调用函数来完成任何工作。例如: let tempTimer = timer_start(4000, 'CheckTemp') 这会在四秒 (4000 毫秒) 后调用 CheckTemp() 函数。见 timer_start()偏函数 Vim 已经有了函数引用,即对一个函数的引用。偏函数也引用函数,并附加对参数和/或 字典的绑定。这对通道和定时器的回调特别有用。例如,上面定时器的示例,要给函数传 递参数: let tempTimer = timer_start(4000, function('CheckTemp', ['out'])) 这会在四秒后调用 CheckTemp('out')。 匿名函数和闭包 加入函数创建的快捷方式: {args -> expr}。见 lambda 。 可用于 filter()map() 之类的函数,它们现在也接受函数参数。例如: :call filter(mylist, {idx, val -> val > 20}) 匿名函数可以使用该函数定义所在的作用域内定义的变量。这通常被称为 closure 。 通过加入 "closure" 参数,用户定义函数也可以是闭包 :func-closure软件包 插件持续增长,可用的数目前所未有。要方便管理诸多插件,引入软件包的支持。这是获 得一个或更多插件的方便方式,它们在目录里存放并可一直保持更新。Vim 会自动或按需 载入。见 packages新风格测试 用于 Vim 开发者。目前为止,为 Vim 编写测试用例并不容易。Vim 8 加入 assert 函数 和支持测试的框架。这样测试的编写和保持更新就简单很多。同时,新增了若干专为测试 而引入的函数。见 test-functions窗口 ID 之前窗口只能为它们的编号访问。每次窗口打开、关闭或移动时,此编号都会改变。现在 每个窗口有了独一无二的 ID,这样方便它们的查找。见 win_getid()win_id2win()Viminfo 使用时间戮 之前,viminfo 保存上次 Vim 在那里写入的信息。现在使用时间戳,来确保保存的是最 新的项目。见 viminfo-timestamp回绕缩进行 加入 'breakindent' 选项以便回绕行而不改变缩进的数量。 Windows: DirectX 支持 加入 'renderoptions' 选项以便 MS-Windows 上切换 DirectX (DirectWrite) 的支持。 GTK+ 3 支持 除了很细微的技术上的差异,GTK+ 3 GUI 的工作方式和 GTK+ 2 类似。如果 2 和 3 同 时存在,configure 只选择 GTK + 2。src/Makefile 说明如何选择 GTK+ 3 来代替。详 见 gui-x11-compiling 。 Vim 脚本增强 new-vim-script-8


Vim 脚本加入以下新类型:

         Special         v:falsev:truev:nonev:null 
         Channel        到其它进程的连接,用于支持异步 I/O
         Job            进程控制

加入许多函数和命令以支持新类型。

在新系统上,Vim 脚本使用的数值现在使用 64 位。可通过  +num64  特性来检查。

加入很多新项目以支持  new-style-testing 。

printf() 的 %s 现在接受任何类型的参数。用和 string() 类似的方式转换为字符串。


若干新项目                                               new-items-8 


可视模式命令: 

 v_CTRL-A       CTRL-A          给高亮文本中的数值加上 N
 v_CTRL-X       CTRL-X          给高亮文本中的数值减去 N
 v_g_CTRL-A     g CTRL-A        给高亮文本中的数值加上 N
 v_g_CTRL-X     g CTRL-X        给高亮文本中的数值减去 N


插入模式命令: 

 i_CTRL-G_U     CTRL-G U        下一个光标移动不打断撤销


命令行模式命令: 

 /_CTRL-G       CTRL-G          'incsearch' 激活时,转到下个匹配
 /_CTRL-T       CTRL-T          'incsearch' 激活时,转到前个匹配


选项: 

'belloff'               为这些原因不响铃
'breakindent'           回绕行重复缩进
'breakindentopt'        'breakindent' 的设置
'emoji'                 表情字符视作全宽
'fixendofline'          确保文件的末行有 <EOL>
'langremap'             映射字符适用 'langmap'
'luadll'                Lua 动态库名
'packpath'              软件包使用的目录列表
'perldll'               Perl 动态库名
'pythondll'             Python 2 动态库名
'pythonthreedll'        Python 3 动态库名
'renderoptions'         Window 上文本渲染选项
'rubydll'               Ruby 动态库名
'signcolumn'            何时显示标号列
'tagcase'               标签文件查找时如何处理大小写
'tcldll'                Tcl 动态库名
'termguicolors'         终端使用 GUI 颜色


Ex 命令: 

 :cbottom               滚动到 quickfox 窗口底部
 :cdo                   为每个合法的错误列表项目执行命令
 :cfdo                  为每个错误列表的文件执行命令
 :chistory              显示 quickfix 列表堆栈
 :clearjumps            清除跳转列表
 :filter                只输出匹配 (或不匹配) 的行
 :helpclose             关闭帮助窗口
 :lbottom               滚动到位置窗口的底部
 :ldo                   为每个合法位置列表项目执行命令
 :lfdo                  为每个位置列表的文件执行命令
 :lhistory              显示位置列表堆栈
 :noswapfile            跟随的若干命令不创建交换文件
 :packadd'packpath' 载入插件
 :packloadall'packpath' 载入所有包
 :smile                 让用户高兴一下


Ex 命令修饰符: 

 :keeppatterns          跟随的命令保持搜索模式历史不变
 <mods>                 提供用户自定义命令的命令修饰符


新函数及功能扩展的函数: 

 arglistid()            获取参数列表的编号
 assert_equal()         断言两个表达式的值相等
 assert_exception()     断言命令抛出例外
 assert_fails()         断言函数调用失败
 assert_false()         断言表达式为假
 assert_inrange()       断言表达式在范围内
 assert_match()         断言模式与值匹配
 assert_notequal()      断言两个表达式的值不等
 assert_notmatch()      断言模式不与值匹配
 assert_true()          断言表达式为真
 bufwinid()             获取特定缓冲区的窗口 ID
 byteidxcomp()          类似于 byteidx(),但计算合成用字符
 ch_close()             关闭通道
 ch_close_in()          关闭通道的 in 部分
 ch_evalexpr()          通过通道计算表达式
 ch_evalraw()           通过通道计算未经处理的表达式
 ch_getbufnr()          获取通道的缓冲区号
 ch_getjob()            获取通道相关的作业
 ch_info()              获取通道信息
 ch_log()               在通道日志文件写下信息
 ch_logfile()           设置通道日志文件
 ch_open()              打开通道
 ch_read()              从通道读取信息
 ch_readraw()           从通道读取未处理的信息
 ch_sendexpr()          从通道读取 JSON 信息
 ch_sendraw()           向通道发送未处理的信息
 ch_setoptions()        设置通道的选项
 ch_status()            获取通道的状态
 execute()              执行 Ex 命令并获取输出
 exepath()              可执行程序的完整路径
 funcref()              返回函数 {name} 的引用
 getbufinfo()           获取缓冲区信息的列表
 getcharsearch()        返回字符搜索信息
 getcmdwintype()        返回当前命令行窗口类型
 getcompletion()        返回命令行补全匹配的列表
 getcurpos()            获取光标位置
 gettabinfo()           获取标签页信息的列表
 getwininfo()           获取窗口信息的列表
 glob2regpat()          转换 glob 模式到搜索模式
 isnan()                检查非数
 job_getchannel()       获取作业使用的通道
 job_info()             获取作业信息
 job_setoptions()       设置作业选项
 job_start()            启动作业
 job_status()           获取作业状态
 job_stop()             停止作业
 js_decode()            把 JSON 字符串解码为 Vim 类型
 js_encode()            把表达式编码为 JSON 字符串
 json_decode()          把 JSON 字符串解码为 Vim 类型
 json_encode()          把表达式编码为 JSON 字符串
 matchaddpos()          定义位置列表用于高亮
 matchstrpos()          字符串中满足匹配的模式和位置
 perleval()             计算 Perl 表达式
 reltimefloat()         转换 reltime() 结果为浮点数
 setcharsearch()        设置字符搜索信息
 setfperm()             设置文件权限
 strcharpart()          用字符索引获取字符串的子串
 strgetchar()           用字符索引获取字符串里的字符
 systemlist()           得到列表形式的外壳命令结果
 test_alloc_fail()      使内存分配失败
 test_autochdir()       测试 'autochdir' 功能
test_disable_char_avail() 无预输入的测试 (将要删除)
 test_garbagecollect_now()  立即清理内存
 test_null_channel()    返回 null 通道
 test_null_dict()       返回 null 字典
 test_null_job()        返回 null 作业
 test_null_list()       返回 null 列表
 test_null_partial()    返回 null 偏函数
 test_null_string()     返回 null 字符串
 test_settime()         设置 Vim 内部使用的时间
 timer_info()           获取定时器信息
 timer_pause()          暂停或继续定时器
 timer_start()          建立定时器
 timer_stop()           停止定时器
 timer_stopall()        停止所有定时器
 uniq()                 删除重复邻接项目的备份
 win_findbuf()          寻找包含某缓冲区的窗口
 win_getid()            获取窗口的窗口 ID
 win_gotoid()           给出 ID 转到指定窗口
 win_id2tabwin()        给出窗口 ID 获取标签页号和窗口号
 win_id2win()           把窗口 ID 转换为窗口号
 wordcount()            获取缓冲区的字节/单词/字符计数


新 Vim 变量: 

 v:beval_winid          鼠标指针所在的窗口的窗口 ID
 v:completed_item       用于最近经补全的单词的补全项目
 v:errors               assert 函数找到的错误
 v:false                值为零的数值
 v:hlsearch             指示搜索高亮是否打开
 v:mouse_winid            getchar()  获取的鼠标点击所在的窗口 ID
 v:none                 空字符串,用于 JSON
 v:null                 空字符串,用于 JSON
 v:option_new           选项的新值,用于  OptionSet 
 v:option_old           选项的旧值,用于  OptionSet 
 v:option_type          set 命令的作用域,用于  OptionSet 
 v:progpath             Vim 启动所用的命令
 v:t_bool               布尔型的类型值
 v:t_channel            通道的类型值
 v:t_dict               字典的类型值
 v:t_float              浮点数的类型值
 v:t_func               函数引用的类型值
 v:t_job                作业的类型值
 v:t_list               列表的类型值
 v:t_none               None 的类型值
 v:t_number             数值的类型值
 v:t_string             字符串的类型值
 v:testing              必须在用  test_garbagecollect_now()  前设置
 v:true                 值为一的数值
 v:vim_did_enter        就在 VimEnter 自动命令激活前设置


新自动命令事件: 

 CmdUndefined           使用未定义的用户命令
 OptionSet              设置任何选项后
 TabClosed              关闭标签页后
 TabNew                 建立新标签页后
 TextChangedI           插入模式下改动文本后
 TextChanged            普通模式下改动文本后
 WinNew                 建立新窗口后


新高亮组: 

EndOfBuffer             缓冲区末行的填充行 (~)。  hl-EndOfBuffer 


搜索模式的新项目: 

 /\%C   \%C             匹配任何合成用字符


新语法/缩进/文件类型插件文件: 

AVR Assembler (Avra) 语法
Arduino 语法
Bazel 语法、缩进和文件类型插件
Dockerfile 语法和文件类型插件
Eiffel 文件类型插件
Euphoria 3 和 4 语法
Go 语法、缩进和文件类型插件
Godoc 语法
Groovy 文件类型插件
HGcommit 文件类型插件
Hog 缩进和文件类型插件
Innovation Data Processing upstream.pt 语法
J 语法、缩进和文件类型插件
Jproperties 文件类型插件
Json 语法、缩进和文件类型插件
Kivy 语法
Less 语法和缩进
Mix 语法
Motorola S-Record 语法
R 文件类型插件
ReStructuredText 语法、缩进和文件类型插件
Registry 文件类型插件
Rhelp 缩进和文件类型插件
Rmd (markdown with R code chunks) 语法和缩进
Rmd 文件类型插件
Rnoweb 文件类型插件
Rnoweb 缩进
Scala 语法、缩进和文件类型插件
SystemVerilog 语法、缩进和文件类型插件
Systemd 语法、缩进和文件类型插件
Teraterm (TTL) 语法和缩进
Text 文件类型插件
Vroom 语法、缩进和文件类型插件


新键盘映射表: 

东亚美尼亚语和西亚美尼亚语
俄罗斯语 JCUKEN Windows 变种的输入
越南语 telex 和 vni 输入


不 兼 容 的 改 动 incompatible-8

这些改动和以前版本不兼容。如果从 Vim 7.4 升级到 8.0 时出现问题,检查这个列表。 没有 vimrc 时更好的缺省处理 如果找不到 vimrc,截入 defaults.vim 脚本来设置更多对新用户有用的缺省值。这包 括设置 'nocompatible'。这样,Vim 就不再以 Vi 兼容模式启动。如果你确实想要,建 立 .vimrc 文件并设置 "set compatible",或以 "vim -C" 启动 Vim。 删除支持 删除了 MS-DOS 的支持。有一段时间不能用了 (Vim 不能放进内存里),它的删除清理了 不少代码。 删除了 Windows 16 位 (Windows 95 和更旧版本) 的支持。 删除了 OS/2 的支持。因为没有人在用,可能有一段时间早就不能用了。 删除了 SNiFF+ 的支持。 少量不兼容: 可能吧...

改 进 improvements-8

已有的 blowfish 加密被发现比以前想象的要弱。为此,加入了 blowfish2 方法进行修 正。注意 这还不是顶尖的加密方法,但对多数应用足够了。见 'cryptmethod'

编 译 时 的 改 变 compile-changes-8

Vim 版本库从 Google code 转到了 gitub,因为 Google code 停止了服务。可在这里 找到。 https://github.com/vim/vim。 函数现在使用 ANSI-C 声明。需要至少 C-89 兼容的编译器。 现在总是包含 +visual 特性。

补 丁 patches-8 bug-fixes-8

这里的补丁列表包含 7.4.0 开始的补丁。包含所有的新特性,但不包含 runtime 的文件 改动 (语法、缩进、帮助等等) Patch 7.4.001 问题: Character classes such as [a-z] do not react to 'ignorecase'. Breaks man page highlighting. (Mario Grgic) 解决方案: Add separate items for classes that react to 'ignorecase'. Clean up logic handling character classes. Add more tests. 相关文件: src/regexp_nfa.c, src/testdir/test64.in, src/testdir/test64.ok Patch 7.4.002 问题: Pattern with two alternative look-behind matches does not match. (Amadeus Demarzi) 解决方案: When comparing PIMs also compare their state ID to see if they are different. 相关文件: src/regexp_nfa.c, src/testdir/test64.in, src/testdir/test64.ok Patch 7.4.003 问题: Memory access error in Ruby syntax highlighting. (Christopher Chow) 解决方案: Refresh stale pointer. (James McCoy) 相关文件: src/regexp_nfa.c Patch 7.4.004 问题: When closing a window fails ":bwipe" may hang. 解决方案: Let win_close() return FAIL and break out of the loop. 相关文件: src/window.c, src/proto/window.pro, src/buffer.c Patch 7.4.005 问题: Using "vaB" while 'virtualedit' is set selects the wrong area. (Dimitar Dimitrov) 解决方案: Reset coladd when finding a match. 相关文件: src/search.c Patch 7.4.006 问题: mkdir("foo/bar/", "p") gives an error message. (David Barnett) 解决方案: Remove the trailing slash. (lcd) 相关文件: src/eval.c Patch 7.4.007 问题: Creating a preview window on startup leaves the screen layout in a messed up state. (Marius Gedminas) 解决方案: Don't change firstwin. (Christian Brabandt) 相关文件: src/main.c Patch 7.4.008 问题: New regexp engine can't be interrupted. 解决方案: Check for CTRL-C pressed. (Yasuhiro Matsumoto) 相关文件: src/regexp_nfa.c, src/regexp.c Patch 7.4.009 问题: When a file was not decrypted (yet), writing it may destroy the contents. 解决方案: Mark the file as readonly until decryption was done. (Christian Brabandt) 相关文件: src/fileio.c Patch 7.4.010 (after 7.4.006) 问题: Crash with invalid argument to mkdir(). 解决方案: Check for empty string. (lcd47) 相关文件: src/eval.c Patch 7.4.011 问题: Cannot find out if "acl" and "xpm" features are supported. 解决方案: Add "acl" and "xpm" to the list of features. (Ken Takata) 相关文件: src/eval.c, src/version.c Patch 7.4.012 问题: MS-Windows: resolving shortcut does not work properly with multi-byte characters. 解决方案: Use wide system functions. (Ken Takata) 相关文件: src/os_mswin.c Patch 7.4.013 问题: MS-Windows: File name buffer too small for utf-8. 解决方案: Use character count instead of byte count. (Ken Takata) 相关文件: src/os_mswin.c Patch 7.4.014 问题: MS-Windows: check for writing to device does not work. 解决方案: Fix #ifdefs. (Ken Takata) 相关文件: src/fileio.c Patch 7.4.015 问题: MS-Windows: Detecting node type does not work for multi-byte characters. 解决方案: Use wide character function when needed. (Ken Takata) 相关文件: src/os_win32.c Patch 7.4.016 问题: MS-Windows: File name case can be wrong. 解决方案: Add fname_casew(). (Ken Takata) 相关文件: src/os_win32.c Patch 7.4.017 问题: ":help !!" does not find the "!!" tag in the help file. (Ben Fritz) 解决方案: When reading the start of the tags file do parse lines that are not header lines. 相关文件: src/tag.c Patch 7.4.018 问题: When completing item becomes unselected. (Shougo Matsu) 解决方案: Revert patch 7.3.1269. 相关文件: src/edit.c Patch 7.4.019 问题: MS-Windows: File name completion doesn't work properly with Chinese characters. (Yue Wu) 解决方案: Take care of multi-byte characters when looking for the start of the file name. (Ken Takata) 相关文件: src/edit.c Patch 7.4.020 问题: NFA engine matches too much with \@>. (John McGowan) 解决方案: When a whole pattern match is found stop searching. 相关文件: src/regexp_nfa.c, src/testdir/test64.in, src/testdir/test64.ok Patch 7.4.021 问题: NFA regexp: Using \ze in one branch which doesn't match may cause end of another branch to be wrong. (William Fugh) 解决方案: Set end position if it wasn't set yet. 相关文件: src/regexp_nfa.c, src/testdir/test64.in, src/testdir/test64.ok Patch 7.4.022 问题: Deadlock while exiting, because of allocating memory. 解决方案: Do not use gettext() in deathtrap(). (James McCoy) 相关文件: src/os_unix.c, src/misc1.c Patch 7.4.023 问题: Compiler warning on 64 bit windows. 解决方案: Add type cast. (Mike Williams) 相关文件: src/edit.c Patch 7.4.024 问题: When root edits a file the undo file is owned by root while the edited file may be owned by another user, which is not allowed. (cac2s) 解决方案: Accept an undo file owned by the current user. 相关文件: src/undo.c Patch 7.4.025 (after 7.4.019) 问题: Reading before start of a string. 解决方案: Do not call mb_ptr_back() at start of a string. (Dominique Pelle) 相关文件: src/edit.c Patch 7.4.026 问题: Clang warning for int shift overflow. 解决方案: Use unsigned and cast back to int. (Dominique Pelle) 相关文件: src/misc2.c Patch 7.4.027 (after 7.4.025) 问题: Another valgrind error when using CTRL-X CTRL-F at the start of the line. (Dominique Pelle) 解决方案: Don't call mb_ptr_back() at the start of the line. Add a test. 相关文件: src/edit.c, src/testdir/test32.in Patch 7.4.028 问题: Equivalence classes are not working for multi-byte characters. 解决方案: Copy the rules from the old to the new regexp engine. Add a test to check both engines. 相关文件: src/regexp_nfa.c, src/testdir/test44.in, src/testdir/test99.in, src/testdir/test99.ok, src/testdir/Make_amiga.mak, src/testdir/Make_dos.mak, src/testdir/Make_ming.mak, src/testdir/Make_os2.mak, src/testdir/Make_vms.mms, src/testdir/Makefile Patch 7.4.029 问题: An error in a pattern is reported twice. 解决方案: Remove the retry with the backtracking engine, it won't work. 相关文件: src/regexp.c Patch 7.4.030 问题: The -mno-cygwin argument is no longer supported by Cygwin. 解决方案: Remove the arguments. (Steve Hall) 相关文件: src/GvimExt/Make_cyg.mak, src/Make_cyg.mak, src/xxd/Make_cyg.mak Patch 7.4.031 问题: ":diffoff!" resets options even when 'diff' is not set. (Charles Cooper) 解决方案: Only resets related options in a window where 'diff' is set. 相关文件: src/diff.c Patch 7.4.032 问题: NFA engine does not match the NUL character. (Jonathon Merz) 解决方案: Use 0x0a instead of NUL. (Christian Brabandt) 相关文件: src/regexp_nfa.c, src/testdir/test64.in, src/testdir/test64.ok Patch 7.4.033 问题: When the terminal has only 20 lines test 92 and 93 overwrite the input file. 解决方案: Explicitly write test.out. Check that the terminal is large enough to run the tests. (Hirohito Higashi) 相关文件: src/testdir/test92.in, src/testdir/test93.in, src/testdir/test1.in, src/testdir/Makefile Patch 7.4.034 问题: Using "p" in Visual block mode only changes the first line. 解决方案: Repeat the put in all text in the block. (Christian Brabandt) 相关文件: runtime/doc/change.txt, src/ops.c, src/normal.c, src/testdir/test20.in, src/testdir/test20.ok Patch 7.4.035 问题: MS-Windows: The mouse pointer flickers when going from command line mode to Normal mode. 解决方案: Check for WM_NCMOUSEMOVE. (Ken Takata) 相关文件: src/gui_w48.c Patch 7.4.036 问题: NFA engine does not capture group correctly when using \@>. (ZyX) 解决方案: Copy submatches before doing the recursive match. 相关文件: src/regexp_nfa.c, src/testdir/test64.in, src/testdir/test64.ok Patch 7.4.037 问题: Using "\ze" in a sub-pattern does not result in the end of the match to be set. (Axel Bender) 解决方案: Copy the end of match position when a recursive match was successful. 相关文件: src/regexp_nfa.c, src/testdir/test64.in, src/testdir/test64.ok Patch 7.4.038 问题: Using "zw" and "zg" when 'spell' is off give a confusing error message. (Gary Johnson) 解决方案: Ignore the error when locating the word. Explicitly mention what word was added. (Christian Brabandt) 相关文件: src/normal.c, src/spell.c Patch 7.4.039 问题: MS-Windows: MSVC10 and earlier can't handle symlinks to a directory properly. 解决方案: Add stat_symlink_aware() and wstat_symlink_aware(). (Ken Takata) 相关文件: src/os_mswin.c, src/os_win32.c, src/os_win32.h Patch 7.4.040 问题: Valgrind error on exit when a script-local variable holds a reference to the scope of another script. 解决方案: First clear all variables, then free the scopes. (ZyX) 相关文件: src/eval.c Patch 7.4.041 (after 7.4.034) 问题: Visual selection does not remain after being copied over. (Axel Bender) 解决方案: Move when VIsual_active is reset. (Christian Brabandt) 相关文件: src/ops.c Patch 7.4.042 问题: When using ":setlocal" for 'spell' and 'spelllang' then :spelldump doesn't work. (Dimitar Dimitrov) 解决方案: Copy the option variables to the new window used to show the dump. (Christian Brabandt) 相关文件: src/spell.c Patch 7.4.043 问题: VMS can't handle long function names. 解决方案: Shorten may_req_ambiguous_character_width. (Samuel Ferencik) 相关文件: src/main.c, src/term.c, src/proto/term.pro Patch 7.4.044 (after 7.4.039) 问题: Can't build with old MSVC. (Wang Shoulin) 解决方案: Define OPEN_OH_ARGTYPE instead of using intptr_t directly. 相关文件: src/os_mswin.c Patch 7.4.045 问题: substitute() does not work properly when the pattern starts with "\ze". 解决方案: Detect an empty match. (Christian Brabandt) 相关文件: src/eval.c, src/testdir/test80.in, src/testdir/test80.ok Patch 7.4.046 问题: Can't use Tcl 8.6. 解决方案: Change how Tcl_FindExecutable is called. (Jan Nijtmans) 相关文件: src/if_tcl.c Patch 7.4.047 问题: When using input() in a function invoked by a mapping it doesn't work. 解决方案: Temporarily reset ex_normal_busy. (Yasuhiro Matsumoto) 相关文件: src/eval.c Patch 7.4.048 问题: Recent clang version complains about -fno-strength-reduce. 解决方案: Add a configure check for the clang version. (Kazunobu Kuriyama) 相关文件: src/configure.in, src/auto/configure Patch 7.4.049 问题: In Ex mode, when line numbers are enabled the substitute prompt is wrong. 解决方案: Adjust for the line number size. (Benoit Pierre) 相关文件: src/ex_cmds.c Patch 7.4.050 问题: "gn" selects too much for the pattern "\d" when there are two lines with a single digit. (Ryan Carney) 解决方案: Adjust the logic of is_one_char(). (Christian Brabandt) 相关文件: src/search.c, src/testdir/test53.in, src/testdir/test53.ok Patch 7.4.051 问题: Syntax highlighting a Yaml file causes a crash. (Blake Preston) 解决方案: Copy the pim structure before calling addstate() to avoid it becoming invalid when the state list is reallocated. 相关文件: src/regexp_nfa.c Patch 7.4.052 问题: With 'fo' set to "a2" inserting a space in the first column may cause the cursor to jump to the previous line. 解决方案: Handle the case when there is no comment leader properly. (Tor Perkins) Also fix that cursor is in the wrong place when spaces get replaced with a Tab. 相关文件: src/misc1.c, src/ops.c, src/testdir/test68.in, src/testdir/test68.ok Patch 7.4.053 问题: Test75 has a wrong header. (ZyX) 解决方案: Fix the text and remove leading ". 相关文件: src/testdir/test75.in Patch 7.4.054 问题: Reading past end of the 'stl' string. 解决方案: Don't increment pointer when already at the NUL. (Christian Brabandt) 相关文件: src/buffer.c Patch 7.4.055 问题: Mac: Where availability macros are defined depends on the system. 解决方案: Add a configure check. (Felix Bünemann) 相关文件: src/config.h.in, src/configure.in, src/auto/configure, src/os_mac.h Patch 7.4.056 问题: Mac: Compilation problem with OS X 10.9 Mavericks. 解决方案: Include AvailabilityMacros.h when available. (Kazunobu Kuriyama) 相关文件: src/os_unix.c Patch 7.4.057 问题: byteidx() does not work for composing characters. 解决方案: Add byteidxcomp(). 相关文件: src/eval.c, src/testdir/test69.in, src/testdir/test69.ok, runtime/doc/eval.txt Patch 7.4.058 问题: Warnings on 64 bit Windows. 解决方案: Add type casts. (Mike Williams) 相关文件: src/ops.c Patch 7.4.059 问题: set_last_cursor() may encounter w_buffer being NULL. (Matt Mkaniaris) 解决方案: Check for NULL. 相关文件: src/mark.c Patch 7.4.060 问题: Declaration has wrong return type for PyObject_SetAttrString(). 解决方案: Use int instead of PyObject. (Andreas Schwab) 相关文件: src/if_python.c, src/if_python3.c Patch 7.4.061 (after 7.4.055 and 7.4.056) 问题: Availability macros configure check in wrong place. 解决方案: Also check when not using Darwin. Remove version check. 相关文件: src/configure.in, src/auto/configure, src/os_unix.c Patch 7.4.062 (after 7.4.061) 问题: Configure check for AvailabilityMacros.h is wrong. 解决方案: Use AC_CHECK_HEADERS(). 相关文件: src/configure.in, src/auto/configure Patch 7.4.063 问题: Crash when using invalid key in Python dictionary. 解决方案: Check for object to be NULL. Add tests. (ZyX) 相关文件: src/if_py_both.h, src/testdir/test86.in, src/testdir/test86.ok, src/testdir/test87.in, src/testdir/test87.ok Patch 7.4.064 问题: When replacing a character in Visual block mode, entering a CR does not cause a repeated line break. 解决方案: Recognize the situation and repeat the line break. (Christian Brabandt) 相关文件: src/normal.c, src/ops.c, src/testdir/test39.in, src/testdir/test39.ok Patch 7.4.065 问题: When recording, the character typed at the hit-enter prompt is recorded twice. (Urtica Dioica) 解决方案: Avoid recording the character twice. (Christian Brabandt) 相关文件: src/message.c Patch 7.4.066 问题: MS-Windows: When there is a colon in the file name (sub-stream feature) the swap file name is wrong. 解决方案: Change the colon to "%". (Yasuhiro Matsumoto) 相关文件: src/fileio.c, src/memline.c, src/misc1.c, src/proto/misc1.pro Patch 7.4.067 问题: After inserting comment leader, CTRL-\ CTRL-O does move the cursor. (Wiktor Ruben) 解决方案: Avoid moving the cursor. (Christian Brabandt) 相关文件: src/edit.c Patch 7.4.068 问题: Cannot build Vim on Mac with non-Apple compilers. 解决方案: Remove the -no-cpp-precomp flag. (Misty De Meo) 相关文件: src/configure.in, src/auto/configure, src/osdef.sh Patch 7.4.069 问题: Cannot right shift lines starting with #. 解决方案: Allow the right shift when 'cino' contains #N with N > 0. (Christian Brabandt) Refactor parsing 'cino', store the values in the buffer. 相关文件: runtime/doc/indent.txt, src/buffer.c, src/edit.c, src/eval.c, src/ex_getln.c, src/fold.c, src/misc1.c, src/ops.c, src/proto/misc1.pro, src/proto/option.pro, src/structs.h, src/option.c Patch 7.4.070 (after 7.4.069) 问题: Can't compile with tiny features. (Tony Mechelynck) 解决方案: Add #ifdef. 相关文件: src/buffer.c Patch 7.4.071 (after 7.4.069) 问题: Passing limits around too often. 解决方案: Use limits from buffer. 相关文件: src/edit.c, src/misc1.c, src/proto/misc1.pro Patch 7.4.072 问题: Crash when using Insert mode completion. 解决方案: Avoid going past the end of pum_array. (idea by Francisco Lopes) 相关文件: src/popupmnu.c Patch 7.4.073 问题: Setting undolevels for one buffer changes undo in another. 解决方案: Make 'undolevels' a global-local option. (Christian Brabandt) 相关文件: runtime/doc/options.txt, src/buffer.c, src/option.c, src/option.h src/structs.h, src/undo.c Patch 7.4.074 问题: When undo'ing all changes and creating a new change the undo structure is incorrect. (Christian Brabandt) 解决方案: When deleting the branch starting at the old header, delete the whole branch, not just the first entry. 相关文件: src/undo.c Patch 7.4.075 问题: Locally setting 'undolevels' is not tested. 解决方案: Add a test. (Christian Brabandt) 相关文件: src/testdir/test100.in, src/testdir/test100.ok, src/testdir/Make_amiga.mak, src/testdir/Make_dos.mak, src/testdir/Make_ming.mak, src/testdir/Make_os2.mak, src/testdir/Make_vms.mms, src/testdir/Makefile, src/Makefile Patch 7.4.076 问题: "cgn" does not wrap around the end of the file. (Dimitar Dimitrov) 解决方案: Restore 'wrapscan' earlier. (Christian Brabandt) 相关文件: src/search.c Patch 7.4.077 问题: DOS installer creates shortcut without a path, resulting in the current directory to be C:\Windows\system32. 解决方案: Use environment variables. 相关文件: src/dosinst.c Patch 7.4.078 问题: MSVC 2013 is not supported. 解决方案: Recognize and support MSVC 2013. (Ed Brown) 相关文件: src/Make_mvc.mak Patch 7.4.079 问题: A script cannot detect whether 'hlsearch' highlighting is actually displayed. 解决方案: Add the "v:hlsearch" variable. (ZyX) 相关文件: src/eval.c, src/ex_docmd.c, src/option.c, src/screen.c, src/search.c, src/tag.c, src/vim.h, src/testdir/test101.in, src/testdir/test101.ok, src/testdir/Make_amiga.mak, src/testdir/Make_dos.mak, src/testdir/Make_ming.mak, src/testdir/Make_os2.mak, src/testdir/Make_vms.mms, src/testdir/Makefile Patch 7.4.080 (after 7.4.079) 问题: Missing documentation for v:hlsearch. 解决方案: Include the right file in the patch. 相关文件: runtime/doc/eval.txt Patch 7.4.081 (after 7.4.078) 问题: Wrong logic when ANALYZE is "yes". 解决方案: Use or instead of and. (KF Leong) 相关文件: src/Make_mvc.mak Patch 7.4.082 问题: Using "gf" in a changed buffer suggests adding "!", which is not possible. (Tim Chase) 解决方案: Pass a flag to check_changed() whether adding ! make sense. 相关文件: src/vim.h, src/ex_cmds2.c, src/proto/ex_cmds2.pro, src/globals.h, src/ex_cmds.c, src/ex_docmd.c Patch 7.4.083 问题: It's hard to avoid adding a used pattern to the search history. 解决方案: Add the ":keeppatterns" modifier. (Christian Brabandt) 相关文件: runtime/doc/cmdline.txt, src/ex_cmds.h, src/ex_docmd.c, src/ex_getln.c, src/structs.h Patch 7.4.084 问题: Python: interrupt not being properly discarded. (Yggdroot Chen) 解决方案: Discard interrupt in VimTryEnd. (ZyX) 相关文件: src/if_py_both.h, src/testdir/test86.in, src/testdir/test86.ok, src/testdir/test87.in, src/testdir/test87.ok Patch 7.4.085 问题: When inserting text in Visual block mode and moving the cursor the wrong text gets repeated in other lines. 解决方案: Use the '[ mark to find the start of the actually inserted text. (Christian Brabandt) 相关文件: src/ops.c, src/testdir/test39.in, src/testdir/test39.ok Patch 7.4.086 问题: Skipping over an expression when not evaluating it does not work properly for dict members. 解决方案: Skip over unrecognized expression. (ZyX) 相关文件: src/eval.c, src/testdir/test34.in, src/testdir/test34.ok Patch 7.4.087 问题: Compiler warning on 64 bit Windows systems. 解决方案: Fix type cast. (Mike Williams) 相关文件: src/ops.c Patch 7.4.088 问题: When spell checking is enabled Asian characters are always marked as error. 解决方案: When 'spelllang' contains "cjk" do not mark Asian characters as error. (Ken Takata) 相关文件: runtime/doc/options.txt, runtime/doc/spell.txt, src/mbyte.c, src/option.c, src/spell.c, src/structs.h Patch 7.4.089 问题: When editing a file in a directory mounted through sshfs Vim doesn't set the security context on a renamed file. 解决方案: Add mch_copy_sec() to vim_rename(). (Peter Backes) 相关文件: src/fileio.c Patch 7.4.090 问题: Win32: When a directory name contains an exclamation mark, completion doesn't complete the contents of the directory. 解决方案: Escape the exclamation mark. (Jan Stocker) 相关文件: src/ex_getln.c, src/testdir/test102.in, src/testdir/test102.ok, src/testdir/Make_amiga.mak, src/testdir/Make_dos.mak, src/testdir/Make_ming.mak, src/testdir/Make_os2.mak, src/testdir/Make_vms.mms, src/testdir/Makefile Patch 7.4.091 (after 7.4.089) 问题: Missing semicolon. 解决方案: Add the semicolon. 相关文件: src/fileio.c Patch 7.4.092 (after 7.4.088) 问题: Can't build small version. 解决方案: Add #ifdef where the b_cjk flag is used. (Ken Takata) 相关文件: src/spell.c Patch 7.4.093 问题: Configure can't use LuaJIT on ubuntu 12.04. 解决方案: Adjust the configure regexp that locates the version number. (Charles Strahan) 相关文件: src/configure.in, src/auto/configure Patch 7.4.094 问题: Configure may not find that -lint is needed for gettext(). 解决方案: Check for gettext() with empty $LIBS. (Thomas De Schampheleire) 相关文件: src/configure.in, src/auto/configure Patch 7.4.095 (after 7.4.093) 问题: Regexp for LuaJIT version doesn't work on BSD. 解决方案: Use "*" instead of "\+" and "\?". (Ozaki Kiichi) 相关文件: src/configure.in, src/auto/configure Patch 7.4.096 问题: Can't change directory to an UNC path. 解决方案: Use win32_getattrs() in mch_getperm(). (Christian Brabandt) 相关文件: src/os_win32.c Patch 7.4.097 (after 7.4.034) 问题: Unexpected behavior change related to 'virtualedit'. (Ingo Karkat) 解决方案: Update the valid cursor position. (Christian Brabandt) 相关文件: src/ops.c Patch 7.4.098 问题: When using ":'<,'>del" errors may be given for the visual line numbers being out of range. 解决方案: Reset Visual mode in ":del". (Lech Lorens) 相关文件: src/ex_docmd.c, src/testdir/test103.in, src/testdir/test103.ok, src/testdir/Make_amiga.mak, src/testdir/Make_dos.mak, src/testdir/Make_ming.mak, src/testdir/Make_os2.mak, src/testdir/Make_vms.mms, src/testdir/Makefile Patch 7.4.099 问题: Append in blockwise Visual mode with "$" is wrong. 解决方案: After "$" don't use the code that checks if the cursor was moved. (Hirohito Higashi, Ken Takata) 相关文件: src/ops.c, src/testdir/test39.in, src/testdir/test39.ok Patch 7.4.100 问题: NFA regexp doesn't handle backreference correctly. (Ryuichi Hayashida, Urtica Dioica) 解决方案: Always add NFA_SKIP, also when it already exists at the start position. 相关文件: src/regexp_nfa.c, src/testdir/test64.in, src/testdir/test64.ok Patch 7.4.101 问题: Using \1 in pattern goes one line too far. (Bohr Shaw, John Little) 解决方案: Only advance the match end for the matched characters in the last line. 相关文件: src/regexp.c, src/testdir/test64.in, src/testdir/test64.ok Patch 7.4.102 问题: Crash when interrupting "z=". 解决方案: Add safety check for word length. (Christian Brabandt, Dominique Pelle) 相关文件: src/spell.c Patch 7.4.103 问题: Dos installer uses an old way to escape spaces in the diff command. 解决方案: Adjust the quoting to the new default shellxquote. (Ben Fritz) 相关文件: src/dosinst.c Patch 7.4.104 问题: ":help s/\_" reports an internal error. (John Beckett) 解决方案: Check for NUL and invalid character classes. 相关文件: src/regexp_nfa.c Patch 7.4.105 问题: Completing a tag pattern may give an error for invalid pattern. 解决方案: Suppress the error, just return no matches. 相关文件: src/tag.c Patch 7.4.106 问题: Can't build with Ruby using Cygwin. 解决方案: Fix library name in makefile. (Steve Hall) 相关文件: src/Make_cyg.mak Patch 7.4.107 问题: Python: When vim.eval() encounters a Vim error, a try/catch in the Python code doesn't catch it. (Yggdroot Chen) 解决方案: Throw exceptions on errors in vim.eval(). (ZyX) 相关文件: src/ex_eval.c, src/if_py_both.h, src/proto/ex_eval.pro, src/testdir/test86.in, src/testdir/test86.ok, src/testdir/test87.in, src/testdir/test87.ok Patch 7.4.108 问题: "zG" and "zW" leave temp files around on MS-Windows. 解决方案: Delete the temp files when exiting. (Ken Takata) 相关文件: src/memline.c, src/proto/spell.pro, src/spell.c Patch 7.4.109 问题: ColorScheme autocommand matches with the current buffer name. 解决方案: Match with the colorscheme name. (Christian Brabandt) 相关文件: runtime/doc/autocmd.txt, src/fileio.c, src/syntax.c Patch 7.4.110 问题: "gUgn" cannot be repeated. (Dimitar Dimitrov) 解决方案: Don't put "gn" in a different order in the redo buffer. Restore 'wrapscan' when the pattern isn't found. (Christian Wellenbrock) 相关文件: src/normal.c, src/search.c, src/test53.in, src/test53.ok Patch 7.4.111 问题: Memory leak in Python OptionsAssItem. (Ken Takata) 解决方案: Call Py_XDECREF() where needed. (ZyX) 相关文件: src/if_py_both.h Patch 7.4.112 问题: The defaults for 'directory' and 'backupdir' on MS-Windows do not include a directory that exists. 解决方案: Use $TEMP. 相关文件: src/os_dos.h Patch 7.4.113 问题: MSVC static analysis gives warnings. 解决方案: Avoid the warnings and avoid possible bugs. (Ken Takata) 相关文件: src/os_win32.c Patch 7.4.114 问题: New GNU make outputs messages about changing directory in another format. 解决方案: Recognize the new format. 相关文件: src/option.h Patch 7.4.115 问题: When using Zsh expanding ~abc doesn't work when the result contains a space. 解决方案: Off-by-one error in detecting the NUL. (Pavol Juhas) 相关文件: src/os_unix.c Patch 7.4.116 问题: When a mapping starts with a space, the typed space does not show up for 'showcmd'. 解决方案: Show "<20>". (Brook Hong) 相关文件: src/normal.c Patch 7.4.117 问题: Can't build with Cygwin/MingW and Perl 5.18. 解决方案: Add a linker argument for the Perl library. (Cesar Romani) Adjust CFLAGS and LIB. (Cesar Romani) Move including inline.h further down. (Ken Takata) 相关文件: src/Make_cyg.mak, src/Make_ming.mak, src/if_perl.xs Patch 7.4.118 问题: It's possible that redrawing the status lines causes win_redr_custom() to be called recursively. 解决方案: Protect against recursiveness. (Yasuhiro Matsumoto) 相关文件: src/screen.c Patch 7.4.119 问题: Vim doesn't work well on OpenVMS. 解决方案: Fix various problems. (Samuel Ferencik) 相关文件: src/os_unix.c, src/os_unix.h, src/os_vms.c Patch 7.4.120 (after 7.4.117) 问题: Can't build with Perl 5.18 on Linux. (Lcd 47) 解决方案: Add #ifdef. (Ken Takata) 相关文件: src/if_perl.xs Patch 7.4.121 问题: Completion doesn't work for ":py3d" and ":py3f". (Bohr Shaw) 解决方案: Skip over letters after ":py3". 相关文件: src/ex_docmd.c Patch 7.4.122 问题: Win32: When 'encoding' is set to "utf-8" and the active codepage is cp932 then ":grep" and other commands don't work for multi-byte characters. 解决方案: (Yasuhiro Matsumoto) 相关文件: src/os_win32.c Patch 7.4.123 问题: Win32: Getting user name does not use wide function. 解决方案: Use GetUserNameW() if possible. (Ken Takata) 相关文件: src/os_win32.c Patch 7.4.124 问题: Win32: Getting host name does not use wide function. 解决方案: Use GetComputerNameW() if possible. (Ken Takata) 相关文件: src/os_win32.c Patch 7.4.125 问题: Win32: Dealing with messages may not work for multi-byte chars. 解决方案: Use pDispatchMessage(). (Ken Takata) 相关文件: src/os_win32.c Patch 7.4.126 问题: Compiler warnings for "const" and incompatible types. 解决方案: Remove "const", add type cast. (Ken Takata) 相关文件: src/os_win32.c Patch 7.4.127 问题: Perl 5.18 on Unix doesn't work. 解决方案: Move workaround to after including vim.h. (Ken Takata) 相关文件: src/if_perl.xs Patch 7.4.128 问题: Perl 5.18 for MSVC doesn't work. 解决方案: Add check in makefile and define __inline. (Ken Takata) 相关文件: src/Make_mvc.mak, src/if_perl.xs Patch 7.4.129 问题: getline(-1) returns zero. (mvxxc) 解决方案: Return an empty string. 相关文件: src/eval.c Patch 7.4.130 问题: Relative line numbers mix up windows when using folds. 解决方案: Use hasFoldingWin() instead of hasFolding(). (Lech Lorens) 相关文件: src/misc2.c Patch 7.4.131 问题: Syncbind causes E315 errors in some situations. (Liang Li) 解决方案: Set and restore curbuf in ex_syncbind(). (Christian Brabandt) 相关文件: src/ex_docmd.c, src/testdir/test37.ok Patch 7.4.132 (after 7.4.122) 问题: Win32: flags and inherit_handles arguments mixed up. 解决方案: Swap the argument. (cs86661) 相关文件: src/os_win32.c Patch 7.4.133 问题: Clang warns for using NUL. 解决方案: Change NUL to NULL. (Dominique Pelle) 相关文件: src/eval.c, src/misc2.c Patch 7.4.134 问题: Spurious space in MingW Makefile. 解决方案: Remove the space. (Michael Soyka) 相关文件: src/Make_ming.mak Patch 7.4.135 问题: Missing dot in MingW test Makefile. 解决方案: Add the dot. (Michael Soyka) 相关文件: src/testdir/Make_ming.mak Patch 7.4.136 (after 7.4.096) 问题: MS-Windows: When saving a file with a UNC path the file becomes read-only. 解决方案: Don't mix up Win32 attributes and Unix attributes. (Ken Takata) 相关文件: src/os_mswin.c, src/os_win32.c Patch 7.4.137 问题: Cannot use IME with Windows 8 console. 解决方案: Change the user of ReadConsoleInput() and PeekConsoleInput(). (Nobuhiro Takasaki) 相关文件: src/os_win32.c Patch 7.4.138 (after 7.4.114) 问题: Directory change messages are not recognized. 解决方案: Fix using a character range literally. (Lech Lorens) 相关文件: src/option.h Patch 7.4.139 问题: Crash when using :cd in autocommand. (François Ingelrest) 解决方案: Set w_localdir to NULL after freeing it. (Dominique Pelle) 相关文件: src/ex_docmd.c, src/window.c Patch 7.4.140 问题: Crash when wiping out buffer triggers autocommand that wipes out only other buffer. 解决方案: Do not delete the last buffer, make it empty. (Hirohito Higashi) 相关文件: src/buffer.c Patch 7.4.141 问题: Problems when building with Borland: st_mode is signed short; can't build with Python; temp files not ignored by Mercurial; building with DEBUG doesn't define _DEBUG. 解决方案: Fix the problems. (Ken Takata) 相关文件: src/Make_bc5.mak, src/if_py_both.h, src/os_win32.c Patch 7.4.142 (after 7.4.137) 问题: On MS-Windows 8 IME input doesn't work correctly. 解决方案: Work around the problem. (Nobuhiro Takasaki) 相关文件: src/os_win32.c Patch 7.4.143 问题: TextChangedI is not triggered. 解决方案: Reverse check for "ready". (lilydjwg) 相关文件: src/edit.c Patch 7.4.144 问题: MingW also supports intptr_t for OPEN_OH_ARGTYPE. 解决方案: Adjust #ifdef. (Ken Takata) 相关文件: src/os_mswin.c Patch 7.4.145 问题: getregtype() does not return zero for unknown register. 解决方案: Adjust documentation: return empty string for unknown register. Check the register name to be valid. (Yukihiro Nakadaira) 相关文件: runtime/doc/eval.txt, src/ops.c Patch 7.4.146 问题: When starting Vim with "-u NONE" v:oldfiles is NULL. 解决方案: Set v:oldfiles to an empty list. (Yasuhiro Matsumoto) 相关文件: src/main.c Patch 7.4.147 问题: Cursor moves to wrong position when using "gj" after "$" and virtual editing is active. 解决方案: Make "gj" behave differently when virtual editing is active. (Hirohito Higashi) 相关文件: src/normal.c, src/testdir/test39.in, src/testdir/test39.ok Patch 7.4.148 问题: Cannot build with Cygwin and X11. 解决方案: Include Xwindows.h instead of windows.h. (Lech Lorens) 相关文件: src/mbyte.c Patch 7.4.149 问题: Get E685 error when assigning a function to an autoload variable. (Yukihiro Nakadaira) 解决方案: Instead of having a global no_autoload variable, pass an autoload flag down to where it is used. (ZyX) 相关文件: src/eval.c, src/testdir/test55.in, src/testdir/test55.ok, src/testdir/test60.in, src/testdir/test60.ok, src/testdir/sautest/autoload/footest.vim Patch 7.4.150 问题: :keeppatterns is not respected for :s. 解决方案: Check the keeppatterns flag. (Yasuhiro Matsumoto) 相关文件: src/search.c, src/testdir/test14.in, src/testdir/test14.ok Patch 7.4.151 问题: Python: slices with steps are not supported. 解决方案: Support slices in Python vim.List. (ZyX) 相关文件: src/eval.c, src/if_py_both.h, src/if_python3.c, src/if_python.c, src/proto/eval.pro, src/testdir/test86.in, src/testdir/test86.ok, src/testdir/test87.in, src/testdir/test87.ok Patch 7.4.152 问题: Python: Cannot iterate over options. 解决方案: Add options iterator. (ZyX) 相关文件: src/if_py_both.h, src/option.c, src/proto/option.pro, src/testdir/test86.in, src/testdir/test86.ok, src/testdir/test87.in, src/testdir/test87.ok, src/vim.h Patch 7.4.153 问题: Compiler warning for pointer type. 解决方案: Add type cast. 相关文件: src/if_py_both.h, src/if_python.c, src/if_python3.c Patch 7.4.154 (after 7.4.149) 问题: Still a problem with auto-loading. 解决方案: Pass no_autoload to deref_func_name(). (Yukihiro Nakadaira) 相关文件: src/eval.c Patch 7.4.155 问题: ":keeppatterns /pat" does not keep search pattern offset. 解决方案: Restore the offset after doing the search. 相关文件: src/search.c, src/testdir/test14.in, src/testdir/test14.ok Patch 7.4.156 问题: Test file missing from distribution. 解决方案: Add new directory to file list. 相关文件: Filelist Patch 7.4.157 问题: Error number used twice. (Yukihiro Nakadaira) 解决方案: Change the one not referred in the docs. 相关文件: src/undo.c Patch 7.4.158 (after 7.4.045) 问题: Pattern containing \zs is not handled correctly by substitute(). 解决方案: Change how an empty match is skipped. (Yukihiro Nakadaira) 相关文件: src/eval.c, src/testdir/test80.in, src/testdir/test80.ok Patch 7.4.159 问题: Completion hangs when scanning the current buffer after doing keywords. (Christian Brabandt) 解决方案: Set the first match position when starting to scan the current buffer. 相关文件: src/edit.c Patch 7.4.160 问题: Win32: Crash when executing external command. 解决方案: Only close the handle when it was created. (Yasuhiro Matsumoto) 相关文件: src/os_win32.c Patch 7.4.161 问题: Crash in Python exception handling. 解决方案: Only use exception variables if did_throw is set. (ZyX) 相关文件: if_py_both.h Patch 7.4.162 问题: Running tests in shadow dir doesn't work. 解决方案: Add testdir/sautest to the shadow target. (James McCoy) 相关文件: src/Makefile Patch 7.4.163 (after 7.4.142) 问题: MS-Windows input doesn't work properly on Windows 7 and earlier. 解决方案: Add a check for Windows 8. (Yasuhiro Matsumoto) 相关文件: src/os_win32.c Patch 7.4.164 (after 7.4.163) 问题: Problem with event handling on Windows 8. 解决方案: Ignore duplicate WINDOW_BUFFER_SIZE_EVENTs. (Nobuhiro Takasaki) 相关文件: src/os_win32.c Patch 7.4.165 问题: By default, after closing a buffer changes can't be undone. 解决方案: In the example vimrc file set 'undofile'. 相关文件: runtime/vimrc_example.vim Patch 7.4.166 问题: Auto-loading a function for code that won't be executed. 解决方案: Do not auto-load when evaluation is off. (Yasuhiro Matsumoto) 相关文件: src/eval.c Patch 7.4.167 (after 7.4.149) 问题: Fixes are not tested. 解决方案: Add a test for not autoloading on assignment. (Yukihiro Nakadaira) 相关文件: src/testdir/Make_amiga.mak, src/testdir/Make_dos.mak, src/testdir/Make_ming.mak, src/testdir/Make_os2.mak, src/testdir/Make_vms.mms, src/testdir/Makefile, src/testdir/sautest/autoload/Test104.vim, src/testdir/test104.in, src/testdir/test104.ok Patch 7.4.168 问题: Can't compile with Ruby 2.1.0. 解决方案: Add support for new GC. (Kohei Suzuki) 相关文件: src/if_ruby.c Patch 7.4.169 问题: ":sleep" puts cursor in the wrong column. (Liang Li) 解决方案: Add the window offset. (Christian Brabandt) 相关文件: src/ex_docmd.c Patch 7.4.170 问题: Some help tags don't work with ":help". (Tim Chase) 解决方案: Add exceptions. 相关文件: src/ex_cmds.c Patch 7.4.171 问题: Redo does not set v:count and v:count1. 解决方案: Use a separate buffer for redo, so that we can set the counts when performing redo. 相关文件: src/getchar.c, src/globals.h, src/normal.c, src/proto/getchar.pro, src/structs.h Patch 7.4.172 问题: The blowfish code mentions output feedback, but the code is actually doing cipher feedback. 解决方案: Adjust names and comments. 相关文件: src/blowfish.c, src/fileio.c, src/proto/blowfish.pro, src/memline.c Patch 7.4.173 问题: When using scrollbind the cursor can end up below the last line. (mvxxc) 解决方案: Reset w_botfill when scrolling up. (Christian Brabandt) 相关文件: src/move.c Patch 7.4.174 问题: Compiler warnings for Python interface. (Tony Mechelynck) 解决方案: Add type casts, initialize variable. 相关文件: src/if_py_both.h Patch 7.4.175 问题: When a wide library function fails, falling back to the non-wide function may do the wrong thing. 解决方案: Check the platform, when the wide function is supported don't fall back to the non-wide function. (Ken Takata) 相关文件: src/os_mswin.c, src/os_win32.c Patch 7.4.176 问题: Dictionary.update() throws an error when used without arguments. Python programmers don't expect that. 解决方案: Make Dictionary.update() without arguments do nothing. (ZyX) 相关文件: src/if_py_both.h, src/testdir/test86.in, src/testdir/test87.in Patch 7.4.177 问题: Compiler warning for unused variable. (Tony Mechelynck) 解决方案: Add #ifdef. 相关文件: src/move.c Patch 7.4.178 问题: The J command does not update '[ and '] marks. (William Gardner) 解决方案: Set the marks. (Christian Brabandt) 相关文件: src/ops.c Patch 7.4.179 问题: Warning for type-punned pointer. (Tony Mechelynck) 解决方案: Use intermediate variable. 相关文件: src/if_py_both.h Patch 7.4.180 (after 7.4.174) 问题: Older Python versions don't support %ld. 解决方案: Use %d instead. (ZyX) 相关文件: src/if_py_both.h Patch 7.4.181 问题: When using 'pastetoggle' the status lines are not updated. (Samuel Ferencik, Jan Christoph Ebersbach) 解决方案: Update the status lines. (Nobuhiro Takasaki) 相关文件: src/getchar.c Patch 7.4.182 问题: Building with mzscheme and racket does not work. (David Chimay) 解决方案: Adjust autoconf. (Sergey Khorev) 相关文件: src/configure.in, src/auto/configure Patch 7.4.183 问题: MSVC Visual Studio update not supported. 解决方案: Add version number. (Mike Williams) 相关文件: src/Make_mvc.mak Patch 7.4.184 问题: match() does not work properly with a {count} argument. 解决方案: Compute the length once and update it. Quit the loop when at the end. (Hirohito Higashi) 相关文件: src/eval.c, src/testdir/test53.in, src/testdir/test53.ok Patch 7.4.185 问题: Clang gives warnings. 解决方案: Adjust how bigness is set. (Dominique Pelle) 相关文件: src/ex_cmds.c Patch 7.4.186 (after 7.4.085) 问题: Insert in Visual mode sometimes gives incorrect results. (Dominique Pelle) 解决方案: Remember the original insert start position. (Christian Brabandt, Dominique Pelle) 相关文件: src/edit.c, src/globals.h, src/ops.c, src/structs.h Patch 7.4.187 问题: Delete that crosses line break splits multi-byte character. 解决方案: Advance a character instead of a byte. (Cade Foster) 相关文件: src/normal.c, src/testdir/test69.in, src/testdir/test69.ok Patch 7.4.188 问题: SIZEOF_LONG clashes with similar defines in header files. 解决方案: Rename to a name starting with VIM_. Also for SIZEOF_INT. 相关文件: src/if_ruby.c, src/vim.h, src/configure.in, src/auto/configure, src/config.h.in, src/fileio.c, src/if_python.c, src/message.c, src/spell.c, src/feature.h, src/os_os2_cfg.h, src/os_vms_conf.h, src/os_win16.h, src/structs.h Patch 7.4.189 问题: Compiler warning for unused argument. 解决方案: Add UNUSED. 相关文件: src/eval.c Patch 7.4.190 问题: Compiler warning for using %lld for off_t. 解决方案: Add type cast. 相关文件: src/fileio.c Patch 7.4.191 问题: Escaping a file name for shell commands can't be done without a function. 解决方案: Add the :S file name modifier. 相关文件: src/testdir/Make_amiga.mak, src/testdir/Make_dos.mak, src/testdir/Make_ming.mak, src/testdir/Make_os2.mak, src/testdir/Make_vms.mms, src/testdir/Makefile, src/testdir/test105.in, src/testdir/test105.ok, runtime/doc/cmdline.txt, runtime/doc/eval.txt, runtime/doc/map.txt, runtime/doc/options.txt, runtime/doc/quickfix.txt, runtime/doc/usr_30.txt, runtime/doc/usr_40.txt, runtime/doc/usr_42.txt, runtime/doc/vi_diff.txt, src/eval.c, src/misc2.c, src/normal.c, src/proto/misc2.pro Patch 7.4.192 问题: Memory leak when giving E853. 解决方案: Free the argument. (Dominique Pelle) 相关文件: src/eval.c Patch 7.4.193 问题: Typos in messages. 解决方案: "then" -> "than". (Dominique Pelle) 相关文件: src/if_py_both.h, src/spell.c Patch 7.4.194 问题: Can't build for Android. 解决方案: Add #if condition. (Fredrik Fornwall) 相关文件: src/mbyte.c Patch 7.4.195 (after 7.4.193) 问题: Python tests fail. 解决方案: Change "then" to "than" in more places. (Dominique Pelle, Taro Muraoka) 相关文件: src/testdir/test86.in, src/testdir/test86.ok, src/testdir/test87.in, src/testdir/test87.ok Patch 7.4.196 问题: Tests fail on Solaris 9 and 10. 解决方案: Use "test -f" instead of "test -e". (Laurent Blume) 相关文件: src/testdir/Makefile Patch 7.4.197 问题: Various problems on VMS. 解决方案: Fix several VMS problems. (Zoltan Arpadffy) 相关文件: runtime/doc/os_vms.txt, src/Make_vms.mms, src/fileio.c, src/os_unix.c, src/os_unix.h, src/os_vms.c, src/os_vms_conf.h, src/proto/os_vms.pro, src/testdir/Make_vms.mms, src/testdir/test72.in, src/testdir/test77a.com, src/testdir/test77a.in, src/testdir/test77a.ok src/undo.c Patch 7.4.198 问题: Can't build Vim with Perl when -Dusethreads is not specified for building Perl, and building Vim with --enable-perlinterp=dynamic. 解决方案: Adjust #ifdefs. (Yasuhiro Matsumoto) 相关文件: src/if_perl.xs Patch 7.4.199 问题: (issue 197) ]P doesn't paste over Visual selection. 解决方案: Handle Visual mode specifically. (Christian Brabandt) 相关文件: src/normal.c Patch 7.4.200 问题: Too many #ifdefs in the code. 解决方案: Enable FEAT_VISUAL always, await any complaints 相关文件: src/feature.h Patch 7.4.201 问题: 'lispwords' is a global option. 解决方案: Make 'lispwords' global-local. (Sung Pae) 相关文件: runtime/doc/options.txt, runtime/optwin.vim, src/buffer.c, src/misc1.c, src/option.c, src/option.h, src/structs.h, src/testdir/test100.in, src/testdir/test100.ok Patch 7.4.202 问题: MS-Windows: non-ASCII font names don't work. 解决方案: Convert between the current code page and 'encoding'. (Ken Takata) 相关文件: src/gui_w48.c, src/os_mswin.c, src/proto/winclip.pro, src/winclip.c Patch 7.4.203 问题: Parsing 'errorformat' is not correct. 解决方案: Reset "multiignore" at the start of a multi-line message. (Lcd) 相关文件: src/quickfix.c, src/testdir/Make_amiga.mak, src/testdir/Make_dos.mak, src/testdir/Make_ming.mak, src/testdir/Make_os2.mak, src/testdir/Make_vms.mms, src/testdir/Makefile, src/testdir/test106.in, src/testdir/test106.ok Patch 7.4.204 问题: A mapping where the second byte is 0x80 doesn't work. 解决方案: Unescape before checking for incomplete multi-byte char. (Nobuhiro Takasaki) 相关文件: src/getchar.c, src/testdir/test75.in, src/testdir/test75.ok Patch 7.4.205 问题: ":mksession" writes command to move to second argument while it does not exist. When it does exist the order might be wrong. 解决方案: Use ":argadd" for each argument instead of using ":args" with a list of names. (Nobuhiro Takasaki) 相关文件: src/ex_docmd.c Patch 7.4.206 问题: Compiler warnings on 64 bit Windows. 解决方案: Add type casts. (Mike Williams) 相关文件: src/gui_w48.c, src/os_mswin.c Patch 7.4.207 问题: The cursor report sequence is sometimes not recognized and results in entering replace mode. 解决方案: Also check for the cursor report when not asked for. 相关文件: src/term.c Patch 7.4.208 问题: Mercurial picks up some files that are not distributed. 解决方案: Add patterns to the ignore list. (Cade Forester) 相关文件: .hgignore Patch 7.4.209 问题: When repeating a filter command "%" and "#" are expanded. 解决方案: Escape the command when storing for redo. (Christian Brabandt) 相关文件: src/ex_cmds.c Patch 7.4.210 问题: Visual block mode plus virtual edit doesn't work well with tabs. (Liang Li) 解决方案: Take coladd into account. (Christian Brabandt) 相关文件: src/ops.c, src/testdir/test39.in, src/testdir/test39.ok Patch 7.4.211 问题: ":lu" is an abbreviation for ":lua", but it should be ":lunmap". (ZyX) 解决方案: Move "lunmap" to above "lua". 相关文件: src/ex_cmds.h Patch 7.4.212 (after 7.4.200) 问题: Now that the +visual feature is always enabled the #ifdefs for it are not useful. 解决方案: Remove the checks for FEAT_VISUAL. 相关文件: src/buffer.c, src/charset.c, src/edit.c, src/eval.c, src/ex_cmds.c, src/ex_docmd.c, src/fold.c, src/getchar.c, src/gui.c, src/gui_mac.c, src/gui_w48.c, src/main.c, src/mark.c, src/menu.c, src/misc2.c, src/move.c, src/netbeans.c, src/normal.c, src/ops.c, src/option.c, src/os_msdos.c, src/os_qnx.c, src/quickfix.c, src/regexp.c, src/regexp_nfa.c, src/screen.c, src/search.c, src/spell.c, src/syntax.c, src/term.c, src/ui.c, src/undo.c, src/version.c, src/window.c, src/feature.h, src/globals.h, src/option.h, src/os_win32.h, src/structs.h Patch 7.4.213 问题: It's not possible to open a new buffer without creating a swap file. 解决方案: Add the ":noswapfile" modifier. (Christian Brabandt) 相关文件: runtime/doc/recover.txt, src/ex_cmds.h, src/ex_docmd.c, src/memline.c, src/structs.h Patch 7.4.214 问题: Compilation problems on HP_nonStop (Tandem). 解决方案: Add #defines. (Joachim Schmitz) 相关文件: src/vim.h Patch 7.4.215 问题: Inconsistency: ":sp foo" does not reload "foo", unless "foo" is the current buffer. (Liang Li) 解决方案: Do not reload the current buffer on a split command. 相关文件: runtime/doc/windows.txt, src/ex_docmd.c Patch 7.4.216 问题: Compiler warnings. (Tony Mechelynck) 解决方案: Initialize variables, add #ifdef. 相关文件: src/term.c, src/os_unix.h Patch 7.4.217 问题: When src/auto/configure was updated, "make clean" would run configure pointlessly. 解决方案: Do not run configure for "make clean" and "make distclean" when the make program supports $MAKECMDGOALS. (Ken Takata) 相关文件: src/Makefile Patch 7.4.218 问题: It's not easy to remove duplicates from a list. 解决方案: Add the uniq() function. (Lcd) 相关文件: runtime/doc/change.txt, runtime/doc/eval.txt, runtime/doc/usr_41.txt, runtime/doc/version7.txt, src/eval.c, src/testdir/test55.in, src/testdir/test55.ok Patch 7.4.219 问题: When 'relativenumber' or 'cursorline' are set the window is redrawn much to often. (Patrick Hemmer, Dominique Pelle) 解决方案: Check the VALID_CROW flag instead of VALID_WROW. 相关文件: src/move.c Patch 7.4.220 问题: Test 105 does not work in a shadow dir. (James McCoy) 解决方案: Omit "src/" from the checked path. 相关文件: src/testdir/test105.in, src/testdir/test105.ok Patch 7.4.221 问题: Quickfix doesn't resize on ":copen 20". (issue 199) 解决方案: Resize the window when requested. (Christian Brabandt) 相关文件: src/quickfix.c Patch 7.4.222 问题: The Ruby directory is constructed from parts. 解决方案: Use 'rubyarchhdrdir' if it exists. (James McCoy) 相关文件: src/configure.in, src/auto/configure Patch 7.4.223 问题: Still using an older autoconf version. 解决方案: Switch to autoconf 2.69. 相关文件: src/Makefile, src/configure.in, src/auto/configure Patch 7.4.224 问题: /usr/bin/grep on Solaris does not support -F. 解决方案: Add configure check to find a good grep. (Danek Duvall) 相关文件: src/configure.in, src/auto/configure Patch 7.4.225 问题: Dynamic Ruby doesn't work on Solaris. 解决方案: Always use the stubs. (Danek Duvall, Yukihiro Nakadaira) 相关文件: src/if_ruby.c Patch 7.4.226 (after 7.4.219) 问题: Cursurline highlighting not redrawn when scrolling. (John Marriott) 解决方案: Check for required redraw in two places. 相关文件: src/move.c Patch 7.4.227 (after 7.4.225) 问题: Can't build with Ruby 1.8. 解决方案: Do include a check for the Ruby version. (Ken Takata) 相关文件: src/if_ruby.c Patch 7.4.228 问题: Compiler warnings when building with Python 3.2. 解决方案: Make type cast depend on Python version. (Ken Takata) 相关文件: src/if_py_both.h, src/if_python.c, src/if_python3.c Patch 7.4.229 问题: Using ":let" for listing variables and the second one is a curly braces expression may fail. 解决方案: Check for an "=" in a better way. (ZyX) 相关文件: src/eval.c, src/testdir/test104.in, src/testdir/test104.ok Patch 7.4.230 问题: Error when using ":options". 解决方案: Fix the entry for 'lispwords'. (Kenichi Ito) 相关文件: runtime/optwin.vim Patch 7.4.231 问题: An error in ":options" is not caught by the tests. 解决方案: Add a test for ":options". Set $VIMRUNTIME for the tests so that it uses the current runtime files instead of the installed ones. 相关文件: src/Makefile, src/testdir/Makefile, src/testdir/test_options.in, src/testdir/test_options.ok, src/testdir/Make_amiga.mak, src/testdir/Make_dos.mak, src/testdir/Make_ming.mak, src/testdir/Make_os2.mak, src/testdir/Make_vms.mms Patch 7.4.232 问题: ":%s/\n//" uses a lot of memory. (Aidan Marlin) 解决方案: Turn this into a join command. (Christian Brabandt) 相关文件: src/ex_cmds.c, src/ex_docmd.c, src/proto/ex_docmd.pro Patch 7.4.233 问题: Escaping special characters for using "%" with a shell command is inconsistent, parentheses are escaped but spaces are not. 解决方案: Only escape "!". (Gary Johnson) 相关文件: src/ex_docmd.c Patch 7.4.234 问题: Can't get the command that was used to start Vim. 解决方案: Add v:progpath. (Viktor Kojouharov) 相关文件: runtime/doc/eval.txt, src/eval.c, src/main.c, src/vim.h Patch 7.4.235 问题: It is not easy to get the full path of a command. 解决方案: Add the exepath() function. 相关文件: src/eval.c, src/misc1.c, src/os_amiga.c, src/os_msdos.c, src/os_unix.c, src/os_vms.c, src/os_win32.c, src/proto/os_amiga.pro, src/proto/os_msdos.pro, src/proto/os_unix.pro, src/proto/os_win32.pro, runtime/doc/eval.txt Patch 7.4.236 问题: It's not that easy to check the Vim patch version. 解决方案: Make has("patch-7.4.123") work. (partly by Marc Weber) 相关文件: runtime/doc/eval.txt, src/eval.c, src/testdir/test60.in, src/testdir/test60.ok Patch 7.4.237 (after 7.4.236) 问题: When some patches were not included has("patch-7.4.123") may return true falsely. 解决方案: Check for the specific patch number. 相关文件: runtime/doc/eval.txt, src/eval.c Patch 7.4.238 问题: Vim does not support the smack library. 解决方案: Add smack support (Jose Bollo) 相关文件: src/config.h.in, src/configure.in, src/fileio.c, src/memfile.c, src/os_unix.c, src/undo.c, src/auto/configure Patch 7.4.239 问题: ":e +" does not position cursor at end of the file. 解决方案: Check for "+" being the last character (ZyX) 相关文件: src/ex_docmd.c Patch 7.4.240 问题: ":tjump" shows "\n" as "\\n". 解决方案: Skip over "\" that escapes a backslash. (Gary Johnson) 相关文件: src/tag.c Patch 7.4.241 问题: The string returned by submatch() does not distinguish between a NL from a line break and a NL that stands for a NUL character. 解决方案: Add a second argument to return a list. (ZyX) 相关文件: runtime/doc/eval.txt, src/eval.c, src/proto/regexp.pro, src/regexp.c, src/testdir/test79.in, src/testdir/test79.ok, src/testdir/test80.in, src/testdir/test80.ok Patch 7.4.242 问题: getreg() does not distinguish between a NL used for a line break and a NL used for a NUL character. 解决方案: Add another argument to return a list. (ZyX) 相关文件: runtime/doc/eval.txt, src/eval.c src/ops.c, src/proto/ops.pro, src/vim.h, src/Makefile, src/testdir/test_eval.in, src/testdir/test_eval.ok, src/testdir/Make_amiga.mak, src/testdir/Make_dos.mak, src/testdir/Make_ming.mak, src/testdir/Make_os2.mak, src/testdir/Make_vms.mms Patch 7.4.243 问题: Cannot use setreg() to add text that includes a NUL. 解决方案: Make setreg() accept a list. 相关文件: runtime/doc/eval.txt, src/eval.c, src/ops.c, src/proto/ops.pro, src/testdir/test_eval.in, src/testdir/test_eval.ok Patch 7.4.244 (after 7.4.238) 问题: The smack feature causes stray error messages. 解决方案: Remove the error messages. 相关文件: src/os_unix.c Patch 7.4.245 问题: Crash for "vim -u NONE -N -c '&&'". 解决方案: Check for the pattern to be NULL. (Dominique Pelle) 相关文件: src/ex_cmds.c Patch 7.4.246 问题: Configure message for detecting smack are out of sequence. 解决方案: Put the messages in the right place. (Kazunobu Kuriyama) 相关文件: src/configure.in, src/auto/configure Patch 7.4.247 问题: When passing input to system() there is no way to keep NUL and NL characters separate. 解决方案: Optionally use a list for the system() input. (ZyX) 相关文件: runtime/doc/eval.txt, src/eval.c Patch 7.4.248 问题: Cannot distinguish between NL and NUL in output of system(). 解决方案: Add systemlist(). (ZyX) 相关文件: runtime/doc/eval.txt, src/eval.c, src/ex_cmds2.c, src/misc1.c, src/proto/misc1.pro Patch 7.4.249 问题: Using setreg() with a list of numbers does not work. 解决方案: Use a separate buffer for numbers. (ZyX) 相关文件: src/eval.c, src/testdir/test_eval.in, src/testdir/test_eval.ok Patch 7.4.250 问题: Some test files missing from distribution. 解决方案: Add pattern for newly added tests. 相关文件: Filelist Patch 7.4.251 问题: Crash when BufAdd autocommand wipes out the buffer. 解决方案: Check for buffer to still be valid. Postpone freeing the buffer structure. (Hirohito Higashi) 相关文件: src/buffer.c, src/ex_cmds.c, src/fileio.c, src/globals.h Patch 7.4.252 问题: Critical error in GTK, removing timer twice. 解决方案: Clear the timer after removing it. (James McCoy) 相关文件: src/gui_gtk_x11.c Patch 7.4.253 问题: Crash when using cpp syntax file with pattern using external match. (Havard Garnes) 解决方案: Discard match when end column is before start column. 相关文件: src/regexp.c, src/regexp_nfa.c Patch 7.4.254 问题: Smack support detection is incomplete. 解决方案: Check for attr/xattr.h and specific macro. 相关文件: src/configure.in, src/auto/configure Patch 7.4.255 问题: Configure check for smack doesn't work with all shells. (David Larson) 解决方案: Remove spaces in set command. 相关文件: src/configure.in, src/auto/configure Patch 7.4.256 (after 7.4.248) 问题: Using systemlist() may cause a crash and does not handle NUL characters properly. 解决方案: Increase the reference count, allocate memory by length. (Yasuhiro Matsumoto) 相关文件: src/eval.c Patch 7.4.257 问题: Compiler warning, possibly for mismatch in parameter name. 解决方案: Rename the parameter in the declaration. 相关文件: src/ops.c Patch 7.4.258 问题: Configure fails if $CC contains options. 解决方案: Remove quotes around $CC. (Paul Barker) 相关文件: src/configure.in, src/auto/configure Patch 7.4.259 问题: Warning for misplaced "const". 解决方案: Move the "const". (Yukihiro Nakadaira) 相关文件: src/os_unix.c Patch 7.4.260 问题: It is possible to define a function with a colon in the name. It is possible to define a function with a lower case character if a "#" appears after the name. 解决方案: Disallow using a colon other than with "s:". Ignore "#" after the name. 相关文件: runtime/doc/eval.txt, src/eval.c, src/testdir/test_eval.in, src/testdir/test_eval.ok Patch 7.4.261 问题: When updating the window involves a regexp pattern, an interactive substitute to replace a "\n" with a line break fails. (Ingo Karkat) 解决方案: Set reg_line_lbr in vim_regsub() and vim_regsub_multi(). 相关文件: src/regexp.c, src/testdir/test79.in, src/testdir/test79.ok Patch 7.4.262 问题: Duplicate code in regexec(). 解决方案: Add line_lbr flag to regexec_nl(). 相关文件: src/regexp.c, src/regexp_nfa.c, src/regexp.h Patch 7.4.263 问题: GCC 4.8 compiler warning for hiding a declaration (François Gannaz) 解决方案: Remove the second declaration. 相关文件: src/eval.c Patch 7.4.264 (after 7.4.260) 问题: Can't define a function starting with "g:". Can't assign a funcref to a buffer-local variable. 解决方案: Skip "g:" at the start of a function name. Don't check for colons when assigning to a variable. 相关文件: src/eval.c, src/testdir/test_eval.in, src/testdir/test_eval.ok Patch 7.4.265 (after 7.4.260) 问题: Can't call a global function with "g:" in an expression. 解决方案: Skip the "g:" when looking up the function. 相关文件: src/eval.c, src/testdir/test_eval.in, src/testdir/test_eval.ok Patch 7.4.266 问题: Test 62 fails. 解决方案: Set the language to C. (Christian Brabandt) 相关文件: src/testdir/test62.in Patch 7.4.267 (after 7.4.178) 问题: The '[ mark is in the wrong position after "gq". (Ingo Karkat) 解决方案: Add the setmark argument to do_join(). (Christian Brabandt) 相关文件: src/testdir/Make_amiga.mak, src/testdir/Make_dos.mak, src/testdir/Make_ming.mak, src/testdir/Make_os2.mak, src/testdir/Make_vms.mms, src/testdir/Makefile, src/testdir/test_autoformat_join.in, src/testdir/test_autoformat_join.ok, src/Makefile, src/edit.c, src/ex_cmds.c, src/ex_docmd.c, src/normal.c, src/ops.c, src/proto/ops.pro Patch 7.4.268 问题: Using exists() on a funcref for a script-local function does not work. 解决方案: Translate <SNR> to the special byte sequence. Add a test. 相关文件: src/eval.c, src/testdir/test_eval.in, src/testdir/test_eval.ok, src/testdir/test_eval_func.vim, Filelist Patch 7.4.269 问题: CTRL-U in Insert mode does not work after using a cursor key. (Pine Wu) 解决方案: Use the original insert start position. (Christian Brabandt) 相关文件: src/edit.c, src/testdir/test29.in, src/testdir/test29.ok Patch 7.4.270 问题: Comparing pointers instead of the string they point to. 解决方案: Use strcmp(). (Ken Takata) 相关文件: src/gui_gtk_x11.c Patch 7.4.271 问题: Compiler warning on 64 bit windows. 解决方案: Add type cast. (Mike Williams) 相关文件: src/ops.c Patch 7.4.272 问题: Using just "$" does not cause an error message. 解决方案: Check for empty environment variable name. (Christian Brabandt) 相关文件: src/eval.c, src/testdir/test_eval.in, src/testdir/test_eval.ok Patch 7.4.273 问题: "make autoconf" and "make reconfig" may first run configure and then remove the output. 解决方案: Add these targets to the exceptions. (Ken Takata) 相关文件: src/Makefile Patch 7.4.274 问题: When doing ":update" just before running an external command that changes the file, the timestamp may be unchanged and the file is not reloaded. 解决方案: Also check the file size. 相关文件: src/fileio.c Patch 7.4.275 问题: When changing the type of a sign that hasn't been placed there is no error message. 解决方案: Add an error message. (Christian Brabandt) 相关文件: src/ex_cmds.c Patch 7.4.276 问题: The fish shell is not supported. 解决方案: Use begin/end instead of () for fish. (Andy Russell) 相关文件: src/ex_cmds.c, src/misc1.c, src/option.c, src/proto/misc1.pro Patch 7.4.277 问题: Using ":sign unplace *" may leave the cursor in the wrong position (Christian Brabandt) 解决方案: Update the cursor position when removing all signs. 相关文件: src/buffer.c Patch 7.4.278 问题: list_remove() conflicts with function defined in Sun header file. 解决方案: Rename the function. (Richard Palo) 相关文件: src/eval.c, src/if_lua.c, src/if_py_both.h, src/proto/eval.pro Patch 7.4.279 问题: globpath() returns a string, making it difficult to get a list of matches. (Greg Novack) 解决方案: Add an optional argument like with glob(). (Adnan Zafar) 相关文件: runtime/doc/eval.txt, src/eval.c, src/ex_getln.c, src/misc1.c, src/misc2.c, src/proto/ex_getln.pro, src/proto/misc2.pro, src/testdir/test97.in, src/testdir/test97.ok Patch 7.4.280 问题: When using a session file the relative position of the cursor is not restored if there is another tab. (Nobuhiro Takasaki) 解决方案: Update w_wrow before calculating the fraction. 相关文件: src/window.c Patch 7.4.281 问题: When a session file has more than one tabpage and 'showtabline' is one the positions may be slightly off. 解决方案: Set 'showtabline' to two while positioning windows. 相关文件: src/ex_docmd.c Patch 7.4.282 (after 7.4.279) 问题: Test 97 fails on Mac. 解决方案: Do not ignore case in file names. (Jun Takimoto) 相关文件: src/testdir/test97.in Patch 7.4.283 (after 7.4.276) 问题: Compiler warning about unused variable. (Charles Cooper) 解决方案: Move the variable inside the #if block. 相关文件: src/ex_cmds.c Patch 7.4.284 问题: Setting 'langmap' in the modeline can cause trouble. E.g. mapping ":" breaks many commands. (Jens-Wolfhard Schicke-Uffmann) 解决方案: Disallow setting 'langmap' from the modeline. 相关文件: src/option.c Patch 7.4.285 问题: When 'relativenumber' is set and deleting lines or undoing that, line numbers are not always updated. (Robert Arkwright) 解决方案: (Christian Brabandt) 相关文件: src/misc1.c Patch 7.4.286 问题: Error messages are inconsistent. (ZyX) 解决方案: Change "Lists" to "list". 相关文件: src/eval.c Patch 7.4.287 问题: Patches for .hgignore don't work, since the file is not in the distribution. 解决方案: Add .hgignore to the distribution. Will be effective with the next version. 相关文件: Filelist Patch 7.4.288 问题: When 'spellfile' is set the screen is not redrawn. 解决方案: Redraw when updating the spelling info. (Christian Brabandt) 相关文件: src/spell.c Patch 7.4.289 问题: Pattern with repeated backreference does not match with new regexp engine. (Urtica Dioica) 解决方案: Also check the end of a submatch when deciding to put a state in the state list. 相关文件: src/testdir/test64.in, src/testdir/test64.ok, src/regexp_nfa.c Patch 7.4.290 问题: A non-greedy match followed by a branch is too greedy. (Ingo Karkat) 解决方案: Add NFA_MATCH when it is already in the state list if the position differs. 相关文件: src/testdir/test64.in, src/testdir/test64.ok, src/regexp_nfa.c Patch 7.4.291 问题: Compiler warning for int to pointer of different size when DEBUG is defined. 解决方案: use smsg() instead of EMSG3(). 相关文件: src/regexp.c Patch 7.4.292 问题: Searching for "a" does not match accented "a" with new regexp engine, does match with old engine. (David Bürgin) "ca" does not match "ca" with accented "a" with either engine. 解决方案: Change the old engine, check for following composing character also for single-byte patterns. 相关文件: src/regexp.c, src/testdir/test95.in, src/testdir/test95.ok Patch 7.4.293 问题: It is not possible to ignore composing characters at a specific point in a pattern. 解决方案: Add the %C item. 相关文件: src/regexp.c, src/regexp_nfa.c, src/testdir/test95.in, src/testdir/test95.ok, runtime/doc/pattern.txt Patch 7.4.294 (7.4.293) 问题: Test files missing from patch. 解决方案: Patch the test files. 相关文件: src/testdir/test95.in, src/testdir/test95.ok Patch 7.4.295 问题: Various typos, bad white space and unclear comments. 解决方案: Fix typos. Improve white space. Update comments. 相关文件: src/testdir/test49.in, src/macros.h, src/screen.c, src/structs.h, src/gui_gtk_x11.c, src/os_unix.c Patch 7.4.296 问题: Can't run tests on Solaris. 解决方案: Change the way VIMRUNTIME is set. (Laurent Blume) 相关文件: src/testdir/Makefile Patch 7.4.297 问题: Memory leak from result of get_isolated_shell_name(). 解决方案: Free the memory. (Dominique Pelle) 相关文件: src/ex_cmds.c, src/misc1.c Patch 7.4.298 问题: Can't have a funcref start with "t:". 解决方案: Add "t" to the list of accepted names. (Yukihiro Nakadaira) 相关文件: src/eval.c Patch 7.4.299 问题: When running configure twice DYNAMIC_PYTHON_DLL may become empty. 解决方案: Use AC_CACHE_VAL. (Ken Takata) 相关文件: src/configure.in, src/auto/configure Patch 7.4.300 问题: The way config.cache is removed doesn't always work. 解决方案: Always remove config.cache. (Ken Takata) 相关文件: src/Makefile Patch 7.4.301 (after 7.4.280) 问题: Still a scrolling problem when loading a session file. 解决方案: Fix off-by-one mistake. (Nobuhiro Takasaki) 相关文件: src/window.c Patch 7.4.302 问题: Signs placed with 'foldcolumn' set don't show up after filler lines. 解决方案: Take filler lines into account. (Olaf Dabrunz) 相关文件: src/screen.c Patch 7.4.303 问题: When using double-width characters the text displayed on the command line is sometimes truncated. 解决方案: Reset the string length. (Nobuhiro Takasaki) 相关文件: src/screen.c Patch 7.4.304 问题: Cannot always use Python with Vim. 解决方案: Add the manifest to the executable. (Jacques Germishuys) 相关文件: src/Make_mvc.mak Patch 7.4.305 问题: Making 'ttymouse' empty after the xterm version was requested causes problems. (Elijah Griffin) 解决方案: Do not check for DEC mouse sequences when the xterm version was requested. Also don't request the xterm version when DEC mouse was enabled. 相关文件: src/term.c, src/os_unix.c, src/proto/term.pro, src/globals.h Patch 7.4.306 问题: getchar(0) does not return Esc. 解决方案: Do not wait for an Esc sequence to be complete. (Yasuhiro Matsumoto) 相关文件: src/eval.c, src/getchar.c Patch 7.4.307 (after 7.4.305) 问题: Can't build without the +termresponse feature. 解决方案: Add proper #ifdefs. 相关文件: src/os_unix.c, src/term.c Patch 7.4.308 问题: When using ":diffsplit" on an empty file the cursor is displayed on the command line. 解决方案: Limit the value of w_topfill. 相关文件: src/diff.c Patch 7.4.309 问题: When increasing the size of the lower window, the upper window jumps back to the top. (Ron Aaron) 解决方案: Change setting the topline. (Nobuhiro Takasaki) 相关文件: src/window.c Patch 7.4.310 问题: getpos()/setpos() don't include curswant. 解决方案: Add a fifth number when getting/setting the cursor. 相关文件: src/eval.c, src/testdir/test_eval.in, src/testdir/test_eval.ok, runtime/doc/eval.txt Patch 7.4.311 问题: Can't use winrestview to only restore part of the view. 解决方案: Handle missing items in the dict. (Christian Brabandt) 相关文件: src/eval.c, runtime/doc/eval.txt Patch 7.4.312 问题: Cannot figure out what argument list is being used for a window. 解决方案: Add the arglistid() function. (Marcin Szamotulski) 相关文件: runtime/doc/eval.txt, runtime/doc/usr_41.txt, src/eval.c, src/ex_docmd.c, src/globals.h, src/structs.h, src/main.c Patch 7.4.313 (after 7.4.310) 问题: Changing the return value of getpos() causes an error. (Jie Zhu) 解决方案: Revert getpos() and add getcurpos(). 相关文件: src/eval.c, src/testdir/test_eval.in, src/testdir/test_eval.ok, runtime/doc/eval.txt Patch 7.4.314 问题: Completion messages can get in the way of a plugin. 解决方案: Add 'c' flag to 'shortmess' option. (Shougo Matsu) 相关文件: runtime/doc/options.txt, src/edit.c, src/option.h, src/screen.c Patch 7.4.315 (after 7.4.309) 问题: Fixes for computation of topline not tested. 解决方案: Add test. (Hirohito Higashi) 相关文件: src/testdir/Make_amiga.mak, src/testdir/Make_dos.mak, src/testdir/Make_ming.mak, src/testdir/Make_os2.mak, src/testdir/Make_vms.mms, src/testdir/Makefile, src/testdir/test107.in, src/testdir/test107.ok Patch 7.4.316 问题: Warning from 64-bit compiler. 解决方案: Add type cast. (Mike Williams) 相关文件: src/ex_getln.c Patch 7.4.317 问题: Crash when starting gvim. Issue 230. 解决方案: Check for a pointer to be NULL. (Christian Brabandt) 相关文件: src/window.c Patch 7.4.318 问题: Check for whether a highlight group has settings ignores fg and bg color settings. 解决方案: Also check cterm and GUI color settings. (Christian Brabandt) 相关文件: src/syntax.c Patch 7.4.319 问题: Crash when putting zero bytes on the clipboard. 解决方案: Do not support the utf8_atom target when not using a Unicode encoding. (Naofumi Honda) 相关文件: src/ui.c Patch 7.4.320 问题: Possible crash when an BufLeave autocommand deletes the buffer. 解决方案: Check for the window pointer being valid. Postpone freeing the window until autocommands are done. (Yasuhiro Matsumoto) 相关文件: src/buffer.c, src/fileio.c, src/globals.h, src/window.c Patch 7.4.321 问题: Can't build with strawberry perl 5.20 + mingw-w64-4.9.0. 解决方案: Define save_strlen. (Ken Takata) 相关文件: src/if_perl.xs Patch 7.4.322 问题: Using "msgfmt" is hard coded, cannot use "gmsgfmt". 解决方案: Use the msgfmt command found by configure. (Danek Duvall) 相关文件: src/config.mk.in, src/po/Makefile Patch 7.4.323 问题: Substitute() with zero width pattern breaks multi-byte character. 解决方案: Take multi-byte character size into account. (Yukihiro Nakadaira) 相关文件: src/eval.c src/testdir/test69.in, src/testdir/test69.ok Patch 7.4.324 问题: In Ex mode, cyrillic characters are not handled. (Stas Malavin) 解决方案: Support multi-byte characters in Ex mode. (Yukihiro Nakadaira) 相关文件: src/ex_getln.c Patch 7.4.325 问题: When starting the gui and changing the window size the status line may not be drawn correctly. 解决方案: Catch new_win_height() being called recursively. (Christian Brabandt) 相关文件: src/window.c Patch 7.4.326 问题: Can't build Tiny version. (Elimar Riesebieter) 解决方案: Add #ifdef. 相关文件: src/window.c Patch 7.4.327 问题: When 'verbose' is set to display the return value of a function, may get E724 repeatedly. 解决方案: Do not give an error for verbose messages. Abort conversion to string after an error. 相关文件: src/eval.c Patch 7.4.328 问题: Selection of inner block is inconsistent. 解决方案: Skip indent not only for '}' but all parens. (Tom McDonald) 相关文件: src/search.c Patch 7.4.329 问题: When moving the cursor and then switching to another window the previous window isn't scrolled. (Yukihiro Nakadaira) 解决方案: Call update_topline() before leaving the window. (Christian Brabandt) 相关文件: src/window.c Patch 7.4.330 问题: Using a regexp pattern to highlight a specific position can be slow. 解决方案: Add matchaddpos() to highlight specific positions efficiently. (Alexey Radkov) 相关文件: runtime/doc/eval.txt, runtime/doc/usr_41.txt, runtime/plugin/matchparen.vim, src/eval.c, src/ex_docmd.c, src/proto/window.pro, src/screen.c, src/structs.h, src/testdir/test63.in, src/testdir/test63.ok, src/window.c Patch 7.4.331 问题: Relative numbering not updated after a linewise yank. Issue 235. 解决方案: Redraw after the yank. (Christian Brabandt) 相关文件: src/ops.c Patch 7.4.332 问题: GTK: When a sign icon doesn't fit exactly there can be ugly gaps. 解决方案: Scale the sign to fit when the aspect ratio is not too far off. (Christian Brabandt) 相关文件: src/gui_gtk_x11.c Patch 7.4.333 问题: Compiler warning for unused function. 解决方案: Put the function inside the #ifdef. 相关文件: src/screen.c Patch 7.4.334 (after 7.4.330) 问题: Uninitialized variables, causing some problems. 解决方案: Initialize the variables. (Dominique Pelle) 相关文件: src/screen.c, src/window.c Patch 7.4.335 问题: No digraph for the new rouble sign. 解决方案: Add the digraphs =R and =P. 相关文件: src/digraph.c, runtime/doc/digraph.txt Patch 7.4.336 问题: Setting 'history' to a big value causes out-of-memory errors. 解决方案: Limit the value to 10000. (Hirohito Higashi) 相关文件: runtime/doc/options.txt, src/option.c Patch 7.4.337 问题: When there is an error preparing to edit the command line, the command won't be executed. (Hirohito Higashi) 解决方案: Reset did_emsg before editing. 相关文件: src/ex_getln.c Patch 7.4.338 问题: Cannot wrap lines taking indent into account. 解决方案: Add the 'breakindent' option. (many authors, final improvements by Christian Brabandt) 相关文件: runtime/doc/eval.txt, runtime/doc/options.txt, runtime/optwin.vim, src/buffer.c, src/charset.c, src/edit.c, src/ex_getln.c, src/getchar.c, src/misc1.c, src/misc2.c, src/ops.c, src/option.c, src/option.h, src/proto/charset.pro, src/proto/misc1.pro, src/proto/option.pro, src/screen.c, src/structs.h, src/testdir/Make_amiga.mak, src/testdir/Make_dos.mak, src/testdir/Make_ming.mak, src/testdir/Make_os2.mak, src/testdir/Make_vms.mms, src/testdir/Makefile, src/testdir/test_breakindent.in, src/testdir/test_breakindent.ok, src/ui.c, src/version.c Patch 7.4.339 问题: Local function is available globally. 解决方案: Add "static". 相关文件: src/option.c, src/proto/option.pro Patch 7.4.340 问题: Error from sed about illegal bytes when installing Vim. 解决方案: Prepend LC_ALL=C. (Itchyny) 相关文件: src/installman.sh Patch 7.4.341 问题: sort() doesn't handle numbers well. 解决方案: Add an argument to specify sorting on numbers. (Christian Brabandt) 相关文件: runtime/doc/eval.txt, src/eval.c, src/testdir/test55.in, src/testdir/test55.ok Patch 7.4.342 问题: Clang gives warnings. 解决方案: Add an else block. (Dominique Pelle) 相关文件: src/gui_beval.c Patch 7.4.343 问题: matchdelete() does not always update the right lines. 解决方案: Fix off-by-one error. (Ozaki Kiichi) 相关文件: src/window.c Patch 7.4.344 问题: Unnecessary initializations and other things related to matchaddpos(). 解决方案: Code cleanup. (Alexey Radkov) 相关文件: runtime/doc/eval.txt, src/screen.c, src/window.c Patch 7.4.345 (after 7.4.338) 问题: Indent is not updated when deleting indent. 解决方案: Remember changedtick. 相关文件: src/misc1.c Patch 7.4.346 (after 7.4.338) 问题: Indent is not updated when changing 'breakindentopt'. (itchyny) 解决方案: Do not cache "brishift". (Christian Brabandt) 相关文件: src/misc1.c Patch 7.4.347 问题: test55 fails on some systems. 解决方案: Remove the elements that all result in zero and can end up in an arbitrary position. 相关文件: src/testdir/test55.in, src/testdir/test55.ok Patch 7.4.348 问题: When using "J1" in 'cinoptions' a line below a continuation line gets too much indent. 解决方案: Fix parentheses in condition. 相关文件: src/misc1.c Patch 7.4.349 问题: When there are matches to highlight the whole window is redrawn, which is slow. 解决方案: Only redraw everything when lines were inserted or deleted. Reset b_mod_xlines when needed. (Alexey Radkov) 相关文件: src/screen.c, src/window.c Patch 7.4.350 问题: Using C indenting for Javascript does not work well for a {} block inside parentheses. 解决方案: When looking for a matching paren ignore one that is before the start of a {} block. 相关文件: src/misc1.c, src/testdir/test3.in, src/testdir/test3.ok Patch 7.4.351 问题: sort() is not stable. 解决方案: When the items are identical, compare the pointers. 相关文件: src/eval.c, src/testdir/test55.in, src/testdir/test55.ok Patch 7.4.352 问题: With 'linebreak' a tab causes a missing line break. 解决方案: Count a tab for what it's worth also for shorter lines. (Christian Brabandt) 相关文件: src/charset.c Patch 7.4.353 问题: 'linebreak' doesn't work with the 'list' option. 解决方案: Make it work. (Christian Brabandt) 相关文件: runtime/doc/options.txt, src/charset.c, src/screen.c, src/testdir/Make_amiga.mak, src/testdir/Make_dos.mak, src/testdir/Make_ming.mak, src/testdir/Make_os2.mak, src/testdir/Make_vms.mms, src/testdir/Makefile, src/testdir/test_listlbr.in, src/testdir/test_listlbr.ok Patch 7.4.354 问题: Compiler warning. 解决方案: Change NUL to NULL. (Ken Takata) 相关文件: src/screen.c Patch 7.4.355 问题: Several problems with Javascript indenting. 解决方案: Improve Javascript indenting. 相关文件: src/misc1.c, src/testdir/test3.in, src/testdir/test3.ok Patch 7.4.356 问题: Mercurial does not ignore memfile_test. (Daniel Hahler) 解决方案: Add memfile_test to ignored files, remove trailing spaces. 相关文件: .hgignore Patch 7.4.357 问题: After completion some characters are not redrawn. 解决方案: Clear the command line unconditionally. (Jacob Niehus) 相关文件: src/edit.c Patch 7.4.358 (after 7.4.351) 问题: Sort is not always stable. 解决方案: Add an index instead of relying on the pointer to remain the same. Idea by Jun Takimoto. 相关文件: src/eval.c Patch 7.4.359 问题: When 'ttymouse' is set to 'uxterm' the xterm version is not requested. (Tomas Janousek) 解决方案: Do not mark uxterm as a conflict mouse and add resume_get_esc_sequence(). 相关文件: src/term.c, src/os_unix.c, src/proto/term.pro Patch 7.4.360 问题: In a regexp pattern a "$" followed by \v or \V is not seen as the end-of-line. 解决方案: Handle the situation. (Ozaki Kiichi) 相关文件: src/regexp.c Patch 7.4.361 问题: Lots of flickering when filling the preview window for 'omnifunc'. 解决方案: Disable redrawing. (Hirohito Higashi) 相关文件: src/popupmnu.c Patch 7.4.362 问题: When matchaddpos() uses a length smaller than the number of bytes in the (last) character the highlight continues until the end of the line. 解决方案: Change condition from equal to larger-or-equal. 相关文件: src/screen.c Patch 7.4.363 问题: In Windows console typing 0xCE does not work. 解决方案: Convert 0xCE to K_NUL 3. (Nobuhiro Takasaki et al.) 相关文件: src/os_win32.c, src/term.c Patch 7.4.364 问题: When the viminfo file can't be renamed there is no error message. (Vladimir Berezhnoy) 解决方案: Check for the rename to fail. 相关文件: src/ex_cmds.c Patch 7.4.365 问题: Crash when using ":botright split" when there isn't much space. 解决方案: Add a check for the minimum width/height. (Yukihiro Nakadaira) 相关文件: src/window.c Patch 7.4.366 问题: Can't run the linebreak test on MS-Windows. 解决方案: Fix the output file name. (Taro Muraoka) 相关文件: src/testdir/Make_dos.mak Patch 7.4.367 (after 7.4.357) 问题: Other solution for redrawing after completion. 解决方案: Schedule a window redraw instead of just clearing the command line. (Jacob Niehus) 相关文件: src/edit.c Patch 7.4.368 问题: Restoring the window sizes after closing the command line window doesn't work properly if there are nested splits. 解决方案: Restore the sizes twice. (Hirohito Higashi) 相关文件: src/window.c Patch 7.4.369 问题: Using freed memory when exiting while compiled with EXITFREE. 解决方案: Set curwin to NULL and check for that. (Dominique Pelle) 相关文件: src/buffer.c, src/window.c Patch 7.4.370 问题: Linebreak test fails when encoding is not utf-8. (Danek Duvall) 解决方案: Split the test in a single byte one and a utf-8 one. (Christian Brabandt) 相关文件: src/testdir/Make_amiga.mak, src/testdir/Make_dos.mak, src/testdir/Make_ming.mak, src/testdir/Make_os2.mak, src/testdir/Make_vms.mms, src/testdir/Makefile, src/testdir/test_listlbr.in, src/testdir/test_listlbr.ok, src/testdir/test_listlbr_utf8.in, src/testdir/test_listlbr_utf8.ok Patch 7.4.371 问题: When 'linebreak' is set control characters are not correctly displayed. (Kimmy Lindvall) 解决方案: Set n_extra. (Christian Brabandt) 相关文件: src/screen.c Patch 7.4.372 问题: When 'winminheight' is zero there might not be one line for the current window. 解决方案: Change the size computations. (Yukihiro Nakadaira) 相关文件: src/window.c Patch 7.4.373 问题: Compiler warning for unused argument and unused variable. 解决方案: Add UNUSED. Move variable inside #ifdef. 相关文件: src/charset.c, src/window.c Patch 7.4.374 问题: Character after "fb" command not mapped if it might be a composing character. 解决方案: Don't disable mapping when looking for a composing character. (Jacob Niehus) 相关文件: src/normal.c Patch 7.4.375 问题: Test 63 fails when run with GUI-only Vim. 解决方案: Add guibg attributes. (suggested by Mike Soyka) 相关文件: src/testdir/test63.in Patch 7.4.376 (after 7.4.367) 问题: Popup menu flickers too much. 解决方案: Remove the forced redraw. (Hirohito Higashi) 相关文件: src/edit.c Patch 7.4.377 问题: When 'equalalways' is set a split may report "no room" even though there is plenty of room. 解决方案: Compute the available room properly. (Yukihiro Nakadaira) 相关文件: src/window.c Patch 7.4.378 问题: Title of quickfix list is not kept for setqflist(list, 'r'). 解决方案: Keep the title. Add a test. (Lcd) 相关文件: src/quickfix.c, src/testdir/Make_amiga.mak, src/testdir/Make_dos.mak, src/testdir/Make_ming.mak, src/testdir/Make_os2.mak, src/testdir/Make_vms.mms, src/testdir/Makefile, src/testdir/test_qf_title.in, src/testdir/test_qf_title.ok Patch 7.4.379 问题: Accessing freed memory after using setqflist(list, 'r'). (Lcd) 解决方案: Reset qf_index. 相关文件: src/quickfix.c Patch 7.4.380 问题: Loading python may cause Vim to exit. 解决方案: Avoid loading the "site" module. (Taro Muraoka) 相关文件: src/if_python.c Patch 7.4.381 问题: Get u_undo error when backspacing in Insert mode deletes more than one line break. (Ayberk Ozgur) 解决方案: Also decrement Insstart.lnum. 相关文件: src/edit.c Patch 7.4.382 问题: Mapping characters may not work after typing Esc in Insert mode. 解决方案: Fix the noremap flags for inserted characters. (Jacob Niehus) 相关文件: src/getchar.c Patch 7.4.383 问题: Bad interaction between preview window and omnifunc. 解决方案: Avoid redrawing the status line. (Hirohito Higashi) 相关文件: src/popupmnu.c Patch 7.4.384 问题: Test 102 fails when compiled with small features. 解决方案: Source small.vim. (Jacob Niehus) 相关文件: src/testdir/test102.in Patch 7.4.385 问题: When building with tiny or small features building the .mo files fails. 解决方案: In autoconf do not setup for building the .mo files when it would fail. 相关文件: src/configure.in, src/auto/configure Patch 7.4.386 问题: When splitting a window the changelist position is wrong. 解决方案: Copy the changelist position. (Jacob Niehus) 相关文件: src/window.c, src/testdir/Make_amiga.mak, src/testdir/Make_dos.mak, src/testdir/Make_ming.mak, src/testdir/Make_os2.mak, src/testdir/Make_vms.mms, src/testdir/Makefile, src/testdir/test_changelist.in, src/testdir/test_changelist.ok Patch 7.4.387 问题: "4gro" replaces one character then executes "ooo". (Urtica Dioica) 解决方案: Write the ESC in the second stuff buffer. 相关文件: src/getchar.c, src/proto/getchar.pro, src/edit.c, src/testdir/Make_amiga.mak, src/testdir/Make_dos.mak, src/testdir/Make_ming.mak, src/testdir/Make_os2.mak, src/testdir/Make_vms.mms, src/testdir/Makefile, src/testdir/test_insertcount.in, src/testdir/test_insertcount.ok Patch 7.4.388 问题: With 'linebreak' set and 'list' unset a Tab is not counted properly. (Kent Sibilev) 解决方案: Check the 'list' option. (Christian Brabandt) 相关文件: src/screen.c, src/testdir/test_listlbr_utf8.in, src/testdir/test_listlbr_utf8.ok Patch 7.4.389 问题: Still sometimes Vim enters Replace mode when starting up. 解决方案: Use a different solution in detecting the termresponse and location response. (Hayaki Saito) 相关文件: src/globals.h, src/os_unix.c, src/term.c, src/proto/term.pro Patch 7.4.390 问题: Advancing pointer over end of a string. 解决方案: Init quote character to -1 instead of zero. (Dominique Pelle) 相关文件: src/misc1.c Patch 7.4.391 问题: No 'cursorline' highlighting when the cursor is on a line with diff highlighting. (Benjamin Fritz) 解决方案: Combine the highlight attributes. (Christian Brabandt) 相关文件: src/screen.c Patch 7.4.392 问题: Not easy to detect type of command line window. 解决方案: Add the getcmdwintype() function. (Jacob Niehus) 相关文件: src/eval.c Patch 7.4.393 问题: Text drawing on newer MS-Windows systems is suboptimal. Some multi-byte characters are not displayed, even though the same font in Notepad can display them. (Srinath Avadhanula) 解决方案: Add the 'renderoptions' option to enable DirectX drawing. (Taro Muraoka) 相关文件: runtime/doc/eval.txt, runtime/doc/options.txt, runtime/doc/various.txt, src/Make_cyg.mak, src/Make_ming.mak, src/Make_mvc.mak, src/eval.c, src/gui_dwrite.cpp, src/gui_dwrite.h, src/gui_w32.c, src/gui_w48.c, src/option.c, src/option.h, src/version.c, src/vim.h, src/proto/gui_w32.pro Patch 7.4.394 (after 7.4.393) 问题: When using DirectX last italic character is incomplete. 解决方案: Add one to the number of cells. (Ken Takata) 相关文件: src/gui_w32.c Patch 7.4.395 (after 7.4.355) 问题: C indent is wrong below an if with wrapped condition followed by curly braces. (Trevor Powell) 解决方案: Make a copy of tryposBrace. 相关文件: src/misc1.c, src/testdir/test3.in, src/testdir/test3.ok Patch 7.4.396 问题: When 'clipboard' is "unnamed", :g/pat/d is very slow. (Praful) 解决方案: Only set the clipboard after the last delete. (Christian Brabandt) 相关文件: src/ex_cmds.c, src/ex_cmds2.c, src/ex_docmd.c, src/globals.h, src/ops.c, src/proto/ui.pro, src/ui.c Patch 7.4.397 问题: Matchparen only uses the topmost syntax item. 解决方案: Go through the syntax stack to find items. (James McCoy) Also use getcurpos() when possible. 相关文件: runtime/plugin/matchparen.vim Patch 7.4.398 (after 7.4.393) 问题: Gcc error for the argument of InterlockedIncrement() and InterlockedDecrement(). (Axel Bender) 解决方案: Remove "unsigned" from the cRefCount_ declaration. 相关文件: src/gui_dwrite.cpp Patch 7.4.399 问题: Encryption implementation is messy. Blowfish encryption has a weakness. 解决方案: Refactor the encryption, store the state in an allocated struct instead of using a save/restore mechanism. Introduce the "blowfish2" method, which does not have the weakness and encrypts the whole undo file. (largely by David Leadbeater) 相关文件: runtime/doc/editing.txt, runtime/doc/options.txt, src/Makefile, src/blowfish.c, src/crypt.c, src/crypt_zip.c, src/ex_docmd.c, src/fileio.c, src/globals.h, src/main.c, src/memline.c, src/misc2.c, src/option.c, src/proto.h, src/proto/blowfish.pro, src/proto/crypt.pro, src/proto/crypt_zip.pro, src/proto/fileio.pro, src/proto/misc2.pro, src/structs.h, src/undo.c, src/testdir/test71.in, src/testdir/test71.ok, src/testdir/test71a.in, src/testdir/test72.in, src/testdir/test72.ok Patch 7.4.400 问题: List of distributed files is incomplete. 解决方案: Add recently added files. 相关文件: Filelist Patch 7.4.401 (after 7.4.399) 问题: Can't build on MS-Windows. 解决方案: Include the new files in all the Makefiles. 相关文件: src/Make_bc3.mak, src/Make_bc5.mak, src/Make_cyg.mak, src/Make_dice.mak, src/Make_djg.mak, src/Make_ivc.mak, src/Make_manx.mak, src/Make_ming.mak, src/Make_morph.mak, src/Make_mvc.mak, src/Make_os2.mak, src/Make_sas.mak, Make_vms.mms Patch 7.4.402 问题: Test 72 crashes under certain conditions. (Kazunobu Kuriyama) 解决方案: Clear the whole bufinfo_T early. 相关文件: src/undo.c Patch 7.4.403 问题: Valgrind reports errors when running test 72. (Dominique Pelle) 解决方案: Reset the local 'cryptmethod' option before storing the seed. Set the seed in the memfile even when there is no block0 yet. 相关文件: src/fileio.c, src/option.c, src/memline.c Patch 7.4.404 问题: Windows 64 bit compiler warnings. 解决方案: Add type casts. (Mike Williams) 相关文件: src/crypt.c, src/undo.c Patch 7.4.405 问题: Screen updating is slow when using matches. 解决方案: Do not use the ">=" as in patch 7.4.362, check the lnum. 相关文件: src/screen.c, src/testdir/test63.in, src/testdir/test63.ok Patch 7.4.406 问题: Test 72 and 100 fail on MS-Windows. 解决方案: Set fileformat to unix in the tests. (Taro Muraoka) 相关文件: src/testdir/test72.in, src/testdir/test100.in Patch 7.4.407 问题: Inserting text for Visual block mode, with cursor movement, repeats the wrong text. (Aleksandar Ivanov) 解决方案: Reset the update_Insstart_orig flag. (Christian Brabandt) 相关文件: src/edit.c, src/testdir/test39.in, src/testdir/test39.ok Patch 7.4.408 问题: Visual block insert breaks a multi-byte character. 解决方案: Calculate the position properly. (Yasuhiro Matsumoto) 相关文件: src/ops.c, src/testdir/test_utf8.in, src/testdir/test_utf8.ok, src/testdir/Make_amiga.mak, src/testdir/Make_dos.mak, src/testdir/Make_ming.mak, src/testdir/Make_os2.mak, src/testdir/Make_vms.mms, src/testdir/Makefile Patch 7.4.409 问题: Can't build with Perl on Fedora 20. 解决方案: Find xsubpp in another directory. (Michael Henry) 相关文件: src/Makefile, src/config.mk.in, src/configure.in, src/auto/configure Patch 7.4.410 问题: Fold does not open after search when there is a CmdwinLeave autocommand. 解决方案: Restore KeyTyped. (Jacob Niehus) 相关文件: src/ex_getln.c Patch 7.4.411 问题: "foo bar" sorts before "foo" with sort(). (John Little) 解决方案: Avoid putting quotes around strings before comparing them. 相关文件: src/eval.c Patch 7.4.412 问题: Can't build on Windows XP with MSVC. 解决方案: Add SUBSYSTEM_VER to the Makefile. (Yongwei Wu) 相关文件: src/Make_mvc.mak, src/INSTALLpc.txt Patch 7.4.413 问题: MS-Windows: Using US international keyboard layout, inserting dead key by pressing space does not always work. Issue 250. 解决方案: Let MS-Windows translate the message. (John Wellesz) 相关文件: src/gui_w48.c Patch 7.4.414 问题: Cannot define a command only when it's used. 解决方案: Add the CmdUndefined autocommand event. (partly by Yasuhiro Matsumoto) 相关文件: runtime/doc/autocmd.txt, src/ex_docmd.c, src/fileio.c, src/proto/fileio.pro Patch 7.4.415 (after 7.4.414) 问题: Cannot build. Warning for shadowed variable. (John Little) 解决方案: Add missing change. Remove declaration. 相关文件: src/vim.h, src/ex_docmd.c Patch 7.4.416 问题: Problem with breakindent/showbreak and tabs. 解决方案: Handle tabs differently. (Christian Brabandt) 相关文件: src/testdir/test_breakindent.in, src/testdir/test_breakindent.ok, src/charset.c Patch 7.4.417 问题: After splitting a window and setting 'breakindent' the default minimum with is not respected. 解决方案: Call briopt_check() when copying options to a new window. 相关文件: src/option.c, src/proto/option.pro, src/testdir/test_breakindent.in Patch 7.4.418 问题: When leaving ":append" the cursor shape is like in Insert mode. (Jacob Niehus) 解决方案: Do not have State set to INSERT when calling getline(). 相关文件: src/ex_cmds.c Patch 7.4.419 问题: When part of a list is locked it's possible to make changes. 解决方案: Check if any of the list items is locked before make a change. (ZyX) 相关文件: src/eval.c, src/testdir/test55.in, src/testdir/test55.ok Patch 7.4.420 问题: It's not obvious how to add a new test. 解决方案: Add a README file. (Christian Brabandt) 相关文件: src/testdir/README.txt Patch 7.4.421 问题: Crash when searching for "\ze*". (Urtica Dioica) 解决方案: Disallow a multi after \ze and \zs. 相关文件: src/regexp_nfa.c, src/testdir/test64.in, src/testdir/test64.ok Patch 7.4.422 问题: When using conceal with linebreak some text is not displayed correctly. (Grüner Gimpel) 解决方案: Check for conceal mode when using linebreak. (Christian Brabandt) 相关文件: src/screen.c, src/testdir/test_listlbr.in, src/testdir/test_listlbr.ok Patch 7.4.423 问题: expand("$shell") does not work as documented. 解决方案: Do not escape the $ when expanding environment variables. 相关文件: src/os_unix.c, src/misc1.c, src/vim.h Patch 7.4.424 问题: Get ml_get error when using Python to delete lines in a buffer that is not in a window. issue 248. 解决方案: Do not try adjusting the cursor for a different buffer. 相关文件: src/if_py_both.h Patch 7.4.425 问题: When 'showbreak' is used "gj" may move to the wrong position. (Nazri Ramliy) 解决方案: Adjust virtcol when 'showbreak' is set. (Christian Brabandt) 相关文件: src/normal.c Patch 7.4.426 问题: README File missing from list of files. 解决方案: Update the list of files. 相关文件: Filelist Patch 7.4.427 问题: When an InsertCharPre autocommand executes system() typeahead may be echoed and messes up the display. (Jacob Niehus) 解决方案: Do not set cooked mode when invoked from ":silent". 相关文件: src/eval.c, runtime/doc/eval.txt Patch 7.4.428 问题: executable() may return a wrong result on MS-Windows. 解决方案: Change the way SearchPath() is called. (Yasuhiro Matsumoto, Ken Takata) 相关文件: src/os_win32.c Patch 7.4.429 问题: Build fails with fewer features. (Elimar Riesebieter) 解决方案: Add #ifdef. 相关文件: src/normal.c Patch 7.4.430 问题: test_listlbr fails when compiled with normal features. 解决方案: Check for the +conceal feature. 相关文件: src/testdir/test_listlbr.in Patch 7.4.431 问题: Compiler warning. 解决方案: Add type cast. (Mike Williams) 相关文件: src/ex_docmd.c Patch 7.4.432 问题: When the startup code expands command line arguments, setting 'encoding' will not properly convert the arguments. 解决方案: Call get_cmd_argsW() early in main(). (Yasuhiro Matsumoto) 相关文件: src/os_win32.c, src/main.c, src/os_mswin.c Patch 7.4.433 问题: Test 75 fails on MS-Windows. 解决方案: Use ":normal" instead of feedkeys(). (Michael Soyka) 相关文件: src/testdir/test75.in Patch 7.4.434 问题: gettabvar() is not consistent with getwinvar() and getbufvar(). 解决方案: Return a dict with all variables when the varname is empty. (Yasuhiro Matsumoto) 相关文件: src/eval.c, runtime/doc/eval.txt, src/testdir/test91.in, src/testdir/test91.ok Patch 7.4.435 问题: Line formatting behaves differently when 'linebreak' is set. (mvxxc) 解决方案: Disable 'linebreak' temporarily. (Christian Brabandt) 相关文件: src/edit.c Patch 7.4.436 问题: ml_get error for autocommand that moves the cursor of the current window. 解决方案: Check the cursor position after switching back to the current buffer. (Christian Brabandt) 相关文件: src/fileio.c Patch 7.4.437 问题: New and old regexp engine are not consistent. 解决方案: Also give an error for "\ze*" for the old regexp engine. 相关文件: src/regexp.c, src/regexp_nfa.c Patch 7.4.438 问题: Cached values for 'cino' not reset for ":set all&". 解决方案: Call parse_cino(). (Yukihiro Nakadaira) 相关文件: src/option.c Patch 7.4.439 问题: Duplicate message in message history. Some quickfix messages appear twice. (Gary Johnson) 解决方案: Do not reset keep_msg too early. (Hirohito Higashi) 相关文件: src/main.c Patch 7.4.440 问题: Omni complete popup drawn incorrectly. 解决方案: Call validate_cursor() instead of check_cursor(). (Hirohito Higashi) 相关文件: src/edit.c Patch 7.4.441 问题: Endless loop and other problems when 'cedit' is set to CTRL-C. 解决方案: Do not call ex_window() when ex_normal_busy or got_int was set. (Yasuhiro Matsumoto) 相关文件: src/ex_getln.c Patch 7.4.442 (after 7.4.434) 问题: Using uninitialized variable. 解决方案: Pass the first window of the tabpage. 相关文件: src/eval.c Patch 7.4.443 问题: Error reported by ubsan when running test 72. 解决方案: Add type cast to unsigned. (Dominique Pelle) 相关文件: src/undo.c Patch 7.4.444 问题: Reversed question mark not recognized as punctuation. (Issue 258) 解决方案: Add the Supplemental Punctuation range. 相关文件: src/mbyte.c Patch 7.4.445 问题: Clipboard may be cleared on startup. 解决方案: Set clip_did_set_selection to -1 during startup. (Christian Brabandt) 相关文件: src/main.c, src/ui.c Patch 7.4.446 问题: In some situations, when setting up an environment to trigger an autocommand, the environment is not properly restored. 解决方案: Check the return value of switch_win() and call restore_win() always. (Daniel Hahler) 相关文件: src/eval.c, src/misc2.c, src/window.c Patch 7.4.447 问题: Spell files from Hunspell may generate a lot of errors. 解决方案: Add the IGNOREEXTRA flag. 相关文件: src/spell.c, runtime/doc/spell.txt Patch 7.4.448 问题: Using ETO_IGNORELANGUAGE causes problems. 解决方案: Remove this flag. (Paul Moore) 相关文件: src/gui_w32.c Patch 7.4.449 问题: Can't easily close the help window. (Chris Gaal) 解决方案: Add ":helpclose". (Christian Brabandt) 相关文件: runtime/doc/helphelp.txt, runtime/doc/index.txt, src/ex_cmds.c, src/ex_cmds.h, src/proto/ex_cmds.pro Patch 7.4.450 问题: Not all commands that edit another buffer support the +cmd argument. 解决方案: Add the +cmd argument to relevant commands. (Marcin Szamotulski) 相关文件: runtime/doc/windows.txt, src/ex_cmds.h, src/ex_docmd.c Patch 7.4.451 问题: Calling system() with empty input gives an error for writing the temp file. 解决方案: Do not try writing if the string length is zero. (Olaf Dabrunz) 相关文件: src/eval.c Patch 7.4.452 问题: Can't build with tiny features. (Tony Mechelynck) 解决方案: Use "return" instead of "break". 相关文件: src/ex_cmds.c Patch 7.4.453 问题: Still can't build with tiny features. 解决方案: Add #ifdef. 相关文件: src/ex_cmds.c Patch 7.4.454 问题: When using a Visual selection of multiple words and doing CTRL-W_] it jumps to the tag matching the word under the cursor, not the selected text. (Patrick hemmer) 解决方案: Do not reset Visual mode. (idea by Christian Brabandt) 相关文件: src/window.c Patch 7.4.455 问题: Completion for :buf does not use 'wildignorecase'. (Akshay H) 解决方案: Pass the 'wildignorecase' flag around. 相关文件: src/buffer.c Patch 7.4.456 问题: 'backupcopy' is global, cannot write only some files in a different way. 解决方案: Make 'backupcopy' global-local. (Christian Brabandt) 相关文件: runtime/doc/options.txt, src/buffer.c, src/fileio.c, src/option.c, src/option.h, src/proto/option.pro, src/structs.h Patch 7.4.457 问题: Using getchar() in an expression mapping may result in K_CURSORHOLD, which can't be recognized. 解决方案: Add the <CursorHold> key. (Hirohito Higashi) 相关文件: src/misc2.c Patch 7.4.458 问题: Issue 252: Cursor moves in a zero-height window. 解决方案: Check for zero height. (idea by Christian Brabandt) 相关文件: src/move.c Patch 7.4.459 问题: Can't change the icon after building Vim. 解决方案: Load the icon from a file on startup. (Yasuhiro Matsumoto) 相关文件: src/gui_w32.c, src/os_mswin.c, src/os_win32.c, src/proto/os_mswin.pro Patch 7.4.460 (after 7.4.454) 问题: Can't build without the quickfix feature. (Erik Falor) 解决方案: Add a #ifdef. 相关文件: src/window.c Patch 7.4.461 问题: MS-Windows: When collate is on the number of copies is too high. 解决方案: Only set the collated/uncollated count when collate is on. (Yasuhiro Matsumoto) 相关文件: src/os_mswin.c Patch 7.4.462 问题: Setting the local value of 'backupcopy' empty gives an error. (Peter Mattern) 解决方案: When using an empty value set the flags to zero. (Hirohito Higashi) 相关文件: src/option.c Patch 7.4.463 问题: Test 86 and 87 may hang on MS-Windows. 解决方案: Call inputrestore() after inputsave(). (Ken Takata) 相关文件: src/testdir/test86.in, src/testdir/test87.in Patch 7.4.464 (after 7.4.459) 问题: Compiler warning. 解决方案: Add type cast. (Ken Takata) 相关文件: src/gui_w32.c Patch 7.4.465 (after 7.4.016) 问题: Crash when expanding a very long string. 解决方案: Use wcsncpy() instead of wcscpy(). (Ken Takata) 相关文件: src/os_win32.c Patch 7.4.466 (after 7.4.460) 问题: CTRL-W } does not open preview window. (Erik Falor) 解决方案: Don't set g_do_tagpreview for CTRL-W }. 相关文件: src/window.c Patch 7.4.467 问题: 'linebreak' does not work well together with Visual mode. 解决方案: Disable 'linebreak' while applying an operator. Fix the test. (Christian Brabandt) 相关文件: src/normal.c, src/screen.c, src/testdir/test_listlbr.in, src/testdir/test_listlbr.ok Patch 7.4.468 问题: Issue 26: CTRL-C does not interrupt after it was mapped and then unmapped. 解决方案: Reset mapped_ctrl_c. (Christian Brabandt) 相关文件: src/getchar.c Patch 7.4.469 (after 7.4.467) 问题: Can't build with MSVC. (Ken Takata) 解决方案: Move the assignment after the declarations. 相关文件: src/normal.c Patch 7.4.470 问题: Test 11 and 100 do not work properly on Windows. 解决方案: Avoid using feedkeys(). (Ken Takata) 相关文件: src/testdir/Make_dos.mak, src/testdir/test11.in, src/testdir/test100.in Patch 7.4.471 问题: MS-Windows: When printer name contains multi-byte, the name is displayed as ???. 解决方案: Convert the printer name from the active codepage to 'encoding'. (Yasuhiro Matsumoto) 相关文件: src/os_mswin.c Patch 7.4.472 问题: The "precedes" entry in 'listchar' will be drawn when 'showbreak' is set and 'list' is not. 解决方案: Only draw this character when 'list' is on. (Christian Brabandt) 相关文件: src/screen.c Patch 7.4.473 问题: Cursor movement is incorrect when there is a number/sign/fold column and 'sbr' is displayed. 解决方案: Adjust the column for 'sbr'. (Christian Brabandt) 相关文件: src/charset.c Patch 7.4.474 问题: AIX compiler can't handle // comment. Issue 265. 解决方案: Remove that line. 相关文件: src/regexp_nfa.c Patch 7.4.475 问题: Can't compile on a system where Xutf8SetWMProperties() is not in the X11 library. Issue 265. 解决方案: Add a configure check. 相关文件: src/configure.in, src/auto/configure, src/config.h.in, src/os_unix.c Patch 7.4.476 问题: MingW: compiling with "XPM=no" doesn't work. 解决方案: Check for the "no" value. (KF Leong) Also for Cygwin. (Ken Takata) 相关文件: src/Make_ming.mak, src/Make_cyg.mak Patch 7.4.477 问题: When using ":%diffput" and the other file is empty an extra empty line remains. 解决方案: Set the buf_empty flag. 相关文件: src/diff.c Patch 7.4.478 问题: Using byte length instead of character length for 'showbreak'. 解决方案: Compute the character length. (Marco Hinz) 相关文件: src/charset.c Patch 7.4.479 问题: MS-Windows: The console title can be wrong. 解决方案: Take the encoding into account. When restoring the title use the right function. (Yasuhiro Matsumoto) 相关文件: src/os_mswin.c, src/os_win32.c Patch 7.4.480 (after 7.4.479) 问题: MS-Windows: Can't build. 解决方案: Remove goto, use a flag instead. 相关文件: src/os_win32.c Patch 7.4.481 (after 7.4.471) 问题: Compiler warning on MS-Windows. 解决方案: Add type casts. (Ken Takata) 相关文件: src/os_mswin.c Patch 7.4.482 问题: When 'balloonexpr' results in a list, the text has a trailing newline. (Lcd) 解决方案: Remove one trailing newline. 相关文件: src/gui_beval.c Patch 7.4.483 问题: A 0x80 byte is not handled correctly in abbreviations. 解决方案: Unescape special characters. Add a test. (Christian Brabandt) 相关文件: src/getchar.c, src/testdir/Make_amiga.mak, src/testdir/Make_dos.mak, src/testdir/Make_ming.mak, src/testdir/Make_os2.mak, src/testdir/Make_vms.mms, src/testdir/Makefile, src/testdir/test_mapping.in, src/testdir/test_mapping.ok Patch 7.4.484 (after 7.4.483) 问题: Compiler warning on MS-Windows. (Ken Takata) 解决方案: Add type cast. 相关文件: src/getchar.c Patch 7.4.485 (after 7.4.484) 问题: Abbreviations don't work. (Toothpik) 解决方案: Move the length computation inside the for loop. Compare against the unescaped key. 相关文件: src/getchar.c Patch 7.4.486 问题: Check for writing to a yank register is wrong. 解决方案: Negate the check. (Zyx). Also clean up the #ifdefs. 相关文件: src/ex_docmd.c, src/ex_cmds.h Patch 7.4.487 问题: ":sign jump" may use another window even though the file is already edited in the current window. 解决方案: First check if the file is in the current window. (James McCoy) 相关文件: src/window.c, src/testdir/Make_amiga.mak, src/testdir/Make_dos.mak, src/testdir/Make_ming.mak, src/testdir/Make_os2.mak, src/testdir/Make_vms.mms, src/testdir/Makefile, src/testdir/test_signs.in, src/testdir/test_signs.ok Patch 7.4.488 问题: test_mapping fails for some people. 解决方案: Set the 'encoding' option. (Ken Takata) 相关文件: src/testdir/test_mapping.in Patch 7.4.489 问题: Cursor movement still wrong when 'lbr' is set and there is a number column. (Hirohito Higashi) 解决方案: Add correction for number column. (Hiroyuki Takagi) 相关文件: src/charset.c Patch 7.4.490 问题: Cannot specify the buffer to use for "do" and "dp", making them useless for three-way diff. 解决方案: Use the count as the buffer number. (James McCoy) 相关文件: runtime/doc/diff.txt, src/diff.c, src/normal.c, src/proto/diff.pro Patch 7.4.491 问题: When winrestview() has a negative "topline" value there are display errors. 解决方案: Correct a negative value to 1. (Hirohito Higashi) 相关文件: src/eval.c Patch 7.4.492 问题: In Insert mode, after inserting a newline that inserts a comment leader, CTRL-O moves to the right. (ZyX) Issue 57. 解决方案: Correct the condition for moving the cursor back to the NUL. (Christian Brabandt) 相关文件: src/edit.c, src/testdir/test4.in, src/testdir/test4.ok Patch 7.4.493 问题: A TextChanged autocommand is triggered when saving a file. (William Gardner) 解决方案: Update last_changedtick after calling unchanged(). (Christian Brabandt) 相关文件: src/fileio.c Patch 7.4.494 问题: Cursor shape is wrong after a CompleteDone autocommand. 解决方案: Update the cursor and mouse shape after ":normal" restores the state. (Jacob Niehus) 相关文件: src/ex_docmd.c Patch 7.4.495 问题: XPM isn't used correctly in the Cygwin Makefile. 解决方案: Include the rules like in Make_ming.mak. (Ken Takata) 相关文件: src/Make_cyg.mak Patch 7.4.496 问题: Many lines are both in Make_cyg.mak and Make_ming.mak 解决方案: Move the common parts to one file. (Ken Takata) 相关文件: src/INSTALLpc.txt, src/Make_cyg.mak, src/Make_cyg_ming.mak, src/Make_ming.mak, src/Make_mvc.mak, Filelist Patch 7.4.497 问题: With some regexp patterns the NFA engine uses many states and becomes very slow. To the user it looks like Vim freezes. 解决方案: When the number of states reaches a limit fall back to the old engine. (Christian Brabandt) 相关文件: runtime/doc/options.txt, src/Makefile, src/regexp.c, src/regexp.h, src/regexp_nfa.c, src/testdir/Make_dos.mak, src/testdir/Make_ming.mak, src/testdir/Make_os2.mak, src/testdir/Makefile, src/testdir/samples/re.freeze.txt, src/testdir/bench_re_freeze.in, src/testdir/bench_re_freeze.vim, Filelist Patch 7.4.498 (after 7.4.497) 问题: Typo in DOS makefile. 解决方案: Change exists to exist. (Ken Takata) 相关文件: src/testdir/Make_dos.mak Patch 7.4.499 问题: substitute() can be slow with long strings. 解决方案: Store a pointer to the end, instead of calling strlen() every time. (Ozaki Kiichi) 相关文件: src/eval.c Patch 7.4.500 问题: Test 72 still fails once in a while. 解决方案: Don't set 'fileformat' to unix, reset it. (Ken Takata) 相关文件: src/testdir/test72.in Patch 7.4.501 (after 7.4.497) 问题: Typo in file pattern. 解决方案: Insert a slash and remove a dot. 相关文件: Filelist Patch 7.4.502 问题: Language mapping also applies to mapped characters. 解决方案: Add the 'langnoremap' option, when on 'langmap' does not apply to mapped characters. (Christian Brabandt) 相关文件: runtime/doc/options.txt, runtime/vimrc_example.vim, src/macros.h, src/option.c, src/option.h Patch 7.4.503 问题: Cannot append a list of lines to a file. 解决方案: Add the append option to writefile(). (Yasuhiro Matsumoto) 相关文件: runtime/doc/eval.txt, src/Makefile, src/eval.c, src/testdir/test_writefile.in, src/testdir/test_writefile.ok Patch 7.4.504 问题: Restriction of the MS-Windows installer that the path must end in "Vim" prevents installing more than one version. 解决方案: Remove the restriction. (Tim Lebedkov) 相关文件: nsis/gvim.nsi Patch 7.4.505 问题: On MS-Windows when 'encoding' is a double-byte encoding a file name longer than MAX_PATH bytes but shorter than that in characters causes problems. 解决方案: Fail on file names longer than MAX_PATH bytes. (Ken Takata) 相关文件: src/os_win32.c Patch 7.4.506 问题: MS-Windows: Cannot open a file with 259 characters. 解决方案: Fix off-by-one error. (Ken Takata) 相关文件: src/os_mswin.c Patch 7.4.507 (after 7.4.496) 问题: Building with MingW and Perl. 解决方案: Remove quotes. (Ken Takata) 相关文件: src/Make_cyg_ming.mak Patch 7.4.508 问题: When generating ja.sjis.po the header is not correctly adjusted. 解决方案: Check for the right header string. (Ken Takata) 相关文件: src/po/sjiscorr.c Patch 7.4.509 问题: Users are not aware their encryption is weak. 解决方案: Give a warning when prompting for the key. 相关文件: src/crypt.c, src/ex_docmd.c, src/fileio.c, src/main.c, src/proto/crypt.pro Patch 7.4.510 问题: "-fwrapv" argument breaks use of cproto. 解决方案: Remove the alphabetic arguments in a drastic way. 相关文件: src/Makefile Patch 7.4.511 问题: Generating proto for if_ruby.c uses type not defined elsewhere. 解决方案: Do not generate a prototype for rb_gc_writebarrier_unprotect_promoted() 相关文件: src/if_ruby.c Patch 7.4.512 问题: Cannot generate prototypes for Win32 files and VMS. 解决方案: Add typedefs and #ifdef 相关文件: src/os_win32.c, src/gui_w32.c, src/os_vms.c Patch 7.4.513 问题: Crash because reference count is wrong for list returned by getreg(). 解决方案: Increment the reference count. (Kimmy Lindvall) 相关文件: src/eval.c Patch 7.4.514 (after 7.4.492) 问题: Memory access error. (Dominique Pelle) 解决方案: Update tpos. (Christian Brabandt) 相关文件: src/edit.c Patch 7.4.515 问题: In a help buffer the global 'foldmethod' is used. (Paul Marshall) 解决方案: Reset 'foldmethod' when starting to edit a help file. Move the code to a separate function. 相关文件: src/ex_cmds.c Patch 7.4.516 问题: Completing a function name containing a # does not work. Issue 253. 解决方案: Recognize the # character. (Christian Brabandt) 相关文件: src/eval.c Patch 7.4.517 问题: With a wrapping line the cursor may not end up in the right place. (Nazri Ramliy) 解决方案: Adjust n_extra for a Tab that wraps. (Christian Brabandt) 相关文件: src/screen.c Patch 7.4.518 问题: Using status line height in width computations. 解决方案: Use one instead. (Hirohito Higashi) 相关文件: src/window.c Patch 7.4.519 (after 7.4.497) 问题: Crash when using syntax highlighting. 解决方案: When regprog is freed and replaced, store the result. 相关文件: src/buffer.c, src/regexp.c, src/syntax.c, src/spell.c, src/ex_cmds2.c, src/fileio.c, src/proto/fileio.pro, src/proto/regexp.pro, src/os_unix.c Patch 7.4.520 问题: Sun PCK locale is not recognized. 解决方案: Add PCK in the table. (Keiichi Oono) 相关文件: src/mbyte.c Patch 7.4.521 问题: When using "vep" a mark is moved to the next line. (Maxi Padulo, Issue 283) 解决方案: Decrement the line number. (Christian Brabandt) 相关文件: src/ops.c Patch 7.4.522 问题: Specifying wrong buffer size for GetLongPathName(). 解决方案: Use the actual size. (Ken Takata) 相关文件: src/eval.c Patch 7.4.523 问题: When the X11 server is stopped and restarted, while Vim is kept in the background, copy/paste no longer works. (Issue 203) 解决方案: Setup the clipboard again. (Christian Brabandt) 相关文件: src/os_unix.c Patch 7.4.524 问题: When using ":ownsyntax" spell checking is messed up. (Issue 78) 解决方案: Use the window-local option values. (Christian Brabandt) 相关文件: src/option.c, src/syntax.c Patch 7.4.525 问题: map() leaks memory when there is an error in the expression. 解决方案: Call clear_tv(). (Christian Brabandt) 相关文件: src/eval.c Patch 7.4.526 问题: matchstr() fails on long text. (Daniel Hahler) 解决方案: Return NFA_TOO_EXPENSIVE from regexec_nl(). (Christian Brabandt) 相关文件: src/regexp.c Patch 7.4.527 问题: Still confusing regexp failure and NFA_TOO_EXPENSIVE. 解决方案: NFA changes equivalent of 7.4.526. 相关文件: src/regexp_nfa.c Patch 7.4.528 问题: Crash when using matchadd() (Yasuhiro Matsumoto) 解决方案: Copy the match regprog. 相关文件: src/screen.c Patch 7.4.529 问题: No test for what 7.4.517 fixes. 解决方案: Adjust the tests for breakindent. (Christian Brabandt) 相关文件: src/testdir/test_breakindent.in, src/testdir/test_breakindent.ok Patch 7.4.530 问题: Many commands take a count or range that is not using line numbers. 解决方案: For each command specify what kind of count it uses. For windows, buffers and arguments have "$" and "." have a relevant meaning. (Marcin Szamotulski) 相关文件: runtime/doc/editing.txt, runtime/doc/tabpage.txt, runtime/doc/windows.txt, src/Makefile, src/ex_cmds.h, src/ex_docmd.c, src/testdir/Make_amiga.mak src/testdir/Make_dos.mak, src/testdir/Make_ming.mak, src/testdir/Make_os2.mak, src/testdir/Make_vms.mms, src/testdir/Makefile, src/testdir/test_argument_count.in, src/testdir/test_argument_count.ok, src/testdir/test_close_count.in, src/testdir/test_close_count.ok, src/window.c Patch 7.4.531 问题: Comments about parsing an Ex command are wrong. 解决方案: Correct the step numbers. 相关文件: src/ex_docmd.c Patch 7.4.532 问题: When using 'incsearch' "2/pattern/e" highlights the first match. 解决方案: Move the code to set extra_col inside the loop for count. (Ozaki Kiichi) 相关文件: src/search.c Patch 7.4.533 问题: ":hardcopy" leaks memory in case of errors. 解决方案: Free memory in all code paths. (Christian Brabandt) 相关文件: src/hardcopy.c Patch 7.4.534 问题: Warnings when compiling if_ruby.c. 解决方案: Avoid the warnings. (Ken Takata) 相关文件: src/if_ruby.c Patch 7.4.535 (after 7.4.530) 问题: Can't build with tiny features. 解决方案: Add #ifdefs and skip a test. 相关文件: src/ex_docmd.c, src/testdir/test_argument_count.in Patch 7.4.536 问题: Test 63 fails when using a black&white terminal. 解决方案: Add attributes for a non-color terminal. (Christian Brabandt) 相关文件: src/testdir/test63.in Patch 7.4.537 问题: Value of v:hlsearch reflects an internal variable. 解决方案: Make the value reflect whether search highlighting is actually displayed. (Christian Brabandt) 相关文件: runtime/doc/eval.txt, src/testdir/test101.in, src/testdir/test101.ok, src/vim.h Patch 7.4.538 问题: Tests fail with small features plus Python. 解决方案: Disallow weird combination of options. Do not set "fdm" when folding is disabled. 相关文件: src/option.c, src/ex_cmds.c, src/configure.in, src/auto/configure, src/feature.h Patch 7.4.539 (after 7.4.530) 问题: Crash when computing buffer count. Problem with range for user commands. Line range wrong in Visual area. 解决方案: Avoid segfault in compute_buffer_local_count(). Check for CMD_USER when checking type of range. (Marcin Szamotulski) 相关文件: runtime/doc/windows.txt, src/ex_docmd.c Patch 7.4.540 (after 7.4.539) 问题: Cannot build with tiny and small features. (Taro Muraoka) 解决方案: Add #ifdef around CMD_USER. 相关文件: src/ex_docmd.c Patch 7.4.541 问题: Crash when doing a range assign. 解决方案: Check for NULL pointer. (Yukihiro Nakadaira) 相关文件: src/eval.c, src/testdir/test55.in, src/testdir/test55.ok Patch 7.4.542 问题: Using a range for window and buffer commands has a few problems. Cannot specify the type of range for a user command. 解决方案: Add the -addr argument for user commands. Fix problems. (Marcin Szamotulski) 相关文件: src/testdir/test_command_count.in, src/testdir/test_command_count.ok src/testdir/Make_amiga.mak src/testdir/Make_dos.mak, src/testdir/Make_ming.mak, src/testdir/Make_os2.mak, src/testdir/Make_vms.mms, src/testdir/Makefile, runtime/doc/map.txt, src/Makefile, src/ex_cmds.h, src/ex_docmd.c, src/ex_getln.c, src/proto/ex_docmd.pro, src/vim.h, Patch 7.4.543 问题: Since patch 7.4.232 "1,3s/\n//" joins two lines instead of three. (Eliseo Martínez) Issue 287 解决方案: Correct the line count. (Christian Brabandt) Also set the last used search pattern. 相关文件: src/ex_cmds.c, src/search.c, src/proto/search.pro Patch 7.4.544 问题: Warnings for unused arguments when compiling with a combination of features. 解决方案: Add "UNUSED". 相关文件: src/if_cscope.c Patch 7.4.545 问题: Highlighting for multi-line matches is not correct. 解决方案: Stop highlight at the end of the match. (Hirohito Higashi) 相关文件: src/screen.c Patch 7.4.546 问题: Repeated use of vim_snprintf() with a number. 解决方案: Move these vim_snprintf() calls into a function. 相关文件: src/window.c Patch 7.4.547 问题: Using "vit" does not select a multi-byte character at the end correctly. 解决方案: Advance the cursor over the multi-byte character. (Christian Brabandt) 相关文件: src/search.c Patch 7.4.548 问题: Compilation fails with native version of MinGW-w64, because it doesn't have x86_64-w64-mingw32-windres.exe. 解决方案: Use windres instead. (Ken Takata) 相关文件: src/Make_cyg_ming.mak Patch 7.4.549 问题: Function name not recognized correctly when inside a function. 解决方案: Don't check for an alpha character. (Ozaki Kiichi) 相关文件: src/eval.c, src/testdir/test_nested_function.in, src/testdir/test_nested_function.ok, src/testdir/Make_amiga.mak, src/testdir/Make_dos.mak, src/testdir/Make_ming.mak, src/testdir/Make_os2.mak, src/testdir/Make_vms.mms, src/testdir/Makefile Patch 7.4.550 问题: curs_rows() function is always called with the second argument false. 解决方案: Remove the argument. (Christian Brabandt) validate_botline_win() can then also be removed. 相关文件: src/move.c Patch 7.4.551 问题: "ygn" may yank too much. (Fritzophrenic) Issue 295. 解决方案: Check the width of the next match. (Christian Brabandt) 相关文件: src/search.c, src/testdir/test53.in, src/testdir/test53.ok Patch 7.4.552 问题: Langmap applies to Insert mode expression mappings. 解决方案: Check for Insert mode. (Daniel Hahler) 相关文件: src/getchar.c, src/testdir/test_mapping.in, src/testdir/test_mapping.ok Patch 7.4.553 问题: Various small issues. 解决方案: Fix those issues. 相关文件: src/ex_cmds.h, src/gui.h, src/message.c, src/testdir/test39.in, src/proto/eval.pro, src/proto/misc1.pro, src/proto/ops.pro, src/proto/screen.pro, src/proto/window.pro. src/os_unix.c, src/Make_vms.mms, src/proto/os_vms.pro, src/INSTALL Patch 7.4.554 问题: Missing part of patch 7.4.519. 解决方案: Copy back regprog after calling vim_regexec. 相关文件: src/quickfix.c Patch 7.4.555 问题: test_close_count may fail for some combination of features. 解决方案: Require normal features. 相关文件: src/testdir/test_close_count.in Patch 7.4.556 问题: Failed commands in Python interface not handled correctly. 解决方案: Restore window and buffer on failure. 相关文件: src/if_py_both.h Patch 7.4.557 问题: One more small issue. 解决方案: Update function proto. 相关文件: src/proto/window.pro Patch 7.4.558 问题: When the X server restarts Vim may get stuck. 解决方案: Destroy the application context and create it again. (Issue 203) 相关文件: src/os_unix.c Patch 7.4.559 问题: Appending a block in the middle of a tab does not work correctly when virtualedit is set. 解决方案: Decrement spaces and count, don't reset them. (James McCoy) 相关文件: src/ops.c, src/testdir/test39.in, src/testdir/test39.ok Patch 7.4.560 问题: Memory leak using :wviminfo. Issue 296. 解决方案: Free memory when needed. (idea by Christian Brabandt) 相关文件: src/ops.c Patch 7.4.561 问题: Ex range handling is wrong for buffer-local user commands. 解决方案: Check for CMD_USER_BUF. (Marcin Szamotulski) 相关文件: src/ex_docmd.c, src/testdir/test_command_count.in, src/testdir/test_command_count.ok Patch 7.4.562 问题: Segfault with wide screen and error in 'rulerformat'. (Ingo Karkat) 解决方案: Check there is enough space. (Christian Brabandt) 相关文件: src/buffer.c, src/screen.c Patch 7.4.563 问题: No test for replacing on a tab in Virtual replace mode. 解决方案: Add a test. (Elias Diem) 相关文件: src/testdir/test48.in, src/testdir/test48.ok Patch 7.4.564 问题: FEAT_OSFILETYPE is used even though it's never defined. 解决方案: Remove the code. (Christian Brabandt) 相关文件: src/fileio.c Patch 7.4.565 问题: Ranges for arguments, buffers, tabs, etc. are not checked to be valid but limited to the maximum. This can cause the wrong thing to happen. 解决方案: Give an error for an invalid value. (Marcin Szamotulski) Use windows range for ":wincmd". 相关文件: src/ex_docmd.c, src/ex_cmds.h, src/testdir/test62.in, src/testdir/test_argument_count.in, src/testdir/test_argument_count.ok, src/testdir/test_close_count.in, src/testdir/test_command_count.in, src/testdir/test_command_count.ok Patch 7.4.566 问题: :argdo, :bufdo, :windo and :tabdo don't take a range. 解决方案: Support the range. (Marcin Szamotulski) 相关文件: runtime/doc/editing.txt, runtime/doc/tabpage.txt, runtime/doc/windows.txt, src/ex_cmds.h, src/ex_cmds2.c, src/testdir/test_command_count.in, src/testdir/test_command_count.ok Patch 7.4.567 问题: Non-ascii vertical separator characters are always redrawn. 解决方案: Compare only the one byte that's stored. (Thiago Padilha) 相关文件: src/screen.c Patch 7.4.568 问题: Giving an error for ":0wincmd w" is a problem for some plugins. 解决方案: Allow the zero in the range. (Marcin Szamotulski) 相关文件: src/ex_docmd.c, src/testdir/test_command_count.ok Patch 7.4.569 (after 7.4.468) 问题: Having CTRL-C interrupt or not does not check the mode of the mapping. (Ingo Karkat) 解决方案: Use a bitmask with the map mode. (Christian Brabandt) 相关文件: src/getchar.c, src/structs.h, src/testdir/test_mapping.in, src/testdir/test_mapping.ok, src/ui.c, src/globals.h Patch 7.4.570 问题: Building with dynamic library does not work for Ruby 2.2.0 解决方案: Change #ifdefs and #defines. (Ken Takata) 相关文件: src/if_ruby.c Patch 7.4.571 (after 7.4.569) 问题: Can't build with tiny features. (Ike Devolder) 解决方案: Add #ifdef. 相关文件: src/getchar.c Patch 7.4.572 问题: Address type of :wincmd depends on the argument. 解决方案: Check the argument. 相关文件: src/ex_docmd.c, src/window.c, src/proto/window.pro Patch 7.4.573 (after 7.4.569) 问题: Mapping CTRL-C in Visual mode doesn't work. (Ingo Karkat) 解决方案: Call get_real_state() instead of using State directly. 相关文件: src/ui.c, src/testdir/test_mapping.in, src/testdir/test_mapping.ok Patch 7.4.574 问题: No error for eval('$'). 解决方案: Check for empty name. (Yasuhiro Matsumoto) 相关文件: src/eval.c Patch 7.4.575 问题: Unicode character properties are outdated. 解决方案: Update the tables with the latest version. 相关文件: src/mbyte.c Patch 7.4.576 问题: Redrawing problem with 'relativenumber' and 'linebreak'. 解决方案: Temporarily reset 'linebreak' and restore it in more places. (Christian Brabandt) 相关文件: src/normal.c Patch 7.4.577 问题: Matching with a virtual column has a lot of overhead on very long lines. (Issue 310) 解决方案: Bail out early if there can't be a match. (Christian Brabandt) Also check for CTRL-C at every position. 相关文件: src/regexp_nfa.c Patch 7.4.578 问题: Using getcurpos() after "$" in an empty line returns a negative number. 解决方案: Don't add one when this would overflow. (Hirohito Higashi) 相关文件: src/eval.c Patch 7.4.579 问题: Wrong cursor positioning when 'linebreak' is set and lines wrap. 解决方案: Fix it. (Christian Brabandt) 相关文件: src/charset.c, src/screen.c Patch 7.4.580 问题: ":52wincmd v" still gives an invalid range error. (Charles Campbell) 解决方案: Skip over white space. 相关文件: src/ex_docmd.c Patch 7.4.581 问题: Compiler warnings for uninitialized variables. (John Little) 解决方案: Initialize the variables. 相关文件: src/ops.c Patch 7.4.582 (after 7.4.577) 问题: Can't match "%>80v" properly. (Axel Bender) 解决方案: Correctly handle ">". (Christian Brabandt) 相关文件: src/regexp_nfa.c, src/testdir/test64.in, src/testdir/test64.ok Patch 7.4.583 问题: With tiny features test 16 may fail. 解决方案: Source small.vim. (Christian Brabandt) 相关文件: src/testdir/test16.in Patch 7.4.584 问题: With tiny features test_command_count may fail. 解决方案: Source small.vim. (Christian Brabandt) 相关文件: src/testdir/test_command_count.in Patch 7.4.585 问题: Range for :bdelete does not work. (Ronald Schild) 解决方案: Also allow unloaded buffers. 相关文件: src/ex_cmds.h, src/testdir/test_command_count.in, src/testdir/test_command_count.ok Patch 7.4.586 问题: Parallel building of the documentation html files is not reliable. 解决方案: Remove a cyclic dependency. (Reiner Herrmann) 相关文件: runtime/doc/Makefile Patch 7.4.587 问题: Conceal does not work properly with 'linebreak'. (cs86661) 解决方案: Save and restore boguscols. (Christian Brabandt) 相关文件: src/screen.c, src/testdir/test_listlbr_utf8.in, src/testdir/test_listlbr_utf8.ok Patch 7.4.588 问题: ":0argedit foo" puts the new argument in the second place instead of the first. 解决方案: Adjust the range type. (Ingo Karkat) 相关文件: src/ex_cmds.h, src/testdir/Make_amiga.mak, src/testdir/Make_dos.mak, src/testdir/Make_ming.mak, src/testdir/Make_os2.mak, src/testdir/Make_vms.mms, src/testdir/Makefile, src/testdir/test_argument_0count.in, src/testdir/test_argument_0count.ok Patch 7.4.589 问题: In the MS-Windows console Vim can't handle greek characters when encoding is utf-8. 解决方案: Escape K_NUL. (Yasuhiro Matsumoto) 相关文件: src/os_win32.c Patch 7.4.590 问题: Using ctrl_x_mode as if it contains flags. 解决方案: Don't use AND with CTRL_X_OMNI. (Hirohito Higashi) 相关文件: src/edit.c Patch 7.4.591 (after 7.4.587) 问题: test_listlbr_utf8 fails when the conceal feature is not available. 解决方案: Check for the conceal feature. (Kazunobu Kuriyama) 相关文件: src/testdir/test_listlbr_utf8.in Patch 7.4.592 问题: When doing ":e foobar" when already editing "foobar" and 'buftype' is "nofile" the buffer is cleared. (Xavier de Gaye) 解决方案: Do no clear the buffer. 相关文件: src/ex_cmds.c Patch 7.4.593 问题: Crash when searching for "x\{0,90000}". (Dominique Pelle) 解决方案: Bail out from the NFA engine when the max limit is much higher than the min limit. 相关文件: src/regexp_nfa.c, src/regexp.c, src/vim.h Patch 7.4.594 问题: Using a block delete while 'breakindent' is set does not work properly. 解决方案: Use "line" instead of "prev_pend" as the first argument to lbr_chartabsize_adv(). (Hirohito Higashi) 相关文件: src/ops.c, src/testdir/test_breakindent.in, src/testdir/test_breakindent.ok Patch 7.4.595 问题: The test_command_count test fails when using Japanese. 解决方案: Force the language to C. (Hirohito Higashi) 相关文件: src/testdir/test_command_count.in Patch 7.4.596 (after 7.4.592) 问题: Tiny build doesn't compile. (Ike Devolder) 解决方案: Add #ifdef. 相关文件: src/ex_cmds.c Patch 7.4.597 问题: Cannot change the result of systemlist(). 解决方案: Initialize v_lock. (Yukihiro Nakadaira) 相关文件: src/eval.c Patch 7.4.598 问题: ":tabdo windo echo 'hi'" causes "* register not to be changed. (Salman Halim) 解决方案: Change how clip_did_set_selection is used and add clipboard_needs_update and global_change_count. (Christian Brabandt) 相关文件: src/main.c, src/ui.c, src/testdir/test_eval.in, src/testdir/test_eval.ok Patch 7.4.599 问题: Out-of-memory error. 解决方案: Avoid trying to allocate a negative amount of memory, use size_t instead of int. (Dominique Pelle) 相关文件: src/regexp_nfa.c Patch 7.4.600 问题: Memory wasted in struct because of aligning. 解决方案: Split pos in lnum and col. (Dominique Pelle) 相关文件: src/regexp_nfa.c Patch 7.4.601 问题: It is not possible to have feedkeys() insert characters. 解决方案: Add the 'i' flag. 相关文件: src/eval.c, runtime/doc/eval.txt Patch 7.4.602 问题: ":set" does not accept hex numbers as documented. 解决方案: Use vim_str2nr(). (ZyX) 相关文件: src/option.c, runtime/doc/options.txt Patch 7.4.603 问题: 'foldcolumn' may be set such that it fills the whole window, not leaving space for text. 解决方案: Reduce the foldcolumn width when there is not sufficient room. (idea by Christian Brabandt) 相关文件: src/screen.c Patch 7.4.604 问题: Running tests changes viminfo. 解决方案: Disable viminfo. 相关文件: src/testdir/test_breakindent.in Patch 7.4.605 问题: The # register is not writable, it cannot be restored after jumping around. 解决方案: Make the # register writable. (Marcin Szamotulski) 相关文件: runtime/doc/change.txt, src/ops.c, src/buffer.c, src/globals.h Patch 7.4.606 问题: May crash when using a small window. 解决方案: Avoid dividing by zero. (Christian Brabandt) 相关文件: src/normal.c Patch 7.4.607 (after 7.4.598) 问题: Compiler warnings for unused variables. 解决方案: Move them inside #ifdef. (Kazunobu Kuriyama) 相关文件: src/ui.c Patch 7.4.608 (after 7.4.598) 问题: test_eval fails when the clipboard feature is missing. 解决方案: Skip part of the test. Reduce the text used. 相关文件: src/testdir/test_eval.in, src/testdir/test_eval.ok Patch 7.4.609 问题: For complicated list and dict use the garbage collector can run out of stack space. 解决方案: Use a stack of dicts and lists to be marked, thus making it iterative instead of recursive. (Ben Fritz) 相关文件: src/eval.c, src/if_lua.c, src/if_py_both.h, src/if_python.c, src/if_python3.c, src/proto/eval.pro, src/proto/if_lua.pro, src/proto/if_python.pro, src/proto/if_python3.pro, src/structs.h Patch 7.4.610 问题: Some function headers may be missing from generated .pro files. 解决方案: Add PROTO to the #ifdef. 相关文件: src/option.c, src/syntax.c Patch 7.4.611 (after 7.4.609) 问题: Syntax error. 解决方案: Change statement to return. 相关文件: src/if_python3.c Patch 7.4.612 问题: test_eval fails on Mac. 解决方案: Use the * register instead of the + register. (Jun Takimoto) 相关文件: src/testdir/test_eval.in, src/testdir/test_eval.ok Patch 7.4.613 问题: The NFA engine does not implement the 'redrawtime' time limit. 解决方案: Implement the time limit. 相关文件: src/regexp_nfa.c Patch 7.4.614 问题: There is no test for what patch 7.4.601 fixes. 解决方案: Add a test. (Christian Brabandt) 相关文件: src/testdir/test_mapping.in, src/testdir/test_mapping.ok Patch 7.4.615 问题: Vim hangs when freeing a lot of objects. 解决方案: Do not go back to the start of the list every time. (Yasuhiro Matsumoto and Ariya Mizutani) 相关文件: src/eval.c Patch 7.4.616 问题: Cannot insert a tab in front of a block. 解决方案: Correctly compute aop->start. (Christian Brabandt) 相关文件: src/ops.c, src/testdir/test39.in, src/testdir/test39.ok Patch 7.4.617 问题: Wrong ":argdo" range does not cause an error. 解决方案: Reset "cmd" to NULL. (Marcin Szamotulski, Ingo Karkat) 相关文件: src/ex_docmd.c Patch 7.4.618 (after 7.4.609) 问题: luaV_setref() is missing a return statement. (Ozaki Kiichi) 解决方案: Put the return statement back. 相关文件: src/if_lua.c Patch 7.4.619 (after 7.4.618) 问题: luaV_setref() not returning the correct value. 解决方案: Return one. 相关文件: src/if_lua.c Patch 7.4.620 问题: Compiler warning for uninitialized variable. (Tony Mechelynck) 解决方案: Initialize "did_free". (Ben Fritz) 相关文件: src/eval.c Patch 7.4.621 (after 7.4.619) 问题: Returning 1 in the wrong function. (Raymond Ko) 解决方案: Return 1 in the right function (hopefully). 相关文件: src/if_lua.c Patch 7.4.622 问题: Compiler warning for unused argument. 解决方案: Add UNUSED. 相关文件: src/regexp_nfa.c Patch 7.4.623 问题: Crash with pattern: \(\)\{80000} (Dominique Pelle) 解决方案: When the max limit is large fall back to the old engine. 相关文件: src/regexp_nfa.c Patch 7.4.624 问题: May leak memory or crash when vim_realloc() returns NULL. 解决方案: Handle a NULL value properly. (Mike Williams) 相关文件: src/if_cscope.c, src/memline.c, src/misc1.c, src/netbeans.c Patch 7.4.625 问题: Possible NULL pointer dereference. 解决方案: Check for NULL before using it. (Mike Williams) 相关文件: src/if_py_both.h Patch 7.4.626 问题: MSVC with W4 gives useless warnings. 解决方案: Disable more warnings. (Mike Williams) 相关文件: src/vim.h Patch 7.4.627 问题: The last screen cell is not updated. 解决方案: Respect the "tn" termcap feature. (Hayaki Saito) 相关文件: runtime/doc/term.txt, src/option.c, src/screen.c, src/term.c, src/term.h Patch 7.4.628 问题: Compiler warning for variable might be clobbered by longjmp. 解决方案: Add volatile. (Michael Jarvis) 相关文件: src/main.c Patch 7.4.629 问题: Coverity warning for Out-of-bounds read. 解决方案: Increase MAXWLEN to 254. (Eliseo Martínez) 相关文件: src/spell.c Patch 7.4.630 问题: When using Insert mode completion combined with autocommands the redo command may not work. 解决方案: Do not save the redo buffer when executing autocommands. (Yasuhiro Matsumoto) 相关文件: src/fileio.c Patch 7.4.631 问题: The default conceal character is documented to be a space but it's initially a dash. (Christian Brabandt) 解决方案: Make the initial value a space. 相关文件: src/globals.h Patch 7.4.632 (after 7.4.592) 问题: 7.4.592 breaks the netrw plugin, because the autocommands are skipped. 解决方案: Roll back the change. 相关文件: src/ex_cmds.c Patch 7.4.633 问题: After 7.4.630 the problem persists. 解决方案: Also skip redo when calling a user function. 相关文件: src/eval.c Patch 7.4.634 问题: Marks are not restored after redo + undo. 解决方案: Fix the way marks are restored. (Olaf Dabrunz) 相关文件: src/undo.c, src/testdir/Make_amiga.mak, src/testdir/Make_dos.mak, src/testdir/Make_ming.mak, src/testdir/Make_os2.mak, src/testdir/Make_vms.mms, src/testdir/Makefile, src/testdir/test_marks.in, src/testdir/test_marks.ok Patch 7.4.635 问题: If no NL or CR is found in the first block of a file then the 'fileformat' may be set to "mac". (Issue 77) 解决方案: Check if a CR was found. (eswald) 相关文件: src/fileio.c Patch 7.4.636 问题: A search with end offset gets stuck at end of file. (Gary Johnson) 解决方案: When a search doesn't move the cursor repeat it with a higher count. (Christian Brabandt) 相关文件: src/normal.c, src/testdir/test44.in, src/testdir/test44.ok Patch 7.4.637 问题: Incorrectly read the number of buffer for which an autocommand should be registered. 解决方案: Reverse check for "<buffer=abuf>". (Lech Lorens) 相关文件: src/fileio.c Patch 7.4.638 问题: Can't build with Lua 5.3 on Windows. 解决方案: use luaL_optinteger() instead of LuaL_optlong(). (Ken Takata) 相关文件: src/if_lua.c Patch 7.4.639 问题: Combination of linebreak and conceal doesn't work well. 解决方案: Fix the display problems. (Christian Brabandt) 相关文件: src/screen.c, src/testdir/test88.in, src/testdir/test88.ok, src/testdir/test_listlbr_utf8.in, src/testdir/test_listlbr_utf8.ok Patch 7.4.640 问题: After deleting characters in Insert mode such that lines are joined undo does not work properly. (issue 324) 解决方案: Use Insstart instead of Insstart_orig. (Christian Brabandt) 相关文件: src/edit.c Patch 7.4.641 问题: The tabline menu was using ":999tabnew" which is now invalid. 解决方案: Use ":$tabnew" instead. (Florian Degner) 相关文件: src/normal.c Patch 7.4.642 问题: When using "gf" escaped spaces are not handled. 解决方案: Recognize escaped spaces. 相关文件: src/vim.h, src/normal.h, src/window.c, src/misc2.c Patch 7.4.643 问题: Using the default file format for Mac files. (Issue 77) 解决方案: Reset the try_mac counter in the right place. (Oswald) 相关文件: src/fileio.c, src/testdir/test30.in, src/testdir/test30.ok Patch 7.4.644 问题: Stratus VOS doesn't have sync(). 解决方案: Use fflush(). (Karli Aurelia) 相关文件: src/memfile.c Patch 7.4.645 问题: When splitting the window in a BufAdd autocommand while still in the first, empty buffer the window count is wrong. 解决方案: Do not reset b_nwindows to zero and don't increment it. 相关文件: src/buffer.c, src/ex_cmds.c Patch 7.4.646 问题: ":bufdo" may start at a deleted buffer. 解决方案: Find the first not deleted buffer. (Shane Harper) 相关文件: src/ex_cmds2.c, src/testdir/test_command_count.in, src/testdir/test_command_count.ok Patch 7.4.647 问题: After running the tests on MS-Windows many files differ from their originals as they were checked out. 解决方案: Use a temp directory for executing the tests. (Ken Takata, Taro Muraoka) 相关文件: src/testdir/Make_dos.mak Patch 7.4.648 (after 7.4.647) 问题: Tests broken on MS-Windows. 解决方案: Delete wrong copy line. (Ken Takata) 相关文件: src/testdir/Make_dos.mak Patch 7.4.649 问题: Compiler complains about ignoring return value of fwrite(). (Michael Jarvis) 解决方案: Add (void). 相关文件: src/misc2.c Patch 7.4.650 问题: Configure check may fail because the dl library is not used. 解决方案: Put "-ldl" in LIBS rather than LDFLAGS. (Ozaki Kiichi) 相关文件: src/configure.in, src/auto/configure Patch 7.4.651 (after 7.4.582) 问题: Can't match "%>80v" properly for multi-byte characters. 解决方案: Multiply the character number by the maximum number of bytes in a character. (Yasuhiro Matsumoto) 相关文件: src/regexp_nfa.c Patch 7.4.652 问题: Xxd lacks a few features. 解决方案: Use 8 characters for the file position. Add the -e and -o arguments. (Vadim Vygonets) 相关文件: src/xxd/xxd.c, runtime/doc/xxd.1 Patch 7.4.653 问题: Insert mode completion with complete() may have CTRL-L work like CTRL-P. 解决方案: Handle completion with complete() differently. (Yasuhiro Matsumoto, Christian Brabandt, Hirohito Higashi) 相关文件: src/edit.c Patch 7.4.654 问题: glob() and globpath() cannot include links to non-existing files. (Charles Campbell) 解决方案: Add an argument to include all links with glob(). (James McCoy) Also for globpath(). 相关文件: src/vim.h, src/eval.c, src/ex_getln.c Patch 7.4.655 问题: Text deleted by "dit" depends on indent of closing tag. (Jan Parthey) 解决方案: Do not adjust oap->end in do_pending_operator(). (Christian Brabandt) 相关文件: src/normal.c, src/search.c, src/testdir/test53.in, src/testdir/test53.ok Patch 7.4.656 (after 7.4.654) 问题: Missing changes for glob() in one file. 解决方案: Add the missing changes. 相关文件: src/misc1.c Patch 7.4.657 (after 7.4.656) 问题: Compiler warnings for pointer mismatch. 解决方案: Add a typecast. (John Marriott) 相关文件: src/misc1.c Patch 7.4.658 问题: 'formatexpr' is evaluated too often. 解决方案: Only invoke it when beyond the 'textwidth' column, as it is documented. (James McCoy) 相关文件: src/edit.c Patch 7.4.659 问题: When 'ruler' is set the preferred column is reset. (Issue 339) 解决方案: Don't set curswant when redrawing the status lines. 相关文件: src/option.c Patch 7.4.660 问题: Using freed memory when g:colors_name is changed in the colors script. (oni-link) 解决方案: Make a copy of the variable value. 相关文件: src/syntax.c Patch 7.4.661 问题: Using "0 CTRL-D" in Insert mode may have CursorHoldI interfere. (Gary Johnson) 解决方案: Don't store K_CURSORHOLD as the last character. (Christian Brabandt) 相关文件: src/edit.c Patch 7.4.662 问题: When 'M' is in the 'cpo' option then selecting a text object in parentheses does not work correctly. 解决方案: Keep 'M' in 'cpo' when finding a match. (Hirohito Higashi) 相关文件: src/search.c, src/testdir/Make_amiga.mak, src/testdir/Make_dos.mak, src/testdir/Make_ming.mak, src/testdir/Make_os2.mak, src/testdir/Make_vms.mms, src/testdir/Makefile, src/testdir/test_textobjects.in, src/testdir/test_textobjects.ok Patch 7.4.663 问题: When using netbeans a buffer is not found in another tab. 解决方案: When 'switchbuf' is set to "usetab" then switch to another tab when possible. (Xavier de Gaye) 相关文件: src/netbeans.c Patch 7.4.664 问题: When 'compatible' is reset 'numberwidth' is set to 4, but the effect doesn't show until a change is made. 解决方案: Check if 'numberwidth' changed. (Christian Brabandt) 相关文件: src/screen.c, src/structs.h Patch 7.4.665 问题: 'linebreak' does not work properly with multi-byte characters. 解决方案: Compute the pointer offset with mb_head_off(). (Yasuhiro Matsumoto) 相关文件: src/screen.c Patch 7.4.666 问题: There is a chance that Vim may lock up. 解决方案: Handle timer events differently. (Aaron Burrow) 相关文件: src/os_unix.c Patch 7.4.667 问题: 'colorcolumn' isn't drawn in a closed fold while 'cursorcolumn' is. (Carlos Pita) 解决方案: Make it consistent. (Christian Brabandt) 相关文件: src/screen.c Patch 7.4.668 问题: Can't use a glob pattern as a regexp pattern. 解决方案: Add glob2regpat(). (Christian Brabandt) 相关文件: src/eval.c, runtime/doc/eval.txt Patch 7.4.669 问题: When netbeans is active the sign column always shows up. 解决方案: Only show the sign column once a sign has been added. (Xavier de Gaye) 相关文件: src/buffer.c, src/edit.c, src/move.c, src/netbeans.c, src/screen.c, src/structs.h Patch 7.4.670 问题: Using 'cindent' for Javascript is less than perfect. 解决方案: Improve indenting of continuation lines. (Hirohito Higashi) 相关文件: src/misc1.c, src/testdir/test3.in, src/testdir/test3.ok Patch 7.4.671 (after 7.4.665) 问题: Warning for shadowing a variable. 解决方案: Rename off to mb_off. (Kazunobu Kuriyama) 相关文件: src/screen.c Patch 7.4.672 问题: When completing a shell command, directories in the current directory are not listed. 解决方案: When "." is not in $PATH also look in the current directory for directories. 相关文件: src/ex_getln.c, src/vim.h, src/misc1.c, src/eval.c, src/os_amiga.c, src/os_msdos.c, src/os_unix.c, src/os_vms.c, src/proto/os_amiga.pro, src/proto/os_msdos.pro, src/proto/os_unix.pro, src/proto/os_win32.pro Patch 7.4.673 问题: The first syntax entry gets sequence number zero, which doesn't work. (Clinton McKay) 解决方案: Start at number one. (Bjorn Linse) 相关文件: src/syntax.c Patch 7.4.674 (after 7.4.672) 问题: Missing changes in one file. 解决方案: Also change the win32 file. 相关文件: src/os_win32.c Patch 7.4.675 问题: When a FileReadPost autocommand moves the cursor inside a line it gets moved back. 解决方案: When checking whether an autocommand moved the cursor store the column as well. (Christian Brabandt) 相关文件: src/ex_cmds.c Patch 7.4.676 问题: On Mac, when not using the default Python framework configure doesn't do the right thing. 解决方案: Use a linker search path. (Kazunobu Kuriyama) 相关文件: src/configure.in, src/auto/configure Patch 7.4.677 (after 7.4.676) 问题: Configure fails when specifying a python-config-dir. (Lcd) 解决方案: Check if PYTHONFRAMEWORKPREFIX is set. 相关文件: src/configure.in, src/auto/configure Patch 7.4.678 问题: When using --remote the directory may end up being wrong. 解决方案: Use localdir() to find out what to do. (Xaizek) 相关文件: src/main.c Patch 7.4.679 问题: Color values greater than 255 cause problems on MS-Windows. 解决方案: Truncate to 255 colors. (Yasuhiro Matsumoto) 相关文件: src/os_win32.c Patch 7.4.680 问题: CTRL-W in Insert mode does not work well for multi-byte characters. 解决方案: Use mb_get_class(). (Yasuhiro Matsumoto) 相关文件: src/edit.c, src/testdir/Make_amiga.mak, src/testdir/Make_dos.mak, src/testdir/Make_ming.mak, src/testdir/Make_os2.mak, src/testdir/Make_vms.mms, src/testdir/Makefile, src/testdir/test_erasebackword.in, src/testdir/test_erasebackword.ok, Patch 7.4.681 问题: MS-Windows: When Vim is minimized the window height is computed incorrectly. 解决方案: When minimized use the previously computed size. (Ingo Karkat) 相关文件: src/gui_w32.c Patch 7.4.682 问题: The search highlighting and match highlighting replaces the cursorline highlighting, this doesn't look good. 解决方案: Combine the highlighting. (Yasuhiro Matsumoto) 相关文件: src/screen.c Patch 7.4.683 问题: Typo in the vimtutor command. 解决方案: Fix the typo. (Corey Farwell, github pull 349) 相关文件: vimtutor.com Patch 7.4.684 问题: When starting several Vim instances in diff mode, the temp files used may not be unique. (Issue 353) 解决方案: Add an argument to vim_tempname() to keep the file. 相关文件: src/diff.c, src/eval.c, src/ex_cmds.c, src/fileio.c, src/hardcopy.c, src/proto/fileio.pro, src/if_cscope.c, src/memline.c, src/misc1.c, src/os_unix.c, src/quickfix.c, src/spell.c Patch 7.4.685 问题: When there are illegal utf-8 characters the old regexp engine may go past the end of a string. 解决方案: Only advance to the end of the string. (Dominique Pelle) 相关文件: src/regexp.c Patch 7.4.686 问题: "zr" and "zm" do not take a count. 解决方案: Implement the count, restrict the fold level to the maximum nesting depth. (Marcin Szamotulski) 相关文件: runtime/doc/fold.txt, src/normal.c Patch 7.4.687 问题: There is no way to use a different in Replace mode for a terminal. 解决方案: Add t_SR. (Omar Sandoval) 相关文件: runtime/doc/options.txt, runtime/doc/term.txt, runtime/syntax/vim.vim, src/option.c, src/term.c, src/term.h Patch 7.4.688 问题: When "$" is in 'cpo' the popup menu isn't undrawn correctly. (Issue 166) 解决方案: When using the popup menu remove the "$". 相关文件: src/edit.c Patch 7.4.689 问题: On MS-Windows, when 'autochdir' is set, diff mode with files in different directories does not work. (Axel Bender) 解决方案: Remember the current directory and use it where needed. (Christian Brabandt) 相关文件: src/main.c Patch 7.4.690 问题: Memory access errors when changing indent in Ex mode. Also missing redraw when using CTRL-U. (Knil Ino) 解决方案: Update pointers after calling ga_grow(). 相关文件: src/ex_getln.c Patch 7.4.691 (after 7.4.689) 问题: Can't build with MzScheme. 解决方案: Change "cwd" into the global variable "start_dir". 相关文件: src/main.c Patch 7.4.692 问题: Defining SOLARIS for no good reason. (Danek Duvall) 解决方案: Remove it. 相关文件: src/os_unix.h Patch 7.4.693 问题: Session file is not correct when there are multiple tab pages. 解决方案: Reset the current window number for each tab page. (Jacob Niehus) 相关文件: src/ex_docmd.c Patch 7.4.694 问题: Running tests changes the .viminfo file. 解决方案: Disable viminfo in the text objects test. 相关文件: src/testdir/test_textobjects.in Patch 7.4.695 问题: Out-of-bounds read, detected by Coverity. 解决方案: Remember the value of cmap for the first matching encoding. Reset cmap to that value if first matching encoding is going to be used. (Eliseo Martínez) 相关文件: src/hardcopy.c Patch 7.4.696 问题: Not freeing memory when encountering an error. 解决方案: Free the stack before returning. (Eliseo Martínez) 相关文件: src/regexp_nfa.c Patch 7.4.697 问题: The filename used for ":profile" must be given literally. 解决方案: Expand "~" and environment variables. (Marco Hinz) 相关文件: src/ex_cmds2.c Patch 7.4.698 问题: Various problems with locked and fixed lists and dictionaries. 解决方案: Disallow changing locked items, fix a crash, add tests. (Olaf Dabrunz) 相关文件: src/structs.h, src/eval.c, src/testdir/test55.in, src/testdir/test55.ok Patch 7.4.699 问题: E315 when trying to delete a fold. (Yutao Yuan) 解决方案: Make sure the fold doesn't go beyond the last buffer line. (Christian Brabandt) 相关文件: src/fold.c Patch 7.4.700 问题: Fold can't be opened after ":move". (Ein Brown) 解决方案: Delete the folding information and update it afterwards. (Christian Brabandt) 相关文件: src/ex_cmds.c, src/fold.c, src/testdir/test45.in, src/testdir/test45.ok Patch 7.4.701 问题: Compiler warning for using uninitialized variable. (Yasuhiro Matsumoto) 解决方案: Initialize it. 相关文件: src/hardcopy.c Patch 7.4.702 问题: Joining an empty list does unnecessary work. 解决方案: Let join() return early. (Marco Hinz) 相关文件: src/eval.c Patch 7.4.703 问题: Compiler warning for start_dir unused when building unittests. 解决方案: Move start_dir inside the #ifdef. 相关文件: src/main.c Patch 7.4.704 问题: Searching for a character matches an illegal byte and causes invalid memory access. (Dominique Pelle) 解决方案: Do not match an invalid byte when search for a character in a string. Fix equivalence classes using negative numbers, which result in illegal bytes. 相关文件: src/misc2.c, src/regexp.c, src/testdir/test44.in Patch 7.4.705 问题: Can't build with Ruby 2.2. 解决方案: Add #ifdefs to handle the incompatible change. (Andrei Olsen) 相关文件: src/if_ruby.c Patch 7.4.706 问题: Window drawn wrong when 'laststatus' is zero and there is a command-line window. (Yclept Nemo) 解决方案: Set the status height a bit later. (Christian Brabandt) 相关文件: src/window.c Patch 7.4.707 问题: Undo files can have their executable bit set. 解决方案: Strip of the executable bit. (Mikael Berthe) 相关文件: src/undo.c Patch 7.4.708 问题: gettext() is called too often. 解决方案: Do not call gettext() for messages until they are actually used. (idea by Yasuhiro Matsumoto) 相关文件: src/eval.c Patch 7.4.709 问题: ":tabmove" does not work as documented. 解决方案: Make it work consistently. Update documentation and add tests. (Hirohito Higashi) 相关文件: src/window.c, runtime/doc/tabpage.txt, src/ex_docmd.c, src/testdir/test62.in, src/testdir/test62.ok Patch 7.4.710 问题: It is not possible to make spaces visible in list mode. 解决方案: Add the "space" item to 'listchars'. (David Bürgin, issue 350) 相关文件: runtime/doc/options.txt, src/globals.h, src/message.h, src/screen.c, src/testdir/test_listchars.in, src/testdir/test_listchars.ok, src/testdir/Make_amiga.mak, src/testdir/Make_dos.mak, src/testdir/Make_ming.mak, src/testdir/Make_os2.mak, src/testdir/Make_vms.mms, src/testdir/Makefile Patch 7.4.711 (after 7.4.710) 问题: Missing change in one file. 解决方案: Also change option.c 相关文件: src/option.c Patch 7.4.712 (after 7.4.710) 问题: Missing change in another file. 解决方案: Also change message.c 相关文件: src/message.c Patch 7.4.713 问题: Wrong condition for #ifdef. 解决方案: Change USR_EXRC_FILE2 to USR_VIMRC_FILE2. (Mikael Fourrier) 相关文件: src/os_unix.h Patch 7.4.714 问题: Illegal memory access when there are illegal bytes. 解决方案: Check the byte length of the character. (Dominique Pelle) 相关文件: src/regexp.c Patch 7.4.715 问题: Invalid memory access when there are illegal bytes. 解决方案: Get the length from the text, not from the character. (Dominique Pelle) 相关文件: src/regexp_nfa.c Patch 7.4.716 问题: When using the 'c' flag of ":substitute" and selecting "a" or "l" at the prompt the flags are not remembered for ":&&". (Ingo Karkat) 解决方案: Save the flag values and restore them. (Hirohito Higashi) 相关文件: src/ex_cmds.c Patch 7.4.717 问题: ":let list += list" can change a locked list. 解决方案: Check for the lock earlier. (Olaf Dabrunz) 相关文件: src/eval.c, src/testdir/test55.in, src/testdir/test55.ok Patch 7.4.718 问题: Autocommands triggered by quickfix cannot get the current title value. 解决方案: Set w:quickfix_title earlier. (Yannick) Also move the check for a title into the function. 相关文件: src/quickfix.c Patch 7.4.719 问题: Overflow when adding MAXCOL to a pointer. 解决方案: Subtract pointers instead. (James McCoy) 相关文件: src/screen.c Patch 7.4.720 问题: Can't build with Visual Studio 2015. 解决方案: Recognize the "version 14" numbers and omit /nodefaultlib when appropriate. (Paul Moore) 相关文件: src/Make_mvc.mak Patch 7.4.721 问题: When 'list' is set Visual mode does not highlight anything in empty lines. (mgaleski) 解决方案: Check the value of lcs_eol in another place. (Christian Brabandt) 相关文件: src/screen.c Patch 7.4.722 问题: 0x202f is not recognized as a non-breaking space character. 解决方案: Add 0x202f to the list. (Christian Brabandt) 相关文件: runtime/doc/options.txt, src/message.c, src/screen.c Patch 7.4.723 问题: For indenting, finding the C++ baseclass can be slow. 解决方案: Cache the result. (Hirohito Higashi) 相关文件: src/misc1.c Patch 7.4.724 问题: Vim icon does not show in Windows context menu. (issue 249) 解决方案: Load the icon in GvimExt. 相关文件: src/GvimExt/gvimext.cpp, src/GvimExt/gvimext.h Patch 7.4.725 问题: ":call setreg('"', [])" reports an internal error. 解决方案: Make the register empty. (Yasuhiro Matsumoto) 相关文件: src/ops.c Patch 7.4.726 (after 7.4.724) 问题: Cannot build GvimExt. 解决方案: Set APPVER to 5.0. (KF Leong) 相关文件: src/GvimExt/Makefile Patch 7.4.727 (after 7.4.724) 问题: Cannot build GvimExt with MingW. 解决方案: Add -lgdi32. (KF Leong) 相关文件: src/GvimExt/Make_ming.mak Patch 7.4.728 问题: Can't build with some version of Visual Studio 2015. 解决方案: Recognize another version 14 number. (Sinan) 相关文件: src/Make_mvc.mak Patch 7.4.729 (after 7.4.721) 问题: Occasional crash with 'list' set. 解决方案: Fix off-by-one error. (Christian Brabandt) 相关文件: src/screen.c Patch 7.4.730 问题: When setting the crypt key and using a swap file, text may be encrypted twice or unencrypted text remains in the swap file. (Issue 369) 解决方案: Call ml_preserve() before re-encrypting. Set correct index for next pointer block. 相关文件: src/memfile.c, src/memline.c, src/proto/memline.pro, src/option.c Patch 7.4.731 问题: The tab menu shows "Close tab" even when it doesn't work. 解决方案: Don't show "Close tab" for the last tab. (John Marriott) 相关文件: src/gui_w48.c, src/gui_gtk_x11.c, src/gui_mac.c, src/gui_motif.c Patch 7.4.732 问题: The cursor line is not always updated for the "O" command. 解决方案: Reset the VALID_CROW flag. (Christian Brabandt) 相关文件: src/normal.c Patch 7.4.733 问题: test_listchars breaks on MS-Windows. (Kenichi Ito) 解决方案: Set fileformat to "unix". (Christian Brabandt) 相关文件: src/testdir/test_listchars.in Patch 7.4.734 问题: ml_get error when using "p" in a Visual selection in the last line. 解决方案: Change the behavior at the last line. (Yukihiro Nakadaira) 相关文件: src/normal.c, src/ops.c, src/testdir/test94.in, src/testdir/test94.ok Patch 7.4.735 问题: Wrong argument for sizeof(). 解决方案: Use a pointer argument. (Chris Hall) 相关文件: src/eval.c Patch 7.4.736 问题: Invalid memory access. 解决方案: Avoid going over the end of a NUL terminated string. (Dominique Pelle) 相关文件: src/regexp.c Patch 7.4.737 问题: On MS-Windows vimgrep over arglist doesn't work (Issue 361) 解决方案: Only escape backslashes in ## expansion when it is not used as the path separator. (James McCoy) 相关文件: src/ex_docmd.c Patch 7.4.738 (after 7.4.732) 问题: Can't compile without the syntax highlighting feature. 解决方案: Add #ifdef around use of w_p_cul. (Hirohito Higashi) 相关文件: src/normal.c, src/screen.c Patch 7.4.739 问题: In a string "\U" only takes 4 digits, while after CTRL-V U eight digits can be used. 解决方案: Make "\U" also take eight digits. (Christian Brabandt) 相关文件: src/eval.c Patch 7.4.740 问题: ":1quit" works like ":.quit". (Bohr Shaw) 解决方案: Don't exit Vim when a range is specified. (Christian Brabandt) 相关文件: src/ex_docmd.c, src/testdir/test13.in, src/testdir/test13.ok Patch 7.4.741 问题: When using += with ":set" a trailing comma is not recognized. (Issue 365) 解决方案: Don't add a second comma. Add a test. (partly by Christian Brabandt) 相关文件: src/option.c, src/testdir/test_set.in, src/testdir/test_set.ok, src/testdir/Make_amiga.mak, src/testdir/Make_dos.mak, src/testdir/Make_ming.mak, src/testdir/Make_os2.mak, src/testdir/Make_vms.mms, src/testdir/Makefile Patch 7.4.742 问题: Cannot specify a vertical split when loading a buffer for a quickfix command. 解决方案: Add the "vsplit" value to 'switchbuf'. (Brook Hong) 相关文件: runtime/doc/options.txt, src/buffer.c, src/option.h Patch 7.4.743 问题: "p" in Visual mode causes an unexpected line split. 解决方案: Advance the cursor first. (Yukihiro Nakadaira) 相关文件: src/ops.c, src/testdir/test94.in, src/testdir/test94.ok Patch 7.4.744 问题: No tests for Ruby and Perl. 解决方案: Add minimal tests. (Ken Takata) 相关文件: src/testdir/test_perl.in, src/testdir/test_perl.ok, src/testdir/test_ruby.in, src/testdir/test_ruby.ok, src/testdir/Make_amiga.mak, src/testdir/Make_dos.mak, src/testdir/Make_ming.mak, src/testdir/Make_os2.mak, src/testdir/Make_vms.mms, src/testdir/Makefile Patch 7.4.745 问题: The entries added by matchaddpos() are returned by getmatches() but can't be set with setmatches(). (Lcd) 解决方案: Fix setmatches(). (Christian Brabandt) 相关文件: src/eval.c, src/testdir/test63.in, src/testdir/test63.ok Patch 7.4.746 问题: ":[count]tag" is not always working. (cs86661) 解决方案: Set cur_match a bit later. (Hirohito Higashi) 相关文件: src/tag.c, Patch 7.4.747 问题: ":cnext" may jump to the wrong column when setting 'virtualedit=all' (cs86661) 解决方案: Reset the coladd field. (Hirohito Higashi) 相关文件: src/quickfix.c Patch 7.4.748 (after 7.4.745) 问题: Buffer overflow. 解决方案: Make the buffer larger. (Kazunobu Kuriyama) 相关文件: src/eval.c Patch 7.4.749 (after 7.4.741) 问题: For some options two consecutive commas are OK. (Nikolai Pavlov) 解决方案: Add the P_ONECOMMA flag. 相关文件: src/option.c Patch 7.4.750 问题: Cannot build with clang 3.5 on Cygwin with perl enabled. 解决方案: Strip "-fdebug-prefix-map" in configure. (Ken Takata) 相关文件: src/configure.in, src/auto/configure Patch 7.4.751 问题: It is not obvious how to enable the address sanitizer. 解决方案: Add commented-out flags in the Makefile. (Dominique Pelle) Also add missing test targets. 相关文件: src/Makefile Patch 7.4.752 问题: Unicode 8.0 not supported. 解决方案: Update tables for Unicode 8.0. Avoid E36 when running the script. (James McCoy) 相关文件: runtime/tools/unicode.vim, src/mbyte.c Patch 7.4.753 问题: Appending in Visual mode with 'linebreak' set does not work properly. Also when 'selection' is "exclusive". (Ingo Karkat) 解决方案: Recalculate virtual columns. (Christian Brabandt) 相关文件: src/normal.c, src/testdir/test_listlbr.in, src/testdir/test_listlbr.ok, src/testdir/test_listlbr_utf8.in, src/testdir/test_listlbr_utf8.ok Patch 7.4.754 问题: Using CTRL-A in Visual mode does not work well. (Gary Johnson) 解决方案: Make it increment all numbers in the Visual area. (Christian Brabandt) 相关文件: runtime/doc/change.txt, src/normal.c, src/ops.c, src/proto/ops.pro, src/testdir/Make_amiga.mak, src/testdir/Make_dos.mak, src/testdir/Make_ming.mak, src/testdir/Make_os2.mak, src/testdir/Make_vms.mms, src/testdir/Makefile, src/testdir/test_increment.in, src/testdir/test_increment.ok Patch 7.4.755 问题: It is not easy to count the number of characters. 解决方案: Add the skipcc argument to strchars(). (Hirohito Higashi, Ken Takata) 相关文件: runtime/doc/eval.txt, src/eval.c, src/testdir/test_utf8.in, src/testdir/test_utf8.ok Patch 7.4.756 问题: Can't use strawberry Perl 5.22 x64 on MS-Windows. 解决方案: Add new defines and #if. (Ken Takata) 相关文件: src/Make_cyg_ming.mak, src/Make_mvc.mak, src/if_perl.xs Patch 7.4.757 问题: Cannot detect the background color of a terminal. 解决方案: Add T_RBG to request the background color if possible. (Lubomir Rintel) 相关文件: src/main.c, src/term.c, src/term.h, src/proto/term.pro Patch 7.4.758 问题: When 'conceallevel' is 1 and quitting the command-line window with CTRL-C the first character ':' is erased. 解决方案: Reset 'conceallevel' in the command-line window. (Hirohito Higashi) 相关文件: src/ex_getln.c Patch 7.4.759 问题: Building with Lua 5.3 doesn't work, symbols have changed. 解决方案: Use the new names for the new version. (Felix Schnizlein) 相关文件: src/if_lua.c Patch 7.4.760 问题: Spelling mistakes are not displayed after ":syn spell". 解决方案: Force a redraw after ":syn spell" command. (Christian Brabandt) 相关文件: src/syntax.c Patch 7.4.761 (after 7.4.757) 问题: The request-background termcode implementation is incomplete. 解决方案: Add the missing pieces. 相关文件: src/option.c, src/term.c Patch 7.4.762 (after 7.4.757) 问题: Comment for may_req_bg_color() is wrong. (Christ van Willegen) 解决方案: Rewrite the comment. 相关文件: src/term.c Patch 7.4.763 (after 7.4.759) 问题: Building with Lua 5.1 doesn't work. 解决方案: Define lua_replace and lua_remove. (KF Leong) 相关文件: src/if_lua.c Patch 7.4.764 (after 7.4.754) 问题: test_increment fails on MS-Windows. (Ken Takata) 解决方案: Clear Visual mappings. (Taro Muraoka) 相关文件: src/testdir/test_increment.in Patch 7.4.765 (after 7.4.754) 问题: CTRL-A and CTRL-X in Visual mode do not always work well. 解决方案: Improvements for increment and decrement. (Christian Brabandt) 相关文件: src/normal.c, src/ops.c, src/testdir/test_increment.in, src/testdir/test_increment.ok Patch 7.4.766 (after 7.4.757) 问题: Background color check does not work on Tera Term. 解决方案: Also recognize ST as a termination character. (Hirohito Higashi) 相关文件: src/term.c Patch 7.4.767 问题: --remote-tab-silent can fail on MS-Windows. 解决方案: Use single quotes to avoid problems with backslashes. (Idea by Weiyong Mao) 相关文件: src/main.c Patch 7.4.768 问题: :diffoff only works properly once. 解决方案: Also make :diffoff work when used a second time. (Olaf Dabrunz) 相关文件: src/diff.c Patch 7.4.769 (after 7.4 768) 问题: Behavior of :diffoff is not tested. 解决方案: Add a bit of testing. (Olaf Dabrunz) 相关文件: src/testdir/test47.in, src/testdir/test47.ok Patch 7.4.770 (after 7.4.766) 问题: Background color response with transparency is not ignored. 解决方案: Change the way escape sequences are recognized. (partly by Hirohito Higashi) 相关文件: src/ascii.h, src/term.c Patch 7.4.771 问题: Search does not handle multi-byte character at the start position correctly. 解决方案: Take byte size of character into account. (Yukihiro Nakadaira) 相关文件: src/search.c, src/testdir/Make_amiga.mak, src/testdir/Make_dos.mak, src/testdir/Make_ming.mak, src/testdir/Make_os2.mak, src/testdir/Make_vms.mms, src/testdir/Makefile, src/testdir/test_search_mbyte.in, src/testdir/test_search_mbyte.ok Patch 7.4.772 问题: Racket 6.2 is not supported on MS-Windows. 解决方案: Check for the "racket" subdirectory. (Weiyong Mao) 相关文件: src/Make_mvc.mak, src/if_mzsch.c Patch 7.4.773 问题: 'langmap' is used in command-line mode when checking for mappings. Issue 376. 解决方案: Do not use 'langmap' in command-line mode. (Larry Velazquez) 相关文件: src/getchar.c, src/testdir/test_mapping.in, src/testdir/test_mapping.ok Patch 7.4.774 问题: When using the CompleteDone autocommand event it's difficult to get to the completed items. 解决方案: Add the v:completed_items variable. (Shougo Matsu) 相关文件: runtime/doc/autocmd.txt, runtime/doc/eval.txt, src/edit.c, src/eval.c, src/macros.h, src/proto/eval.pro, src/vim.h Patch 7.4.775 问题: It is not possible to avoid using the first item of completion. 解决方案: Add the "noinsert" and "noselect" values to 'completeopt'. (Shougo Matsu) 相关文件: runtime/doc/options.txt, src/edit.c, src/option.c Patch 7.4.776 问题: Equivalence class for 'd' does not work correctly. 解决方案: Fix 0x1e0f and 0x1d0b. (Dominique Pelle) 相关文件: src/regexp.c, src/regexp_nfa.c Patch 7.4.777 问题: The README file doesn't look nice on github. 解决方案: Add a markdown version of the README file. 相关文件: Filelist, README.md Patch 7.4.778 问题: Coverity warns for uninitialized variable. 解决方案: Change condition of assignment. 相关文件: src/ops.c Patch 7.4.779 问题: Using CTRL-A in a line without a number moves the cursor. May cause a crash when at the start of the line. (Urtica Dioica) 解决方案: Do not move the cursor if no number was changed. 相关文件: src/ops.c Patch 7.4.780 问题: Compiler complains about uninitialized variable and clobbered variables. 解决方案: Add Initialization. Make variables static. 相关文件: src/ops.c, src/main.c Patch 7.4.781 问题: line2byte() returns one less when 'bin' and 'noeol' are set. 解决方案: Only adjust the size for the last line. (Rob Wu) 相关文件: src/memline.c Patch 7.4.782 问题: Still a few problems with CTRL-A and CTRL-X in Visual mode. 解决方案: Fix the reported problems. (Christian Brabandt) 相关文件: src/charset.c, src/eval.c, src/ex_cmds.c, src/ex_getln.c, src/misc2.c, src/normal.c, src/ops.c, src/option.c, src/proto/charset.pro, src/testdir/test_increment.in, src/testdir/test_increment.ok Patch 7.4.783 问题: copy_chars() and copy_spaces() are inefficient. 解决方案: Use memset() instead. (Dominique Pelle) 相关文件: src/ex_getln.c, src/misc2.c, src/ops.c, src/proto/misc2.pro, src/screen.c Patch 7.4.784 问题: Using both "noinsert" and "noselect" in 'completeopt' does not work properly. 解决方案: Change the ins_complete() calls. (Ozaki Kiichi) 相关文件: src/edit.c Patch 7.4.785 问题: On some systems automatically adding the missing EOL causes problems. Setting 'binary' has too many side effects. 解决方案: Add the 'fixeol' option, default on. (Pavel Samarkin) 相关文件: src/buffer.c, src/fileio.c, src/memline.c, src/netbeans.c, src/ops.c, src/option.c, src/option.h, src/os_unix.c, src/os_win32.c, src/structs.h, src/testdir/Make_amiga.mak, src/testdir/Make_dos.mak, src/testdir/Make_ming.mak, src/testdir/Make_os2.mak, src/testdir/Make_vms.mms, src/testdir/Makefile, src/testdir/test_fixeol.in, src/testdir/test_fixeol.ok, runtime/doc/options.txt, runtime/optwin.vim Patch 7.4.786 问题: It is not possible for a plugin to adjust to a changed setting. 解决方案: Add the OptionSet autocommand event. (Christian Brabandt) 相关文件: runtime/doc/autocmd.txt, runtime/doc/eval.txt, src/eval.c, src/fileio.c, src/option.c, src/proto/eval.pro, src/testdir/Make_amiga.mak, src/testdir/Make_dos.mak, src/testdir/Make_ming.mak, src/testdir/Make_os2.mak, src/testdir/Make_vms.mms, src/testdir/Makefile, src/testdir/test_autocmd_option.in, src/testdir/test_autocmd_option.ok, src/vim.h Patch 7.4.787 (after 7.4.786) 问题: snprintf() isn't available everywhere. 解决方案: Use vim_snprintf(). (Ken Takata) 相关文件: src/option.c Patch 7.4.788 (after 7.4.787) 问题: Can't build without the crypt feature. (John Marriott) 解决方案: Add #ifdef's. 相关文件: src/option.c Patch 7.4.789 (after 7.4.788) 问题: Using freed memory and crash. (Dominique Pelle) 解决方案: Correct use of pointers. (Hirohito Higashi) 相关文件: src/option.c Patch 7.4.790 (after 7.4.786) 问题: Test fails when the autochdir feature is not available. Test output contains the test script. 解决方案: Check for the autochdir feature. (Kazunobu Kuriyama) Only write the relevant test output. 相关文件: src/testdir/test_autocmd_option.in, src/testdir/test_autocmd_option.ok Patch 7.4.791 问题: The buffer list can be very long. 解决方案: Add an argument to ":ls" to specify the type of buffer to list. (Marcin Szamotulski) 相关文件: runtime/doc/windows.txt, src/buffer.c, src/ex_cmds.h Patch 7.4.792 问题: Can only conceal text by defining syntax items. 解决方案: Use matchadd() to define concealing. (Christian Brabandt) 相关文件: runtime/doc/eval.txt, src/eval.c, src/ex_docmd.c, src/proto/window.pro, src/screen.c, src/structs.h, src/testdir/Make_amiga.mak, src/testdir/Make_dos.mak, src/testdir/Make_ming.mak, src/testdir/Make_os2.mak, src/testdir/Make_vms.mms, src/testdir/Makefile, src/testdir/test_match_conceal.in, src/testdir/test_match_conceal.ok, src/window.c Patch 7.4.793 问题: Can't specify when not to ring the bell. 解决方案: Add the 'belloff' option. (Christian Brabandt) 相关文件: runtime/doc/options.txt, src/edit.c, src/ex_getln.c, src/hangulin.c, src/if_lua.c, src/if_mzsch.c, src/if_tcl.c, src/message.c, src/misc1.c, src/normal.c, src/option.c, src/option.h, src/proto/misc1.pro, src/search.c, src/spell.c Patch 7.4.794 问题: Visual Studio 2015 is not recognized. 解决方案: Add the version numbers to the makefile. (Taro Muraoka) 相关文件: src/Make_mvc.mak Patch 7.4.795 问题: The 'fixeol' option is not copied to a new window. 解决方案: Copy the option value. (Yasuhiro Matsumoto) 相关文件: src/option.c Patch 7.4.796 问题: Warning from 64 bit compiler. 解决方案: Add type cast. (Mike Williams) 相关文件: src/ops.c Patch 7.4.797 问题: Crash when using more lines for the command line than 'maxcombine'. 解决方案: Use the correct array index. Also, do not try redrawing when exiting. And use screen_Columns instead of Columns. 相关文件: src/screen.c Patch 7.4.798 (after 7.4.753) 问题: Repeating a change in Visual mode does not work as expected. (Urtica Dioica) 解决方案: Make redo in Visual mode work better. (Christian Brabandt) 相关文件: src/normal.c, src/testdir/test_listlbr.in, src/testdir/test_listlbr.ok Patch 7.4.799 问题: Accessing memory before an allocated block. 解决方案: Check for not going before the start of a pattern. (Dominique Pelle) 相关文件: src/fileio.c Patch 7.4.800 问题: Using freed memory when triggering CmdUndefined autocommands. 解决方案: Set pointer to NULL. (Dominique Pelle) 相关文件: src/ex_docmd.c Patch 7.4.801 (after 7.4.769) 问题: Test for ":diffoff" doesn't catch all potential problems. 解决方案: Add a :diffthis and a :diffoff command. (Olaf Dabrunz) 相关文件: src/testdir/test47.in Patch 7.4.802 问题: Using "A" in Visual mode while 'linebreak' is set is not tested. 解决方案: Add a test for this, verifies the problem is fixed. (Ingo Karkat) 相关文件: src/testdir/test39.in, src/testdir/test39.ok Patch 7.4.803 问题: C indent does not support C11 raw strings. (Mark Lodato) 解决方案: Do not change indent inside the raw string. 相关文件: src/search.c, src/misc1.c, src/edit.c, src/ops.c, src/testdir/test3.in, src/testdir/test3.ok Patch 7.4.804 问题: Xxd doesn't have a license notice. 解决方案: Add license as indicated by Juergen. 相关文件: src/xxd/xxd.c Patch 7.4.805 问题: The ruler shows "Bot" even when there are only filler lines missing. (Gary Johnson) 解决方案: Use "All" when the first line and one filler line are visible. 相关文件: src/buffer.c Patch 7.4.806 问题: CTRL-A in Visual mode doesn't work properly with "alpha" in 'nrformats'. 解决方案: Make it work. (Christian Brabandt) 相关文件: src/ops.c, src/testdir/test_increment.in, src/testdir/test_increment.ok Patch 7.4.807 (after 7.4.798) 问题: After CTRL-V CTRL-A mode isn't updated. (Hirohito Higashi) 解决方案: Clear the command line or update the displayed command. 相关文件: src/normal.c Patch 7.4.808 问题: On MS-Windows 8 IME input doesn't work correctly. 解决方案: Read console input before calling MsgWaitForMultipleObjects(). (vim-jp, Nobuhiro Takasaki) 相关文件: src/os_win32.c Patch 7.4.809 (after 7.4.802) 问题: Test is duplicated. 解决方案: Roll back 7.4.802. 相关文件: src/testdir/test39.in, src/testdir/test39.ok Patch 7.4.810 问题: With a sequence of commands using buffers in diff mode E749 is given. (itchyny) 解决方案: Skip unloaded buffer. (Hirohito Higashi) 相关文件: src/diff.c Patch 7.4.811 问题: Invalid memory access when using "exe 'sc'". 解决方案: Avoid going over the end of the string. (Dominique Pelle) 相关文件: src/ex_docmd.c Patch 7.4.812 问题: Gcc sanitizer complains about using a NULL pointer to memmove(). 解决方案: Only call memmove when there is something to move. (Vittorio Zecca) 相关文件: src/memline.c Patch 7.4.813 问题: It is not possible to save and restore character search state. 解决方案: Add getcharsearch() and setcharsearch(). (James McCoy) 相关文件: runtime/doc/eval.txt, src/eval.c, src/proto/search.pro, src/search.c, src/testdir/test_charsearch.in, src/testdir/test_charsearch.ok, src/testdir/Makefile, src/testdir/Make_amiga.mak, src/testdir/Make_dos.mak, src/testdir/Make_ming.mak, src/testdir/Make_os2.mak, src/testdir/Make_vms.mms Patch 7.4.814 问题: Illegal memory access with "sy match a fold". 解决方案: Check for empty string. (Dominique Pelle) 相关文件: src/syntax.c Patch 7.4.815 问题: Invalid memory access when doing ":call g:". 解决方案: Check for an empty name. (Dominique Pelle) 相关文件: src/eval.c Patch 7.4.816 问题: Invalid memory access when doing ":fun X(". 解决方案: Check for missing ')'. (Dominique Pelle) 相关文件: src/eval.c Patch 7.4.817 问题: Invalid memory access in file_pat_to_reg_pat(). 解决方案: Use vim_isspace() instead of checking for a space only. (Dominique Pelle) 相关文件: src/fileio.c Patch 7.4.818 问题: 'linebreak' breaks c% if the last Visual selection was block. (Chris Morganiser, Issue 389) 解决方案: Handle Visual block mode differently. (Christian Brabandt) 相关文件: src/normal.c, src/testdir/test_listlbr.in, src/testdir/test_listlbr.ok Patch 7.4.819 问题: Beeping when running the tests. 解决方案: Fix 41 beeps. (Roland Eggner) 相关文件: src/testdir/test17.in, src/testdir/test29.in, src/testdir/test4.in, src/testdir/test61.in, src/testdir/test82.in, src/testdir/test83.in, src/testdir/test90.in, src/testdir/test95.in, src/testdir/test_autoformat_join.in Patch 7.4.820 问题: Invalid memory access in file_pat_to_reg_pat. 解决方案: Avoid looking before the start of a string. (Dominique Pelle) 相关文件: src/fileio.c Patch 7.4.821 问题: Coverity reports a few problems. 解决方案: Avoid the warnings. (Christian Brabandt) 相关文件: src/ex_docmd.c, src/option.c, src/screen.c Patch 7.4.822 问题: More problems reported by coverity. 解决方案: Avoid the warnings. (Christian Brabandt) 相关文件: src/os_unix.c, src/eval.c, src/ex_cmds.c, src/ex_cmds2.c, src/ex_getln.c, src/fold.c, src/gui.c, src/gui_w16.c, src/gui_w32.c, src/if_cscope.c, src/if_xcmdsrv.c, src/move.c, src/normal.c, src/regexp.c, src/syntax.c, src/ui.c, src/window.c Patch 7.4.823 问题: Cursor moves after CTRL-A on alphabetic character. 解决方案: (Hirohito Higashi, test by Christian Brabandt) 相关文件: src/testdir/test_increment.in, src/testdir/test_increment.ok, src/ops.c Patch 7.4.824 (after 7.4.813) 问题: Can't compile without the multi-byte feature. (John Marriott) 解决方案: Add #ifdef. 相关文件: src/eval.c Patch 7.4.825 问题: Invalid memory access for ":syn keyword x a[". 解决方案: Do not skip over the NUL. (Dominique Pelle) 相关文件: src/syntax.c Patch 7.4.826 问题: Compiler warnings and errors. 解决方案: Make it build properly without the multi-byte feature. 相关文件: src/eval.c, src/search.c Patch 7.4.827 问题: Not all test targets are in the Makefile. 解决方案: Add the missing targets. 相关文件: src/Makefile Patch 7.4.828 问题: Crash when using "syn keyword x c". (Dominique Pelle) 解决方案: Initialize the keyword table. (Raymond Ko, PR 397) 相关文件: src/syntax.c Patch 7.4.829 问题: Crash when clicking in beval balloon. (Travis Lebsock) 解决方案: Use PostMessage() instead of DestroyWindow(). (Raymond Ko, PR 298) 相关文件: src/gui_w32.c Patch 7.4.830 问题: Resetting 'encoding' when doing ":set all&" causes problems. (Bjorn Linse) Display is not updated. 解决方案: Do not reset 'encoding'. Do a full redraw. 相关文件: src/option.c Patch 7.4.831 问题: When expanding =expr on the command line and encountering an error, the command is executed anyway. 解决方案: Bail out when an error is detected. 相关文件: src/misc1.c Patch 7.4.832 问题: $HOME in `=$HOME . '/.vimrc'` is expanded too early. 解决方案: Skip over =expr when expanding environment names. 相关文件: src/misc1.c Patch 7.4.833 问题: More side effects of ":set all&" are missing. (Björn Linse) 解决方案: Call didset_options() and add didset_options2() to collect more side effects to take care of. Still not everything... 相关文件: src/option.c Patch 7.4.834 问题: gettabvar() doesn't work after Vim start. (Szymon Wrozynski) 解决方案: Handle first window in tab still being NULL. (Christian Brabandt) 相关文件: src/eval.c, src/testdir/test91.in, src/testdir/test91.ok Patch 7.4.835 问题: Comparing utf-8 sequences does not handle different byte sizes correctly. 解决方案: Get the byte size of each character. (Dominique Pelle) 相关文件: src/misc2.c Patch 7.4.836 问题: Accessing uninitialized memory. 解决方案: Add missing calls to init_tv(). (Dominique Pelle) 相关文件: src/eval.c Patch 7.4.837 问题: Compiler warning with MSVC compiler when using +sniff. 解决方案: Use Sleep() instead of _sleep(). (Tux) 相关文件: src/if_sniff.c Patch 7.4.838 (after 7.4.833) 问题: Can't compile without the crypt feature. (John Marriott) 解决方案: Add #ifdef. 相关文件: src/option.c Patch 7.4.839 问题: Compiler warning on 64-bit system. 解决方案: Add cast to int. (Mike Williams) 相关文件: src/search.c Patch 7.4.840 (after 7.4.829) 问题: Tooltip window stays open. 解决方案: Send a WM_CLOSE message. (Jurgen Kramer) 相关文件: src/gui_w32.c Patch 7.4.841 问题: Can't compile without the multi-byte feature. (John Marriott) 解决方案: Add more #ifdef's. 相关文件: src/option.c Patch 7.4.842 (after 7.4.840) 问题: Sending too many messages to close the balloon. 解决方案: Only send a WM_CLOSE message. (Jurgen Kramer) 相关文件: src/gui_w32.c Patch 7.4.843 (after 7.4.835) 问题: Still possible to go beyond the end of a string. 解决方案: Check for NUL also in second string. (Dominique Pelle) 相关文件: src/misc2.c Patch 7.4.844 问题: When '#' is in 'isident' the is# comparator doesn't work. 解决方案: Don't use vim_isIDc(). (Yasuhiro Matsumoto) 相关文件: src/eval.c, src/testdir/test_comparators.in, src/testdir/test_comparators.ok, src/testdir/Makefile, src/testdir/Make_amiga.mak, src/testdir/Make_dos.mak, src/testdir/Make_ming.mak, src/testdir/Make_os2.mak, src/testdir/Make_vms.mms Patch 7.4.845 问题: Compiler warning for possible loss of data. 解决方案: Add a type cast. (Erich Ritz) 相关文件: src/misc1.c Patch 7.4.846 问题: Some GitHub users don't know how to use issues. 解决方案: Add a file that explains the basics of contributing. 相关文件: Filelist, CONTRIBUTING.md Patch 7.4.847 问题: "vi)d" may leave a character behind. 解决方案: Skip over multi-byte character. (Christian Brabandt) 相关文件: src/search.c Patch 7.4.848 问题: CTRL-A on hex number in Visual block mode is incorrect. 解决方案: Account for the "0x". (Hirohito Higashi) 相关文件: src/charset.c, src/testdir/test_increment.in, src/testdir/test_increment.ok Patch 7.4.849 问题: Moving the cursor in Insert mode starts new undo sequence. 解决方案: Add CTRL-G U to keep the undo sequence for the following cursor movement command. (Christian Brabandt) 相关文件: runtime/doc/insert.txt, src/edit.c, src/testdir/test_mapping.in, src/testdir/test_mapping.ok Patch 7.4.850 (after 7.4.846) 问题: <Esc> does not show up. 解决方案: Use &gt; and &lt;. (Kazunobu Kuriyama) 相关文件: CONTRIBUTING.md Patch 7.4.851 问题: Saving and restoring the console buffer does not work properly. 解决方案: Instead of ReadConsoleOutputA/WriteConsoleOutputA use CreateConsoleScreenBuffer and SetConsoleActiveScreenBuffer. (Ken Takata) 相关文件: src/os_win32.c Patch 7.4.852 问题: On MS-Windows console Vim uses ANSI APIs for keyboard input and console output, it cannot input/output Unicode characters. 解决方案: Use Unicode APIs for console I/O. (Ken Takata, Yasuhiro Matsumoto) 相关文件: src/os_win32.c, src/ui.c, runtime/doc/options.txt Patch 7.4.853 问题: "zt" in diff mode does not always work properly. (Gary Johnson) 解决方案: Don't count filler lines twice. (Christian Brabandt) 相关文件: src/move.c Patch 7.4.854 (after 7.4.850) 问题: Missing information about runtime files. 解决方案: Add section about runtime files. (Christian Brabandt) 相关文件: CONTRIBUTING.md Patch 7.4.855 问题: GTK: font glitches for combining characters 解决方案: Use pango_shape_full() instead of pango_shape(). (luchr, PR #393) 相关文件: src/gui_gtk_x11.c Patch 7.4.856 问题: "zt" still doesn't work well with filler lines. (Gary Johnson) 解决方案: Check for filler lines above the cursor. (Christian Brabandt) 相关文件: src/move.c Patch 7.4.857 问题: Dragging the current tab with the mouse doesn't work properly. 解决方案: Take the current tabpage index into account. (Hirohito Higashi) 相关文件: src/normal.c Patch 7.4.858 问题: It's a bit clumsy to execute a command on a list of matches. 解决方案: Add the ":ldo", ":lfdo", ":cdo" and ":cfdo" commands. (Yegappan Lakshmanan) 相关文件: runtime/doc/cmdline.txt, runtime/doc/editing.txt, runtime/doc/index.txt, runtime/doc/quickfix.txt, runtime/doc/tabpage.txt, runtime/doc/windows.txt, src/ex_cmds.h, src/ex_cmds2.c, src/ex_docmd.c, src/proto/quickfix.pro, src/quickfix.c, src/testdir/Make_amiga.mak, src/testdir/Make_dos.mak, src/testdir/Make_ming.mak, src/testdir/Make_os2.mak, src/testdir/Make_vms.mms, src/testdir/Makefile, src/testdir/test_cdo.in, src/testdir/test_cdo.ok Patch 7.4.859 问题: Vim doesn't recognize all htmldjango files. 解决方案: Recognize a comment. (Daniel Hahler, PR #410) 相关文件: runtime/filetype.vim Patch 7.4.860 问题: Filetype detection is outdated. 解决方案: Include all recent and not-so-recent changes. 相关文件: runtime/filetype.vim Patch 7.4.861 (after 7.4.855) 问题: pango_shape_full() is not always available. 解决方案: Add a configure check. 相关文件: src/configure.in, src/auto/configure, src/config.h.in, src/gui_gtk_x11.c Patch 7.4.862 (after 7.4.861) 问题: Still problems with pango_shape_full() not available. 解决方案: Change AC_TRY_COMPILE to AC_TRY_LINK. 相关文件: src/configure.in, src/auto/configure Patch 7.4.863 (after 7.4.856) 问题: plines_nofill() used without the diff feature. 解决方案: Define PLINES_NOFILL(). 相关文件: src/macros.h, src/move.c Patch 7.4.864 (after 7.4.858) 问题: Tiny build fails. 解决方案: Put qf_ items inside #ifdef. 相关文件: src/ex_docmd.c Patch 7.4.865 问题: Compiler warning for uninitialized variable. 解决方案: Initialize. 相关文件: src/ex_cmds2.c Patch 7.4.866 问题: Crash when changing the 'tags' option from a remote command. (Benjamin Fritz) 解决方案: Instead of executing messages immediately, use a queue, like for netbeans. (James Kolb) 相关文件: src/ex_docmd.c, src/getchar.c, src/gui_gtk_x11.c, src/gui_w48.c, src/gui_x11.c, src/if_xcmdsrv.c, src/misc2.c, src/os_unix.c, src/proto/if_xcmdsrv.pro, src/proto/misc2.pro, src/macros.h Patch 7.4.867 (after 7.4.866) 问题: Can't build on MS-Windows. (Taro Muraoka) 解决方案: Adjust #ifdef. 相关文件: src/misc2.c Patch 7.4.868 问题: 'smarttab' is also effective when 'paste' is enabled. (Alexander Monakov) 解决方案: Disable 'smarttab' when 'paste' is set. (Christian Brabandt) Do the same for 'expandtab'. 相关文件: src/option.c, src/structs.h Patch 7.4.869 问题: MS-Windows: scrolling may cause text to disappear when using an Intel GPU. 解决方案: Call GetPixel(). (Yohei Endo) 相关文件: src/gui_w48.c Patch 7.4.870 问题: May get into an invalid state when using getchar() in an expression mapping. 解决方案: Anticipate mod_mask to change. (idea by Yukihiro Nakadaira) 相关文件: src/getchar.c Patch 7.4.871 问题: Vim leaks memory, when 'wildignore' filters out all matches. 解决方案: Free the files array when it becomes empty. 相关文件: src/misc1.c Patch 7.4.872 问题: Not using CI services available. 解决方案: Add configuration files for travis and appveyor. (Ken Takata, vim-jp, PR #401) 相关文件: .travis.yml, appveyor.yml, Filelist Patch 7.4.873 (after 7.4.866) 问题: Compiler warning for unused variable. (Tony Mechelynck) 解决方案: Remove the variable. Also fix int vs long_u mixup. 相关文件: src/if_xcmdsrv.c Patch 7.4.874 问题: MS-Windows: When Vim runs inside another application, the size isn't right. 解决方案: When in child mode compute the size differently. (Agorgianitis Loukas) 相关文件: src/gui_w48.c Patch 7.4.875 问题: Not obvious how to contribute. 解决方案: Add a remark about CONTRIBUTING.md to README.md 相关文件: README.md Patch 7.4.876 问题: Windows7: when using vim.exe with msys or msys2, conhost.exe (console window provider on Windows7) will freeze or crash. 解决方案: Make original screen buffer active, before executing external program. And when the program is finished, revert to vim's one. (Taro Muraoka) 相关文件: src/os_win32.c Patch 7.4.877 (after 7.4.843) 问题: ":find" sometimes fails. (Excanoe) 解决方案: Compare current characters instead of previous ones. 相关文件: src/misc2.c Patch 7.4.878 问题: Coverity error for clearing only one byte of struct. 解决方案: Clear the whole struct. (Dominique Pelle) 相关文件: src/ex_docmd.c Patch 7.4.879 问题: Can't see line numbers in nested function calls. 解决方案: Add line number to the file name. (Alberto Fanjul) 相关文件: src/eval.c Patch 7.4.880 问题: No build and coverage status. 解决方案: Add links to the README file. (Christian Brabandt) 相关文件: README.md Patch 7.4.881 (after 7.4.879) 问题: Test 49 fails. 解决方案: Add line number to check of call stack. 相关文件: src/testdir/test49.vim Patch 7.4.882 问题: When leaving the command line window with CTRL-C while a completion menu is displayed the menu isn't removed. 解决方案: Force a screen update. (Hirohito Higashi) 相关文件: src/edit.c Patch 7.4.883 (after 7.4.818) 问题: Block-mode replace works characterwise instead of blockwise after column 147. (Issue #422) 解决方案: Set Visual mode. (Christian Brabandt) 相关文件: src/normal.c, src/testdir/test_listlbr.in, src/testdir/test_listlbr.ok Patch 7.4.884 问题: Travis also builds on a tag push. 解决方案: Filter out tag pushes. (Kenichi Ito) 相关文件: .travis.yml Patch 7.4.885 问题: When doing an upwards search without wildcards the search fails if the initial directory doesn't exist. 解决方案: Fix the non-wildcard case. (Stefan Kempf) 相关文件: src/misc2.c Patch 7.4.886 (after 7.4.876) 问题: Windows7: Switching screen buffer causes flicker when using system(). 解决方案: Instead of actually switching screen buffer, duplicate the handle. (Yasuhiro Matsumoto) 相关文件: src/os_win32.c Patch 7.4.887 问题: Using uninitialized memory for regexp with back reference. (Dominique Pelle) 解决方案: Initialize end_lnum. 相关文件: src/regexp_nfa.c Patch 7.4.888 问题: The OptionSet autocommands are not triggered from setwinvar(). 解决方案: Do not use switch_win() when not needed. (Hirohito Higashi) 相关文件: src/eval.c Patch 7.4.889 问题: Triggering OptionSet from setwinvar() isn't tested. 解决方案: Add a test. (Christian Brabandt) 相关文件: src/testdir/test_autocmd_option.in, src/testdir/test_autocmd_option.ok Patch 7.4.890 问题: Build failure when using dynamic python but not python3. 解决方案: Adjust the #if to also include DYNAMIC_PYTHON3 and UNIX. 相关文件: src/if_python3.c Patch 7.4.891 问题: Indentation of array initializer is wrong. 解决方案: Avoid that calling find_start_rawstring() changes the position returned by find_start_comment(), add a test. (Hirohito Higashi) 相关文件: src/misc1.c, src/testdir/test3.in, src/testdir/test3.ok Patch 7.4.892 问题: On MS-Windows the iconv DLL may have a different name. 解决方案: Also try libiconv2.dll and libiconv-2.dll. (Yasuhiro Matsumoto) 相关文件: src/mbyte.c Patch 7.4.893 问题: C indenting is wrong below a "case (foo):" because it is recognized as a C++ base class construct. Issue #38. 解决方案: Check for the case keyword. 相关文件: src/misc1.c, src/testdir/test3.in, src/testdir/test3.ok Patch 7.4.894 问题: vimrun.exe is picky about the number of spaces before -s. 解决方案: Skip all spaces. (Cam Sinclair) 相关文件: src/vimrun.c Patch 7.4.895 问题: Custom command line completion does not work for a command containing digits. 解决方案: Skip over the digits. (suggested by Yasuhiro Matsumoto) 相关文件: src/ex_docmd.c Patch 7.4.896 问题: Editing a URL, which netrw should handle, doesn't work. 解决方案: Avoid changing slashes to backslashes. (Yasuhiro Matsumoto) 相关文件: src/fileio.c, src/os_mswin.c Patch 7.4.897 问题: Freeze and crash when there is a sleep in a remote command. (Karl Yngve Lervåg) 解决方案: Remove a message from the queue before dealing with it. (James Kolb) 相关文件: src/if_xcmdsrv.c Patch 7.4.898 问题: The 'fixendofline' option is set on with ":edit". 解决方案: Don't set the option when clearing a buffer. (Yasuhiro Matsumoto) 相关文件: src/buffer.c Patch 7.4.899 问题: README file is not optimal. 解决方案: Move buttons, update some text. (closes #460) 相关文件: README.txt, README.md Patch 7.4.900 (after 7.4.899) 问题: README file can still be improved 解决方案: Add a couple of links. (Christian Brabandt) 相关文件: README.md Patch 7.4.901 问题: When a BufLeave autocommand changes folding in a way it syncs undo, undo can be corrupted. 解决方案: Prevent undo sync. (Jacob Niehus) 相关文件: src/popupmnu.c Patch 7.4.902 问题: Problems with using the MS-Windows console. 解决方案: Revert patches 7.4.851, 7.4.876 and 7.4.886 until we find a better solution. (suggested by Ken Takata) 相关文件: src/os_win32.c Patch 7.4.903 问题: MS-Windows: When 'encoding' differs from the current code page, expanding wildcards may cause illegal memory access. 解决方案: Allocate a longer buffer. (Ken Takata) 相关文件: src/misc1.c Patch 7.4.904 问题: Vim does not provide .desktop files. 解决方案: Include and install .desktop files. (James McCoy, closes #455) 相关文件: Filelist, runtime/vim.desktop, runtime/gvim.desktop, src/Makefile Patch 7.4.905 问题: Python interface can produce error "vim.message' object has no attribute 'isatty'". 解决方案: Add dummy isatty(), readable(), etc. (closes #464) 相关文件: src/if_py_both.h, src/testdir/test86.in, src/testdir/test86.ok, src/testdir/test87.in, src/testdir/test87.ok Patch 7.4.906 问题: On MS-Windows the viminfo file is (always) given the hidden attribute. (raulnac) 解决方案: Check the hidden attribute in a different way. (Ken Takata) 相关文件: src/ex_cmds.c, src/os_win32.c, src/os_win32.pro Patch 7.4.907 问题: Libraries for dynamically loading interfaces can only be defined at compile time. 解决方案: Add options to specify the dll names. (Kazuki Sakamoto, closes #452) 相关文件: runtime/doc/if_lua.txt, runtime/doc/if_perl.txt, runtime/doc/if_pyth.txt, runtime/doc/if_ruby.txt, runtime/doc/options.txt, src/if_lua.c, src/if_perl.xs, src/if_python.c, src/if_python3.c, src/if_ruby.c, src/option.c, src/option.h Patch 7.4.908 (after 7.4.907) 问题: Build error with MingW compiler. (Cesar Romani) 解决方案: Change #if into #ifdef. 相关文件: src/if_perl.xs Patch 7.4.909 (after 7.4.905) 问题: "make install" fails. 解决方案: Only try installing desktop files if the destination directory exists. 相关文件: src/Makefile Patch 7.4.910 (after 7.4.905) 问题: Compiler complains about type punned pointer. 解决方案: Use another way to increment the ref count. 相关文件: src/if_py_both.h Patch 7.4.911 问题: t_Ce and t_Cs are documented but not supported. (Hirohito Higashi) 解决方案: Define the options. 相关文件: src/option.c Patch 7.4.912 问题: Wrong indenting for C++ constructor. 解决方案: Recognize ::. (Anhong) 相关文件: src/misc1.c, src/testdir/test3.in, src/testdir/test3.ok Patch 7.4.913 问题: No utf-8 support for the hangul input feature. 解决方案: Add utf-8 support. (Namsh) 相关文件: src/gui.c, src/hangulin.c, src/proto/hangulin.pro, src/screen.c, src/ui.c, runtime/doc/hangulin.txt, src/feature.h Patch 7.4.914 问题: New compiler warning: logical-not-parentheses 解决方案: Silence the warning. 相关文件: src/term.c Patch 7.4.915 问题: When removing from 'path' and then adding, a comma may go missing. (Malcolm Rowe) 解决方案: Fix the check for P_ONECOMMA. (closes #471) 相关文件: src/option.c, src/testdir/test_options.in, src/testdir/test_options.ok Patch 7.4.916 问题: When running out of memory while copying a dict memory may be freed twice. (ZyX) 解决方案: Do not call the garbage collector when running out of memory. 相关文件: src/misc2.c Patch 7.4.917 问题: Compiler warning for comparing signed and unsigned. 解决方案: Add a type cast. 相关文件: src/hangulin.c Patch 7.4.918 问题: A digit in an option name has problems. 解决方案: Rename 'python3dll' to 'pythonthreedll'. 相关文件: src/option.c, src/option.h, runtime/doc/options.txt Patch 7.4.919 问题: The dll options are not in the options window. 解决方案: Add the dll options. And other fixes. 相关文件: runtime/optwin.vim Patch 7.4.920 问题: The rubydll option is not in the options window. 解决方案: Add the rubydll option. 相关文件: runtime/optwin.vim Patch 7.4.921 (after 7.4.906) 问题: Missing proto file update. (Randall W. Morris) 解决方案: Add the missing line for mch_ishidden. 相关文件: src/proto/os_win32.pro Patch 7.4.922 问题: Leaking memory with ":helpt {dir-not-exists}". 解决方案: Free dirname. (Dominique Pelle) 相关文件: src/ex_cmds.c Patch 7.4.923 问题: Prototypes not always generated. 解决方案: Change #if to OR with PROTO. 相关文件: src/window.c Patch 7.4.924 问题: DEVELOPER_DIR gets reset by configure. 解决方案: Do not reset DEVELOPER_DIR when there is no --with-developer-dir argument. (Kazuki Sakamoto, closes #482) 相关文件: src/configure.in, src/auto/configure Patch 7.4.925 问题: User may yank or put using the register being recorded in. 解决方案: Add the recording register in the message. (Christian Brabandt, closes #470) 相关文件: runtime/doc/options.txt, runtime/doc/repeat.txt, src/ops.c, src/option.h, src/screen.c Patch 7.4.926 问题: Completing the longest match doesn't work properly with multi-byte characters. 解决方案: When using multi-byte characters use another way to find the longest match. (Hirohito Higashi) 相关文件: src/ex_getln.c, src/testdir/test_utf8.in, src/testdir/test_utf8.ok Patch 7.4.927 问题: Ruby crashes when there is a runtime error. 解决方案: Use ruby_options() instead of ruby_process_options(). (Damien) 相关文件: src/if_ruby.c Patch 7.4.928 问题: A clientserver message interrupts handling keys of a mapping. 解决方案: Have mch_inchar() send control back to WaitForChar when it is interrupted by server message. (James Kolb) 相关文件: src/os_unix.c Patch 7.4.929 问题: "gv" after paste selects one character less if 'selection' is "exclusive". 解决方案: Increment the end position. (Christian Brabandt) 相关文件: src/normal.c, src/testdir/test94.in, src/testdir/test94.ok Patch 7.4.930 问题: MS-Windows: Most users appear not to like the window border. 解决方案: Remove WS_EX_CLIENTEDGE. (Ian Halliday) 相关文件: src/gui_w32.c Patch 7.4.931 (after 7.4.929) 问题: Test 94 fails on some systems. 解决方案: Set 'encoding' to utf-8. 相关文件: src/testdir/test94.in Patch 7.4.932 (after 7.4.926) 问题: test_utf8 has confusing dummy command. 解决方案: Use a real command instead of a colon. 相关文件: src/testdir/test_utf8.in Patch 7.4.933 (after 7.4.926) 问题: Crash when using longest completion match. 解决方案: Fix array index. 相关文件: src/ex_getln.c Patch 7.4.934 问题: Appveyor also builds on a tag push. 解决方案: Add a skip_tags line. (Kenichi Ito, closes #489) 相关文件: appveyor.yml Patch 7.4.935 (after 7.4.932) 问题: test_utf8 fails on MS-Windows when executed with gvim. 解决方案: Use the insert flag on feedkeys() to put the string before the ":" that was already read when checking for available chars. 相关文件: src/testdir/test_utf8.in Patch 7.4.936 问题: Crash when dragging with the mouse. 解决方案: Add safety check for NULL pointer. Check mouse position for valid value. (Hirohito Higashi) 相关文件: src/window.c, src/term.c Patch 7.4.937 问题: Segfault reading uninitialized memory. 解决方案: Do not read match \z0, it does not exist. (Marius Gedminas, closes #497) 相关文件: src/regexp_nfa.c Patch 7.4.938 问题: X11 and GTK have more mouse buttons than Vim supports. 解决方案: Recognize more mouse buttons. (Benoit Pierre, closes #498) 相关文件: src/gui_gtk_x11.c, src/gui_x11.c Patch 7.4.939 问题: Memory leak when encountering a syntax error. 解决方案: Free the memory. (Dominique Pelle) 相关文件: src/ex_docmd.c Patch 7.4.940 问题: vt52 terminal codes are not correct. 解决方案: Move entries outside of #if. (Random) Adjustments based on documented codes. 相关文件: src/term.c Patch 7.4.941 问题: There is no way to ignore case only for tag searches. 解决方案: Add the 'tagcase' option. (Gary Johnson) 相关文件: runtime/doc/options.txt, runtime/doc/quickref.txt, runtime/doc/tagsrch.txt, runtime/doc/usr_29.txt, runtime/optwin.vim, src/Makefile, src/buffer.c, src/option.c, src/option.h, src/structs.h, src/tag.c, src/testdir/Make_amiga.mak, src/testdir/Make_dos.mak, src/testdir/Make_ming.mak, src/testdir/Make_os2.mak, src/testdir/Make_vms.mms, src/testdir/Makefile, src/testdir/test_tagcase.in, src/testdir/test_tagcase.ok Patch 7.4.942 (after 7.4.941) 问题: test_tagcase breaks for small builds. 解决方案: Bail out of the test early. (Hirohito Higashi) 相关文件: src/testdir/test_tagcase.in Patch 7.4.943 问题: Tests are not run. 解决方案: Add test_writefile to makefiles. (Ken Takata) 相关文件: src/testdir/Make_amiga.mak, src/testdir/Make_dos.mak, src/testdir/Make_ming.mak, src/testdir/Make_os2.mak, src/testdir/Make_vms.mms, src/testdir/Makefile Patch 7.4.944 问题: Writing tests for Vim script is hard. 解决方案: Add assertEqual(), assertFalse() and assertTrue() functions. Add the v:errors variable. Add the runtest script. Add a first new style test script. 相关文件: src/eval.c, src/vim.h, src/misc2.c, src/testdir/Makefile, src/testdir/runtest.vim, src/testdir/test_assert.vim, runtime/doc/eval.txt Patch 7.4.945 (after 7.4.944) 问题: New style testing is incomplete. 解决方案: Add the runtest script to the list of distributed files. Add the new functions to the function overview. Rename the functions to match Vim function style. Move undolevels testing into a new style test script. 相关文件: Filelist, runtime/doc/usr_41.txt, runtime/doc/eval.txt, src/testdir/test_assert.vim, src/testdir/Makefile, src/testdir/test_undolevels.vim, src/testdir/test100.in, src/testdir/test100.ok Patch 7.4.946 (after 7.4.945) 问题: Missing changes in source file. 解决方案: Include changes to the eval.c file. 相关文件: src/eval.c Patch 7.4.947 问题: Test_listchars fails with MingW. (Michael Soyka) 解决方案: Add the test to the ones that need the fileformat fixed. (Christian Brabandt) 相关文件: src/testdir/Make_ming.mak Patch 7.4.948 问题: Can't build when the insert_expand feature is disabled. 解决方案: Add #ifdefs. (Dan Pasanen, closes #499) 相关文件: src/eval.c, src/fileio.c Patch 7.4.949 问题: When using 'colorcolumn' and there is a sign with a fullwidth character the highlighting is wrong. (Andrew Stewart) 解决方案: Only increment vcol when in the right state. (Christian Brabandt) 相关文件: src/screen.c, src/testdir/test_listlbr_utf8.in, src/testdir/test_listlbr_utf8.ok Patch 7.4.950 问题: v:errors is not initialized. 解决方案: Initialize it to an empty list. (Thinca) 相关文件: src/eval.c Patch 7.4.951 问题: Sorting number strings does not work as expected. (Luc Hermitte) 解决方案: Add the "N" argument to sort() 相关文件: src/eval.c, runtime/doc/eval.txt, src/testdir/test_alot.vim, src/testdir/test_sort.vim, src/testdir/Makefile Patch 7.4.952 问题: 'lispwords' is tested in the old way. 解决方案: Make a new style test for 'lispwords'. 相关文件: src/testdir/test_alot.vim, src/testdir/test_lispwords.vim, src/testdir/test100.in, src/testdir/test100.ok, src/testdir/Make_amiga.mak, src/testdir/Make_dos.mak, src/testdir/Make_ming.mak, src/testdir/Make_os2.mak, src/testdir/Make_vms.mms, src/testdir/Makefile Patch 7.4.953 问题: When a test script navigates to another buffer the .res file is created with the wrong name. 解决方案: Use the "testname" for the .res file. (Damien) 相关文件: src/testdir/runtest.vim Patch 7.4.954 问题: When using Lua there may be a crash. (issue #468) 解决方案: Avoid using an uninitialized tv. (Yukihiro Nakadaira) 相关文件: src/if_lua.c Patch 7.4.955 问题: Vim doesn't recognize .pl6 and .pod6 files. 解决方案: Recognize them as perl6 and pod6. (Mike Eve, closes #511) 相关文件: runtime/filetype.vim Patch 7.4.956 问题: A few more file name extensions not recognized. 解决方案: Add .asciidoc, .bzl, .gradle, etc. 相关文件: runtime/filetype.vim Patch 7.4.957 问题: Test_tagcase fails when using another language than English. 解决方案: Set the messages language to C. (Kenichi Ito) 相关文件: src/testdir/test_tagcase.in Patch 7.4.958 问题: Vim checks if the directory "$TMPDIR" exists. 解决方案: Do not check if the name starts with "$". 相关文件: src/fileio.c Patch 7.4.959 问题: When setting 'term' the clipboard ownership is lost. 解决方案: Do not call clip_init(). (James McCoy) 相关文件: src/term.c Patch 7.4.960 问题: Detecting every version of nmake is clumsy. 解决方案: Use a tiny C program to get the version of _MSC_VER. (Ken Takata) 相关文件: src/Make_mvc.mak Patch 7.4.961 问题: Test107 fails in some circumstances. 解决方案: When using "zt", "zb" and "z=" recompute the fraction. 相关文件: src/normal.c, src/window.c, src/proto/window.pro Patch 7.4.962 问题: Cannot run the tests with gvim. Cannot run individual new tests. 解决方案: Add the -f flag. Add new test targets in Makefile. 相关文件: src/Makefile, src/testdir/Makefile Patch 7.4.963 问题: test_listlbr_utf8 sometimes fails. 解决方案: Don't use a literal multibyte character but <C-V>uXXXX. Do not dump the screen highlighting. (Christian Brabandt, closes #518) 相关文件: src/testdir/test_listlbr_utf8.in, src/testdir/test_listlbr_utf8.ok Patch 7.4.964 问题: Test 87 doesn't work in a shadow directory. 解决方案: Handle the extra subdirectory. (James McCoy, closes #515) 相关文件: src/testdir/test87.in Patch 7.4.965 问题: On FreeBSD /dev/fd/ files are special. 解决方案: Use is_dev_fd_file() also for FreeBSD. (Derek Schrock, closes #521) 相关文件: src/fileio.c Patch 7.4.966 问题: Configure doesn't work with a space in a path. 解决方案: Put paths in quotes. (James McCoy, closes #525) 相关文件: src/configure.in, src/auto/configure Patch 7.4.967 问题: Cross compilation on MS-windows doesn't work well. 解决方案: Tidy up cross compilation across architectures with Visual Studio. (Mike Williams) 相关文件: src/Make_mvc.mak Patch 7.4.968 问题: test86 and test87 are flaky in Appveyor. 解决方案: Reduce the count from 8 to 7. (suggested by ZyX) 相关文件: src/testdir/test86.in, src/testdir/test87.in Patch 7.4.969 问题: Compiler warnings on Windows x64 build. 解决方案: Add type casts. (Mike Williams) 相关文件: src/option.c Patch 7.4.970 问题: Rare crash in getvcol(). (Timo Mihaljov) 解决方案: Check for the buffer being NULL in init_preedit_start_col. (Hirohito Higashi, Christian Brabandt) 相关文件: src/mbyte.c Patch 7.4.971 问题: The asin() function can't be used. 解决方案: Sort the function table properly. (Watiko) 相关文件: src/eval.c Patch 7.4.972 问题: Memory leak when there is an error in setting an option. 解决方案: Free the saved value (Christian Brabandt) 相关文件: src/option.c Patch 7.4.973 问题: When pasting on the command line line breaks result in literal <CR> characters. This makes pasting a long file name difficult. 解决方案: Skip the characters. 相关文件: src/ex_getln.c, src/ops.c Patch 7.4.974 问题: When using :diffsplit the cursor jumps to the first line. 解决方案: Put the cursor on the line related to where the cursor was before the split. 相关文件: src/diff.c Patch 7.4.975 问题: Using ":sort" on a very big file sometimes causes text to be corrupted. (John Beckett) 解决方案: Copy the line into a buffer before calling ml_append(). 相关文件: src/ex_cmds.c Patch 7.4.976 问题: When compiling Vim for MSYS2 (linked with msys-2.0.dll), the Win32 clipboard is not enabled. 解决方案: Recognize MSYS like CYGWIN. (Ken Takata) 相关文件: src/configure.in, src/auto/configure Patch 7.4.977 问题: 'linebreak' does not work properly when using "space" in 'listchars'. 解决方案: (Hirohito Higashi, Christian Brabandt) 相关文件: src/screen.c, src/testdir/test_listlbr.in, src/testdir/test_listlbr.ok Patch 7.4.978 问题: test_cdo fails when using another language than English. 解决方案: Set the language to C. (Dominique Pelle, Kenichi Ito) 相关文件: src/testdir/test_cdo.in Patch 7.4.979 问题: When changing the crypt key the blocks read from disk are not decrypted. 解决方案: Also call ml_decrypt_data() when mf_old_key is set. (Ken Takata) 相关文件: src/memfile.c Patch 7.4.980 问题: Tests for :cdo, :ldo, etc. are outdated. 解决方案: Add new style tests for these commands. (Yegappan Lakshmanan) 相关文件: src/testdir/Make_amiga.mak, src/testdir/Make_dos.mak, src/testdir/Make_ming.mak, src/testdir/Make_os2.mak, src/testdir/Make_vms.mms, src/testdir/Makefile, src/testdir/test_cdo.in, src/testdir/test_cdo.ok, src/testdir/test_cdo.vim Patch 7.4.981 问题: An error in a test script goes unnoticed. 解决方案: Source the test script inside try/catch. (Hirohito Higashi) 相关文件: src/testdir/runtest.vim Patch 7.4.982 问题: Keeping the list of tests updated is a hassle. 解决方案: Move the list to a separate file, so that it only needs to be updated in one place. 相关文件: src/testdir/Make_amiga.mak, src/testdir/Make_dos.mak, src/testdir/Make_ming.mak, src/testdir/Make_os2.mak, src/testdir/Make_vms.mms, src/testdir/Makefile, src/testdir/Make_all.mak Patch 7.4.983 问题: Executing one test after "make testclean" doesn't work. 解决方案: Add a dependency on test1.out. 相关文件: src/testdir/Make_amiga.mak, src/testdir/Make_dos.mak, src/testdir/Make_ming.mak, src/testdir/Make_os2.mak, src/testdir/Make_vms.mms, src/testdir/Makefile, src/testdir/Make_all.mak Patch 7.4.984 问题: searchpos() always starts searching in the first column, which is not what some people expect. (Brett Stahlman) 解决方案: Add the 'z' flag: start at the specified column. 相关文件: src/vim.h, src/eval.c, src/search.c, src/testdir/test_searchpos.vim, src/testdir/test_alot.vim, runtime/doc/eval.txt Patch 7.4.985 问题: Can't build with Ruby 2.3.0. 解决方案: Use the new TypedData_XXX macro family instead of Data_XXX. Use TypedData. (Ken Takata) 相关文件: src/if_ruby.c Patch 7.4.986 问题: Test49 doesn't work on MS-Windows. test70 is listed twice. 解决方案: Move test49 to the group not used on Amiga and MS-Windows. Remove test70 from SCRIPTS_WIN32. 相关文件: src/testdir/Make_all.mak, src/testdir/Make_dos.mak Patch 7.4.987 (after 7.4.985) 问题: Can't build with Ruby 1.9.2. 解决方案: Require Rub 2.0 for defining USE_TYPEDDATA. 相关文件: src/if_ruby.c Patch 7.4.988 (after 7.4.982) 问题: Default test target is test49.out. 解决方案: Add a build rule before including Make_all.mak. 相关文件: src/testdir/Make_dos.mak, src/testdir/Make_amiga.mak, src/testdir/Make_ming.mak, src/testdir/Make_os2.mak, src/testdir/Make_vms.mms, src/testdir/Makefile Patch 7.4.989 问题: Leaking memory when hash_add() fails. Coverity error 99126. 解决方案: When hash_add() fails free the memory. 相关文件: src/eval.c Patch 7.4.990 问题: Test 86 fails on AppVeyor. 解决方案: Do some registry magic. (Ken Takata) 相关文件: appveyor.yml Patch 7.4.991 问题: When running new style tests the output is not visible. 解决方案: Add the testdir/messages file and show it. Update the list of test names. 相关文件: src/Makefile, src/testdir/Makefile, src/testdir/runtest.vim Patch 7.4.992 问题: Makefiles for MS-Windows in src/po are outdated. 解决方案: Make them work. (Ken Takata, Taro Muraoka) 相关文件: src/po/Make_cyg.mak, src/po/Make_ming.mak, src/po/Make_mvc.mak, src/po/README_mingw.txt, src/po/README_mvc.txt Patch 7.4.993 问题: Test 87 is flaky on AppVeyor. 解决方案: Reduce the minimum background thread count. 相关文件: src/testdir/test86.in, src/testdir/test87.in Patch 7.4.994 问题: New style tests are not run on MS-Windows. 解决方案: Add the new style tests. 相关文件: src/testdir/Make_dos.mak Patch 7.4.995 问题: gdk_pixbuf_new_from_inline() is deprecated. 解决方案: Generate auto/gui_gtk_gresources.c. (Kazunobu Kuriyama, closes #507) 相关文件: src/Makefile, src/auto/configure, src/config.h.in, src/config.mk.in, src/configure.in, src/gui_gtk.c, src/gui_gtk_gresources.xml, src/gui_gtk_x11.c, src/proto/gui_gtk_gresources.pro, pixmaps/stock_vim_build_tags.png, pixmaps/stock_vim_find_help.png, pixmaps/stock_vim_save_all.png, pixmaps/stock_vim_session_load.png, pixmaps/stock_vim_session_new.png, pixmaps/stock_vim_session_save.png, pixmaps/stock_vim_shell.png, pixmaps/stock_vim_window_maximize.png, pixmaps/stock_vim_window_maximize_width.png, pixmaps/stock_vim_window_minimize.png, pixmaps/stock_vim_window_minimize_width.png, pixmaps/stock_vim_window_split.png, pixmaps/stock_vim_window_split_vertical.png Patch 7.4.996 问题: New GDK files and testdir/Make_all.mak missing from distribution. PC build instructions are outdated. 解决方案: Add the file to the list. Update PC build instructions. 相关文件: Filelist, Makefile Patch 7.4.997 问题: "make shadow" was sometimes broken. 解决方案: Add a test for it. (James McCoy, closes #520) 相关文件: .travis.yml Patch 7.4.998 问题: Running tests in shadow directory fails. Test 49 fails. 解决方案: Link more files for the shadow directory. Make test 49 ends up in the right buffer. 相关文件: src/Makefile, src/testdir/test49.in Patch 7.4.999 问题: "make shadow" creates a broken link. (Tony Mechelynck) 解决方案: Remove vimrc.unix from the list. 相关文件: src/Makefile Patch 7.4.1000 问题: Test 49 is slow and doesn't work on MS-Windows. 解决方案: Start moving parts of test 49 to test_viml. 相关文件: src/Makefile, src/testdir/runtest.vim, src/testdir/test_viml.vim, src/testdir/test49.vim, src/testdir/test49.ok Patch 7.4.1001 (after 7.4.1000) 问题: test_viml isn't run. 解决方案: Include change in makefile. 相关文件: src/testdir/Make_all.mak Patch 7.4.1002 问题: Cannot run an individual test on MS-Windows. 解决方案: Move the rule to run test1 downwards. (Ken Takata) 相关文件: src/testdir/Make_dos.mak Patch 7.4.1003 问题: Travis could check a few more things. 解决方案: Run autoconf on one of the builds. (James McCoy, closes #510) Also build with normal features. 相关文件: .travis.yml Patch 7.4.1004 问题: Using Makefile when auto/config.mk does not exist results in warnings. 解决方案: Use default values for essential variables. 相关文件: src/Makefile Patch 7.4.1005 问题: Vim users are not always happy. 解决方案: Make them happy. 相关文件: src/ex_cmds.h, src/ex_cmds.c, src/proto/ex_cmds.pro Patch 7.4.1006 问题: The fix in patch 7.3.192 is not tested. 解决方案: Add a test, one for each regexp engine. (Elias Diem) 相关文件: src/testdir/test44.in, src/testdir/test44.ok, src/testdir/test99.in, src/testdir/test99.ok Patch 7.4.1007 问题: When a symbolic link points to a file in the root directory, the swapfile is not correct. 解决方案: Do not try getting the full name of a file in the root directory. (Milly, closes #501) 相关文件: src/os_unix.c Patch 7.4.1008 问题: The OS/2 code pollutes the source while nobody uses it these days. 解决方案: Drop the support for OS/2. 相关文件: src/feature.h, src/globals.h, src/macros.h, src/option.h, src/os_unix.c, src/os_unix.h, src/proto/os_unix.pro, src/vim.h, src/digraph.c, src/eval.c, src/ex_cmds.c, src/ex_docmd.c, src/ex_getln.c, src/fileio.c, src/getchar.c, src/memline.c, src/misc1.c, src/misc2.c, src/netbeans.c, src/option.c, src/term.c, src/ui.c, src/window.c, src/os_os2_cfg.h, src/Make_os2.mak, src/testdir/Make_os2.mak, src/testdir/os2.vim, src/INSTALL, runtime/doc/os_os2.txt Patch 7.4.1009 问题: There are still #ifdefs for ARCHIE. 解决方案: Remove references to ARCHIE, the code was removed in Vim 5. 相关文件: src/ex_cmds.c, src/ex_docmd.c, src/fileio.c, src/main.c, src/memline.c, src/option.c, src/term.c Patch 7.4.1010 问题: Some developers are unhappy while running tests. 解决方案: Add a test and some color. 相关文件: src/ex_cmds.c, src/testdir/test_assert.vim Patch 7.4.1011 问题: Can't build with Strawberry Perl. 解决方案: Include stdbool.h. (Ken Takata, closes #328) 相关文件: Filelist, src/Make_mvc.mak, src/if_perl_msvc/stdbool.h Patch 7.4.1012 问题: Vim overwrites the value of $PYTHONHOME. 解决方案: Do not set $PYTHONHOME if it is already set. (Kazuki Sakamoto, closes #500) 相关文件: src/if_python.c, src/if_python3.c Patch 7.4.1013 问题: The local value of 'errorformat' is not used for ":lexpr" and ":cexpr". 解决方案: Use the local value if it exists. (Christian Brabandt) Adjust the help for this. 相关文件: runtime/doc/quickfix.txt, src/quickfix.c Patch 7.4.1014 问题: `fnamemodify('.', ':.')` returns an empty string in Cygwin. 解决方案: Use CCP_RELATIVE in the call to cygwin_conv_path. (Jacob Niehus, closes #505) 相关文件: src/os_unix.c Patch 7.4.1015 问题: The column is not restored properly when the matchparen plugin is used in Insert mode and the cursor is after the end of the line. 解决方案: Set the curswant flag. (Christian Brabandt). Also fix highlighting the match of the character before the cursor. 相关文件: src/eval.c, runtime/plugin/matchparen.vim Patch 7.4.1016 问题: Still a few OS/2 pieces remain. 解决方案: Delete more. 相关文件: Filelist, README_os2.txt, testdir/todos.vim, src/xxd/Make_os2.mak Patch 7.4.1017 问题: When there is a backslash in an option ":set -=" doesn't work. 解决方案: Handle a backslash better. (Jacob Niehus) Add a new test, merge in old test. 相关文件: src/testdir/test_cdo.vim, src/testdir/test_set.vim, src/testdir/test_alot.vim, src/option.c, src/testdir/test_set.in, src/testdir/test_set.ok, src/Makefile Patch 7.4.1018 (after 7.4.1017) 问题: Failure running tests. 解决方案: Add missing change to list of old style tests. 相关文件: src/testdir/Make_all.mak Patch 7.4.1019 问题: Directory listing of "src" is too long. 解决方案: Rename the resources file to make it shorter. 相关文件: src/gui_gtk_gresources.xml, src/gui_gtk_res.xml, src/Makefile, Filelist Patch 7.4.1020 问题: On MS-Windows there is no target to run tests with gvim. 解决方案: Add the testgvim target. 相关文件: src/Make_mvc.mak Patch 7.4.1021 问题: Some makefiles are outdated. 解决方案: Add a note to warn developers. 相关文件: src/Make_manx.mak, src/Make_bc3.mak, src/Make_bc5.mak, src/Make_djg.mak, src/Make_w16.mak Patch 7.4.1022 问题: The README file contains some outdated information. 解决方案: Update the information about supported systems. 相关文件: README.txt, README.md Patch 7.4.1023 问题: The distribution files for MS-Windows use CR-LF, which is inconsistent with what one gets from github. 解决方案: Use LF in the distribution files. 相关文件: Makefile Patch 7.4.1024 问题: Interfaces for MS-Windows are outdated. 解决方案: Use Python 2.7.10, Python 3.4.4, Perl 5.22, TCL 8.6. 相关文件: src/bigvim.bat Patch 7.4.1025 问题: Version in installer needs to be updated manually. 解决方案: Generate a file with the version number. (Guopeng Wen) 相关文件: Makefile, nsis/gvim.nsi, nsis/gvim_version.nsh Patch 7.4.1026 问题: When using MingW the tests do not clean up all files. E.g. test 17 leaves Xdir1 behind. (Michael Soyka) 解决方案: Also delete directories, like Make_dos.mak. Delete files after directories to reduce warnings. 相关文件: src/testdir/Make_ming.mak, src/testdir/Make_dos.mak Patch 7.4.1027 问题: No support for binary numbers. 解决方案: Add "bin" to 'nrformats'. (Jason Schulz) 相关文件: runtime/doc/change.txt, runtime/doc/eval.txt, runtime/doc/version7.txt, src/charset.c, src/eval.c, src/ex_cmds.c, src/ex_getln.c, src/misc2.c, src/ops.c, src/option.c, src/proto/charset.pro, src/spell.c, src/testdir/test57.in, src/testdir/test57.ok, src/testdir/test58.in, src/testdir/test58.ok, src/testdir/test_increment.in, src/testdir/test_increment.ok, src/vim.h Patch 7.4.1028 问题: Nsis version file missing from the distribution. 解决方案: Add the file to the list. 相关文件: Filelist Patch 7.4.1029 (after 7.4.1027) 问题: test_increment fails on systems with 32 bit long. 解决方案: Only test with 32 bits. 相关文件: src/testdir/test_increment.in, src/testdir/test_increment.ok Patch 7.4.1030 问题: test49 is still slow. 解决方案: Move more tests from old to new style. 相关文件: src/testdir/test_viml.vim, src/testdir/test49.vim, src/testdir/test49.ok, src/testdir/runtest.vim Patch 7.4.1031 问题: Can't build with Python interface using MingW. 解决方案: Update the Makefile. (Yasuhiro Matsumoto) 相关文件: src/INSTALLpc.txt, src/Make_cyg_ming.mak Patch 7.4.1032 问题: message from assert_false() does not look nice. 解决方案: Handle missing sourcing_name. Use right number of spaces. (Watiko) Don't use line number if it's zero. 相关文件: src/eval.c Patch 7.4.1033 问题: Memory use on MS-Windows is very conservative. 解决方案: Use the global memory status to estimate amount of memory. (Mike Williams) 相关文件: src/os_win32.c, src/os_win32.h, src/proto/os_win32.pro Patch 7.4.1034 问题: There is no test for the 'backspace' option behavior. 解决方案: Add a test. (Hirohito Higashi) 相关文件: src/testdir/test_alot.vim, src/testdir/test_backspace_opt.vim Patch 7.4.1035 问题: An Ex range gets adjusted for folded lines even when the range is not using line numbers. 解决方案: Only adjust line numbers for folding. (Christian Brabandt) 相关文件: runtime/doc/fold.txt, src/ex_docmd.c Patch 7.4.1036 问题: Only terminals with up to 256 colors work properly. 解决方案: Use the 256 color behavior for all terminals with 256 or more colors. (Robert de Bath, closes #504) 相关文件: src/syntax.c Patch 7.4.1037 问题: Using "q!" when there is a modified hidden buffer does not unload the current buffer, resulting in the need to abandon it again. 解决方案: When using "q!" unload the current buffer when needed. (Yasuhiro Matsumoto, Hirohito Higashi) 相关文件: src/testdir/test31.in, src/testdir/test31.ok, runtime/doc/editing.txt, src/ex_cmds2.c, src/ex_docmd.c, src/gui.c, src/gui_gtk_x11.c, src/os_unix.c, src/proto/ex_cmds2.pro Patch 7.4.1038 问题: Still get a warning for a deprecated function with gdk-pixbuf 2.31. 解决方案: Change minimum minor version from 32 to 31. 相关文件: src/configure.in, src/auto/configure Patch 7.4.1039 (after 7.4.1037) 问题: Test 31 fails with small build. 解决方案: Bail out for small build. (Hirohito Higashi) 相关文件: src/testdir/test31.in Patch 7.4.1040 问题: The tee command is not available on MS-Windows. 解决方案: Adjust tee.c for MSVC and add a makefile. (Yasuhiro Matsumoto) 相关文件: src/tee/tee.c, src/tee/Make_mvc.mak, src/Make_mvc.mak Patch 7.4.1041 问题: Various small things. 解决方案: Add file to list of distributed files. Adjust README. Fix typo. 相关文件: Filelist, src/testdir/README.txt, src/testdir/test_charsearch.in, src/INSTALLmac.txt Patch 7.4.1042 问题: g-CTRL-G shows the word count, but there is no way to get the word count in a script. 解决方案: Add the wordcount() function. (Christian Brabandt) 相关文件: runtime/doc/editing.txt, runtime/doc/eval.txt, runtime/doc/usr_41.txt, src/eval.c, src/normal.c, src/ops.c, src/proto/ops.pro, src/testdir/test_wordcount.in, src/testdir/test_wordcount.ok, src/testdir/Make_all.mak Patch 7.4.1043 问题: Another small thing. 解决方案: Now really update the Mac install text. 相关文件: src/INSTALLmac.txt Patch 7.4.1044 (after 7.4.1042) 问题: Can't build without the +eval feature. 解决方案: Add #ifdef. 相关文件: src/ops.c Patch 7.4.1045 问题: Having shadow and coverage on the same build results in the source files not being available in the coverage view. 解决方案: Move using shadow to the normal build. 相关文件: .travis.yml Patch 7.4.1046 问题: No test coverage for menus. 解决方案: Load the standard menus and check there is no error. 相关文件: testdir/test_menu.vim, testdir/test_alot.vim Patch 7.4.1047 (after patch 7.4.1042) 问题: Tests fail on MS-Windows. 解决方案: Set 'selection' to inclusive. 相关文件: src/testdir/test_wordcount.in Patch 7.4.1048 (after patch 7.4.1047) 问题: Wordcount test still fail on MS-Windows. 解决方案: Set 'fileformat' to "unix". 相关文件: src/testdir/test_wordcount.in Patch 7.4.1049 (after patch 7.4.1048) 问题: Wordcount test still fails on MS-Windows. 解决方案: Set 'fileformats' to "unix". 相关文件: src/testdir/test_wordcount.in Patch 7.4.1050 问题: Warning for unused var with tiny features. (Tony Mechelynck) 解决方案: Add #ifdef. Use vim_snprintf(). Reduce number of statements. 相关文件: src/ops.c Patch 7.4.1051 问题: Segfault when unletting "count". 解决方案: Check for readonly and locked first. (Dominique Pelle) Add a test. 相关文件: src/eval.c, src/testdir/test_alot.vim, src/testdir/test_unlet.vim Patch 7.4.1052 问题: Illegal memory access with weird syntax command. (Dominique Pelle) 解决方案: Check for column past end of line. 相关文件: src/syntax.c Patch 7.4.1053 问题: Insufficient testing for quickfix commands. 解决方案: Add a new style quickfix test. (Yegappan Lakshmanan) 相关文件: src/testdir/Make_all.mak, src/testdir/test_quickfix.vim Patch 7.4.1054 问题: Illegal memory access. 解决方案: Check for missing pattern. (Dominique Pelle) 相关文件: src/syntax.c Patch 7.4.1055 问题: Running "make newtests" in src/testdir has no output. 解决方案: List the messages file when a test fails. (Christian Brabandt) Update the list of tests. 相关文件: src/Makefile, src/testdir/Makefile Patch 7.4.1056 问题: Don't know why finding spell suggestions is slow. 解决方案: Add some code to gather profiling information. 相关文件: src/spell.c Patch 7.4.1057 问题: Typos in the :options window. 解决方案: Fix the typos. (Dominique Pelle) 相关文件: runtime/optwin.vim Patch 7.4.1058 问题: It is not possible to test code that is only reached when memory allocation fails. 解决方案: Add the alloc_fail() function. Try it out with :vimgrep. 相关文件: runtime/doc/eval.txt, src/globals.h, src/eval.c, src/quickfix.c, src/misc2.c, src/proto/misc2.pro, src/testdir/test_quickfix.vim Patch 7.4.1059 问题: Code will never be executed. 解决方案: Remove the code. 相关文件: src/quickfix.c Patch 7.4.1060 问题: Instructions for writing tests are outdated. 解决方案: Mention Make_all.mak. Add steps for new style tests. 相关文件: src/testdir/README.txt Patch 7.4.1061 问题: Compiler warning for ignoring return value of fwrite(). 解决方案: Do use the return value. (idea: Charles Campbell) 相关文件: src/misc2.c, src/proto/misc2.pro Patch 7.4.1062 问题: Building with Ruby on MS-Windows requires a lot of arguments. 解决方案: Make it simpler. (Ken Takata) 相关文件: src/Make_cyg_ming.mak, src/Make_mvc.mak Patch 7.4.1063 问题: TCL_VER_LONG and DYNAMIC_TCL_VER are not set when building with Cygwin and MingW. 解决方案: Add TCL_VER_LONG and DYNAMIC_TCL_VER to the makefile. (Ken Takata) 相关文件: src/Make_cyg_ming.mak Patch 7.4.1064 问题: When a spell file has single letter compounding creating suggestions takes an awful long time. 解决方案: Add the NOCOMPOUNDSUGS flag. 相关文件: runtime/doc/spell.txt, src/spell.c Patch 7.4.1065 问题: Cannot use the "dll" options on MS-Windows. 解决方案: Support the options on all platforms. Use the built-in name as the default, so that it's clear what Vim is looking for. 相关文件: src/if_python.c, src/if_python3.c, src/if_lua.c, src/if_perl.xs, src/if_ruby.c, src/option.c, runtime/doc/options.txt, src/Makefile Patch 7.4.1066 (after 7.4.1065) 问题: Build fails on MS-Windows. 解决方案: Adjust the #ifdefs for "dll" options. 相关文件: src/option.h Patch 7.4.1067 (after 7.4.1065) 问题: Can't build with MingW and Python on MS-Windows. 解决方案: Move the build flags to CFLAGS. 相关文件: src/Make_cyg_ming.mak Patch 7.4.1068 问题: Wrong way to check for unletting internal variables. 解决方案: Use a better way. (Olaf Dabrunz) 相关文件: src/testdir/test_unlet.c, src/eval.c Patch 7.4.1069 问题: Compiler warning for unused argument. 解决方案: Add UNUSED. 相关文件: src/misc2.c Patch 7.4.1070 问题: The Tcl interface can't be loaded dynamically on Unix. 解决方案: Make it possible to load it dynamically. (Ken Takata) 相关文件: runtime/doc/if_tcl.txt, runtime/doc/options.txt, runtime/doc/quickref.txt, runtime/optwin.vim, src/Makefile, src/config.h.in, src/configure.in, src/auto/configure, src/if_tcl.c, src/option.c, src/option.h Patch 7.4.1071 问题: New style tests are executed in arbitrary order. 解决方案: Sort the test function names. (Hirohito Higashi) Fix the quickfix test that depended on the order. 相关文件: src/testdir/runtest.vim, src/testdir/test_quickfix.vim Patch 7.4.1072 问题: Increment test is old style. 解决方案: Make the increment test a new style test. (Hirohito Higashi) 相关文件: src/Makefile, src/testdir/Make_all.mak, src/testdir/test_increment.in, src/testdir/test_increment.ok, src/testdir/test_increment.vim Patch 7.4.1073 问题: Alloc_id depends on numbers, may use the same one twice. It's not clear from the number what it's for. 解决方案: Use an enum. Add a function to lookup the enum value from the name. 相关文件: src/misc2.c, src/vim.h, src/alloc.h, src/globals.h, src/testdir/runtest.vim, src/proto/misc2.pro, src/testdir/test_quickfix.vim Patch 7.4.1074 问题: Warning from VC2015 compiler. 解决方案: Add a type cast. (Mike Williams) 相关文件: src/gui_dwrite.cpp Patch 7.4.1075 问题: Crash when using an invalid command. 解决方案: Fix generating the error message. (Dominique Pelle) 相关文件: src/ex_docmd.c Patch 7.4.1076 问题: CTRL-A does not work well in right-left mode. 解决方案: Remove reversing the line, add a test. (Hirohito Higashi) 相关文件: src/ops.c, src/testdir/test_increment.vim Patch 7.4.1077 问题: The build instructions for MS-Windows are incomplete. 解决方案: Add explanations for how to build with various interfaces. (Ken Takata) 相关文件: src/INSTALLpc.txt Patch 7.4.1078 问题: MSVC: "make clean" doesn't cleanup in the tee directory. 解决方案: Add the commands to cleanup tee. (Erich Ritz) 相关文件: src/Make_mvc.mak Patch 7.4.1079 (after 7.4.1073) 问题: New include file missing from distribution. Missing changes to quickfix code. 解决方案: Add alloc.h to the list of distributed files. Use the enum in quickfix code. 相关文件: Filelist, src/quickfix.c Patch 7.4.1080 问题: VS2015 has a function HandleToLong() that is shadowed by the macro that Vim defines. 解决方案: Do not define HandleToLong() for MSVC version 1400 and later. (Mike Williams) 相关文件: src/gui_w32.c Patch 7.4.1081 问题: No test for what previously caused a crash. 解决方案: Add test for unletting errmsg. 相关文件: src/testdir/test_unlet.vim Patch 7.4.1082 问题: The Tcl interface is always skipping memory free on exit. 解决方案: Only skip for dynamically loaded Tcl. 相关文件: src/if_tcl.c Patch 7.4.1083 问题: Building GvimExt with VS2015 may fail. 解决方案: Adjust the makefile. (Mike Williams) 相关文件: src/GvimExt/Makefile Patch 7.4.1084 问题: Using "." to repeat CTRL-A in Visual mode increments the wrong numbers. 解决方案: Append right size to the redo buffer. (Ozaki Kiichi) 相关文件: src/normal.c, src/testdir/test_increment.vim Patch 7.4.1085 问题: The CTRL-A and CTRL-X commands do not update the '[ and '] marks. 解决方案: (Yukihiro Nakadaira) 相关文件: src/ops.c, src/testdir/test_marks.in, src/testdir/test_marks.ok Patch 7.4.1086 问题: Crash with an extremely long buffer name. 解决方案: Limit the return value of vim_snprintf(). (Dominique Pelle) 相关文件: src/buffer.c Patch 7.4.1087 问题: CTRL-A and CTRL-X do not work properly with blockwise visual selection if there is a mix of Tab and spaces. 解决方案: Add OP_NR_ADD and OP_NR_SUB. (Hirohito Higashi) 相关文件: src/testdir/test_increment.vim, src/normal.c, src/ops.c, src/proto/ops.pro, src/vim.h Patch 7.4.1088 问题: Coverity warns for uninitialized variables. Only one is an actual problem. 解决方案: Move the conditions. Don't use endpos if handling an error. 相关文件: src/ops.c Patch 7.4.1089 问题: Repeating CTRL-A doesn't work. 解决方案: Call prep_redo_cmd(). (Hirohito Higashi) 相关文件: src/normal.c, src/testdir/test_increment.vim Patch 7.4.1090 问题: No tests for :hardcopy and related options. 解决方案: Add test_hardcopy. 相关文件: src/testdir/test_hardcopy.vim, src/Makefile, src/testdir/Make_all.mak Patch 7.4.1091 问题: When making a change while need_wait_return is set there is a two second delay. 解决方案: Do not assume the ATTENTION prompt was given when need_wait_return was set already. 相关文件: src/misc1.c Patch 7.4.1092 问题: It is not simple to test for an exception and give a proper error message. 解决方案: Add assert_exception(). 相关文件: src/eval.c, runtime/doc/eval.txt Patch 7.4.1093 问题: Typo in test goes unnoticed. 解决方案: Fix the typo. Give error for wrong arguments to cursor(). (partly by Hirohito Higashi) Add a test for cursor(). 相关文件: src/testdir/test_searchpos.vim, src/testdir/test_cursor_func.vim, src/eval.c, src/testdir/test_alot.vim Patch 7.4.1094 问题: Test for :hardcopy fails on MS-Windows. 解决方案: Check for the +postscript feature. 相关文件: src/testdir/test_hardcopy.vim Patch 7.4.1095 问题: Can't build GvimExt with SDK 7.1. 解决方案: Support using setenv.bat instead of vcvars32.bat. (Ken Takata) 相关文件: src/Make_mvc.mak, src/GvimExt/Makefile Patch 7.4.1096 问题: Need several lines to verify a command produces an error. 解决方案: Add assert_fails(). (suggested by Nikolai Pavlov) Make the quickfix alloc test actually work. 相关文件: src/testdir/test_quickfix.vim, src/eval.c, runtime/doc/eval.txt, src/misc2.c, src/alloc.h Patch 7.4.1097 问题: Looking up the alloc ID for tests fails. 解决方案: Fix the line computation. Use assert_fails() for unlet test. 相关文件: src/testdir/runtest.vim, src/testdir/test_unlet.vim Patch 7.4.1098 问题: Still using old style C function declarations. 解决方案: Always define __ARGS() to include types. Turn a few functions into ANSI style to find out if this causes problems for anyone. 相关文件: src/vim.h, src/os_unix.h, src/eval.c, src/main.c Patch 7.4.1099 问题: It's not easy to know if Vim supports blowfish. (Smu Johnson) 解决方案: Add has('crypt-blowfish') and has('crypt-blowfish2'). 相关文件: src/eval.c Patch 7.4.1100 问题: Cygwin makefiles are unused. 解决方案: Remove them. 相关文件: src/GvimExt/Make_ming.mak, src/GvimExt/Make_cyg.mak, src/xxd/Make_ming.mak, src/xxd/Make_cyg.mak Patch 7.4.1101 问题: With 'rightleft' and concealing the cursor may move to the wrong position. 解决方案: Compute the column differently when 'rightleft' is set. (Hirohito Higashi) 相关文件: src/screen.c Patch 7.4.1102 问题: Debugger has no stack backtrace support. 解决方案: Add "backtrace", "frame", "up" and "down" commands. (Alberto Fanjul, closes #433) 相关文件: runtime/doc/repeat.txt, src/eval.c, src/ex_cmds2.c, src/globals.h, src/testdir/Make_all.mak, src/testdir/test108.in, src/testdir/test108.ok Patch 7.4.1103 (after 7.4.1100) 问题: Removed file still in distribution. 解决方案: Remove Make_cyg.mak from the list of files. 相关文件: Filelist Patch 7.4.1104 问题: Various problems building with MzScheme/Racket. 解决方案: Make it work with new versions of Racket. (Yukihiro Nakadaira, Ken Takata) 相关文件: runtime/doc/if_mzsch.txt, src/INSTALLpc.txt, src/Make_cyg_ming.mak, src/Make_mvc.mak, src/auto/configure, src/configure.in, src/if_mzsch.c Patch 7.4.1105 问题: When using slices there is a mixup of variable name and namespace. 解决方案: Recognize variables that can't be a namespace. (Hirohito Higashi) 相关文件: src/eval.c, src/testdir/test_eval.in, src/testdir/test_eval.ok Patch 7.4.1106 问题: The nsis script can't be used from the appveyor build. 解决方案: Add "ifndef" to allow for variables to be set from the command line. Remove duplicate SetCompressor command. Support using other gettext binaries. (Ken Takata) Update build instructions to use libintl-8.dll. 相关文件: Makefile, nsis/gvim.nsi, src/os_win32.c, src/proto/os_win32.pro, src/main.c, os_w32exe.c Patch 7.4.1107 问题: Vim can create a directory but not delete it. 解决方案: Add an argument to delete() to make it possible to delete a directory, also recursively. 相关文件: src/fileio.c, src/eval.c, src/proto/fileio.pro, src/testdir/test_delete.vim, src/testdir/test_alot.vim, runtime/doc/eval.txt Patch 7.4.1108 问题: Expanding "~" halfway a file name. 解决方案: Handle the file name as one name. (Marco Hinz) Add a test. Closes #564. 相关文件: src/testdir/test27.in, src/testdir/test27.ok, src/testdir/test_expand.vim, src/testdir/test_alot.vim, src/Makefile, src/misc2.c Patch 7.4.1109 (after 7.4.1107) 问题: MS-Windows doesn't have rmdir(). 解决方案: Add mch_rmdir(). 相关文件: src/os_win32.c, src/proto/os_win32.pro Patch 7.4.1110 问题: Test 108 fails when language is French. 解决方案: Force English messages. (Dominique Pelle) 相关文件: src/testdir/test108.in Patch 7.4.1111 问题: test_expand fails on MS-Windows. 解决方案: Always use forward slashes. Remove references to test27. 相关文件: src/testdir/runtest.vim, src/testdir/test_expand.vim, src/testdir/Make_dos.mak, src/testdir/Make_all.mak, src/testdir/Make_amiga.mak, src/testdir/Make_ming.mak Patch 7.4.1112 问题: When using ":next" with an illegal file name no error is reported. 解决方案: Give an error message. 相关文件: src/ex_cmds2.c Patch 7.4.1113 (after 7.4.1105) 问题: Using {ns} in variable name does not work. (lilydjwg) 解决方案: Fix recognizing colon. Add a test. 相关文件: src/eval.c, src/testdir/test_viml.vim Patch 7.4.1114 (after 7.4.1107) 问题: delete() does not work well with symbolic links. 解决方案: Recognize symbolic links. 相关文件: src/eval.c, src/fileio.c, src/os_unix.c, src/proto/os_unix.pro, src/testdir/test_delete.vim, runtime/doc/eval.txt Patch 7.4.1115 问题: MS-Windows: make clean in testdir doesn't clean everything. 解决方案: Add command to delete X* directories. (Ken Takata) 相关文件: src/testdir/Make_dos.mak Patch 7.4.1116 问题: delete(x, 'rf') does not delete files starting with a dot. 解决方案: Also delete files starting with a dot. 相关文件: src/misc1.c, src/fileio.c, src/vim.h Patch 7.4.1117 (after 7.4.1116) 问题: No longer get "." and ".." in directory list. 解决方案: Do not skip "." and ".." unless EW_DODOT is set. 相关文件: src/mics1.c Patch 7.4.1118 问题: Tests hang in 24 line terminal. 解决方案: Set the 'more' option off. 相关文件: src/testdir/runtest.vim Patch 7.4.1119 问题: argidx() has a wrong value after ":%argdelete". (Yegappan Lakshmanan) 解决方案: Correct the value of w_arg_idx. Add a test. 相关文件: src/ex_cmds2.c, src/testdir/test_arglist.vim, src/testdir/Make_all.mak Patch 7.4.1120 问题: delete(x, 'rf') fails if a directory is empty. (Lcd) 解决方案: Ignore not finding matches in an empty directory. 相关文件: src/fileio.c, src/misc1.c, src/vim.h, src/testdir/test_delete.vim Patch 7.4.1121 问题: test_expand leaves files behind. 解决方案: Edit another file before deleting, otherwise the swap file remains. 相关文件: src/testdir/test_expand.vim Patch 7.4.1122 问题: Test 92 and 93 fail when using gvim on a system with a non utf-8 locale. 解决方案: Avoid using .gvimrc by adding -U NONE. (Yukihiro Nakadaira) 相关文件: src/testdir/Make_dos.mak, src/testdir/Make_ming.mak, src/testdir/Make_vms.mms, src/testdir/Makefile Patch 7.4.1123 问题: Using ":argadd" when there are no arguments results in the second argument to be the current one. (Yegappan Lakshmanan) 解决方案: Correct the w_arg_idx value. 相关文件: src/ex_cmds2.c, src/testdir/test_arglist.vim Patch 7.4.1124 问题: MS-Windows: dead key behavior is not ideal. 解决方案: Handle dead keys differently when not in Insert or Select mode. (John Wellesz, closes #399) 相关文件: src/gui_w48.c Patch 7.4.1125 问题: There is no perleval(). 解决方案: Add perleval(). (Damien) 相关文件: runtime/doc/eval.txt, runtime/doc/usr_41.txt, src/eval.c, src/if_perl.xs, src/proto/if_perl.pro, src/testdir/Make_all.mak, src/testdir/test_perl.vim Patch 7.4.1126 问题: Can only get the directory of the current window. 解决方案: Add window and tab arguments to getcwd() and haslocaldir(). (Thinca, Hirohito Higashi) 相关文件: src/Makefile, src/testdir/Make_all.mak, src/testdir/test_getcwd.in, src/testdir/test_getcwd.ok, runtime/doc/eval.txt, patching file src/eval.c Patch 7.4.1127 问题: Both old and new style tests for Perl. 解决方案: Merge the old tests with the new style tests. 相关文件: src/Makefile, src/testdir/Make_all.mak, src/testdir/test_perl.in, src/testdir/test_perl.ok, src/testdir/test_perl.vim Patch 7.4.1128 问题: MS-Windows: delete() does not recognize junctions. 解决方案: Add mch_isrealdir() for MS-Windows. Update mch_is_symbolic_link(). (Ken Takata) 相关文件: src/fileio.c, src/os_win32.c, src/proto/os_win32.pro Patch 7.4.1129 问题: Python None value can't be converted to a Vim value. 解决方案: Just use zero. (Damien) 相关文件: src/if_py_both.h, src/testdir/test86.in, src/testdir/test86.ok, src/testdir/test87.in, src/testdir/test87.ok, Patch 7.4.1130 问题: Memory leak in :vimgrep. 解决方案: Call FreeWild(). (Yegappan Lakshmanan) 相关文件: src/quickfix.c Patch 7.4.1131 问题: New lines in the viminfo file are dropped. 解决方案: Copy lines starting with "|". Fix that when using :rviminfo in a function global variables were restored as function-local variables. 相关文件: src/eval.c, src/structs.h, src/ex_cmds.c, src/misc2.c, src/proto/misc2.pro, src/testdir/test_viminfo.vim, src/testdir/Make_all.mak, src/testdir/test74.in, src/testdir/test74.ok Patch 7.4.1132 问题: Old style tests for the argument list. 解决方案: Add more new style tests. (Yegappan Lakshmanan) 相关文件: src/testdir/test_arglist.vim, src/testdir/test_argument_0count.in, src/testdir/test_argument_0count.ok, src/testdir/test_argument_count.in, src/Makefile, src/testdir/test_argument_count.ok, src/testdir/Make_all.mak Patch 7.4.1133 问题: Generated function prototypes still have __ARGS(). 解决方案: Generate function prototypes without __ARGS(). 相关文件: src/Makefile, src/if_ruby.c, src/os_win32.c, src/proto/blowfish.pro, src/proto/buffer.pro, src/proto/charset.pro, src/proto/crypt.pro, src/proto/crypt_zip.pro, src/proto/diff.pro, src/proto/digraph.pro, src/proto/edit.pro, src/proto/eval.pro, src/proto/ex_cmds2.pro, src/proto/ex_cmds.pro, src/proto/ex_docmd.pro, src/proto/ex_eval.pro, src/proto/ex_getln.pro, src/proto/fileio.pro, src/proto/fold.pro, src/proto/getchar.pro, src/proto/gui_athena.pro, src/proto/gui_beval.pro, src/proto/gui_gtk_gresources.pro, src/proto/gui_gtk.pro, src/proto/gui_gtk_x11.pro, src/proto/gui_mac.pro, src/proto/gui_motif.pro, src/proto/gui_photon.pro, src/proto/gui.pro, src/proto/gui_w16.pro, src/proto/gui_w32.pro, src/proto/gui_x11.pro, src/proto/gui_xmdlg.pro, src/proto/hangulin.pro, src/proto/hardcopy.pro, src/proto/hashtab.pro, src/proto/if_cscope.pro, src/proto/if_lua.pro, src/proto/if_mzsch.pro, src/proto/if_ole.pro, src/proto/if_perl.pro, src/proto/if_perlsfio.pro, src/proto/if_python3.pro, src/proto/if_python.pro, src/proto/if_ruby.pro, src/proto/if_tcl.pro, src/proto/if_xcmdsrv.pro, src/proto/main.pro, src/proto/mark.pro, src/proto/mbyte.pro, src/proto/memfile.pro, src/proto/memline.pro, src/proto/menu.pro, src/proto/message.pro, src/proto/misc1.pro, src/proto/misc2.pro, src/proto/move.pro, src/proto/netbeans.pro, src/proto/normal.pro, src/proto/ops.pro, src/proto/option.pro, src/proto/os_amiga.pro, src/proto/os_beos.pro, src/proto/os_mac_conv.pro, src/proto/os_msdos.pro, src/proto/os_mswin.pro, src/proto/os_qnx.pro, src/proto/os_unix.pro, src/proto/os_vms.pro, src/proto/os_win16.pro, src/proto/os_win32.pro, src/proto/popupmnu.pro, src/proto/pty.pro, src/proto/quickfix.pro, src/proto/regexp.pro, src/proto/screen.pro, src/proto/search.pro, src/proto/sha256.pro, src/proto/spell.pro, src/proto/syntax.pro, src/proto/tag.pro, src/proto/termlib.pro, src/proto/term.pro, src/proto/ui.pro, src/proto/undo.pro, src/proto/version.pro, src/proto/winclip.pro, src/proto/window.pro, src/proto/workshop.pro Patch 7.4.1134 问题: The arglist test fails on MS-Windows. 解决方案: Only check for failure of argedit on Unix. 相关文件: src/testdir/test_arglist.vim Patch 7.4.1135 问题: One more arglist test fails on MS-Windows. 解决方案: Don't edit "Y" after editing "y". 相关文件: src/testdir/test_arglist.vim Patch 7.4.1136 问题: Wrong argument to assert_exception() causes a crash. (reported by Coverity) 解决方案: Check for NULL pointer. Add a test. 相关文件: src/eval.c, src/testdir/test_assert.vim Patch 7.4.1137 问题: Illegal memory access when using :copen and :cclose. 解决方案: Avoid that curbuf is invalid. (suggestion by Justin M. Keyes) Add a test. 相关文件: src/window.c, src/testdir/test_quickfix.vim Patch 7.4.1138 问题: When running gvim in the foreground some icons are missing. (Taylor Venable) 解决方案: Move the call to gui_gtk_register_resource(). (Kazunobu Kuriyama) 相关文件: src/gui_gtk_x11.c Patch 7.4.1139 问题: MS-Windows: getftype() returns "file" for symlink to directory. 解决方案: Make it return "dir". (Ken Takata) 相关文件: src/os_mswin.c Patch 7.4.1140 问题: Recognizing <sid> does not work when the language is Turkish. (Christian Brabandt) 解决方案: Use MB_STNICMP() instead of STNICMP(). 相关文件: src/eval.c Patch 7.4.1141 问题: Using searchpair() with a skip expression that uses syntax highlighting sometimes doesn't work. (David Fishburn) 解决方案: Reset next_match_idx. (Christian Brabandt) 相关文件: src/syntax.c Patch 7.4.1142 问题: Cannot define keyword characters for a syntax file. 解决方案: Add the ":syn iskeyword" command. (Christian Brabandt) 相关文件: runtime/doc/options.txt, runtime/doc/syntax.txt, src/buffer.c, src/option.c, src/structs.h, src/syntax.c, src/testdir/Make_all.mak, src/testdir/test_syntax.vim Patch 7.4.1143 问题: Can't sort on floating point numbers. 解决方案: Add the "f" flag to ":sort". (Alex Jakushev) Also add the "f" flag to sort(). 相关文件: runtime/doc/change.txt, src/ex_cmds.c, src/testdir/test_sort.vim, src/testdir/test57.in, src/testdir/test57.ok, src/eval.c Patch 7.4.1144 (after 7.4.1143) 问题: Can't build on several systems. 解决方案: Include float.h. (Christian Robinson, closes #570 #571) 相关文件: src/ex_cmds.c Patch 7.4.1145 问题: Default features are conservative. 解决方案: Make the default feature set for most of today's systems "huge". 相关文件: src/feature.h, src/configure.in, src/auto/configure Patch 7.4.1146 问题: Can't build with Python 3 interface using MingW. 解决方案: Update the Makefile. (Yasuhiro Matsumoto, Ken Takata) 相关文件: src/Make_cyg_ming.mak Patch 7.4.1147 问题: Conflict for "chartab". (Kazunobu Kuriyama) 解决方案: Rename the global one to something less obvious. Move it into src/chartab.c. 相关文件: src/macros.h, src/globals.h, src/charset.c, src/main.c, src/option.c, src/screen.c, src/vim.h Patch 7.4.1148 问题: Default for MingW and Cygwin is still "normal". 解决方案: Use "huge" as default. (Ken Takata) 相关文件: src/Make_cyg_ming.mak, src/Make_mvc.mak Patch 7.4.1149 (after 7.4.1013) 问题: Using the local value of 'errorformat' causes more problems than it solves. 解决方案: Revert 7.4.1013. 相关文件: runtime/doc/quickfix.txt, src/quickfix.c Patch 7.4.1150 问题: 'langmap' applies to the first character typed in Select mode. (David Watson) 解决方案: Check for SELECTMODE. (Christian Brabandt, closes #572) Add the 'x' flag to feedkeys(). 相关文件: src/getchar.c, src/normal.c, src/testdir/test_langmap.vim, src/ex_docmd.c, src/proto/ex_docmd.pro, src/testdir/Make_all.mak, runtime/doc/eval.txt Patch 7.4.1151 (after 7.4.1150) 问题: Missing change to eval.c 解决方案: Also change feedkeys(). 相关文件: src/eval.c Patch 7.4.1152 问题: Langmap test fails with normal build. 解决方案: Check for +langmap feature. 相关文件: src/testdir/test_langmap.vim Patch 7.4.1153 问题: Autocommands triggered by quickfix cannot always get the current title value. 解决方案: Call qf_fill_buffer() later. (Christian Brabandt) 相关文件: src/quickfix.c, src/testdir/test_quickfix.vim Patch 7.4.1154 问题: No support for JSON. 解决方案: Add jsonencode() and jsondecode(). Also add v:false, v:true, v:null and v:none. 相关文件: src/json.c, src/eval.c, src/proto.h, src/structs.h, src/vim.h, src/if_lua.c, src/if_mzsch.c, src/if_ruby.c, src/if_py_both.h, src/globals.h, src/Makefile, src/Make_bc3.mak, src/Make_bc5.mak, src/Make_cyg_ming.mak, src/Make_dice.mak, src/Make_ivc.mak, src/Make_manx.mak, src/Make_morph.mak, src/Make_mvc.mak, src/Make_sas.mak, src/Make_vms.mms, src/proto/json.pro, src/proto/eval.pro, src/testdir/test_json.vim, src/testdir/test_alot.vim, Filelist, runtime/doc/eval.txt Patch 7.4.1155 问题: Build with normal features fails. 解决方案: Always define dict_lookup(). 相关文件: src/eval.c Patch 7.4.1156 问题: Coverity warns for NULL pointer and ignoring return value. 解决方案: Check for NULL pointer. When dict_add() returns FAIL free the item. 相关文件: src/json.c Patch 7.4.1157 问题: type() does not work for v:true, v:none, etc. 解决方案: Add new type numbers. 相关文件: src/eval.c, src/testdir/test_json.vim, src/testdir/test_viml.vim Patch 7.4.1158 问题: Still using __ARGS(). 解决方案: Remove __ARGS() from eval.c 相关文件: src/eval.c Patch 7.4.1159 问题: Automatically generated function prototypes use __ARGS. 解决方案: Remove __ARGS from osdef.sh. 相关文件: src/osdef.sh, src/osdef1.h.in, src/osdef2.h.in Patch 7.4.1160 问题: No error for jsondecode('"'). 解决方案: Give an error message for missing double quote. 相关文件: src/json.c Patch 7.4.1161 问题: ":argadd" without argument is supposed to add the current buffer name to the arglist. 解决方案: Make it work as documented. (Coot, closes #577) 相关文件: src/ex_cmds.h, src/ex_cmds2.c, src/testdir/test_arglist.vim Patch 7.4.1162 问题: Missing error number in MzScheme. (Dominique Pelle) 解决方案: Add a proper error number. 相关文件: src/if_mzsch.c Patch 7.4.1163 问题: Expressions "0 + v:true" and "'' . v:true" cause an error. 解决方案: Return something sensible when using a special variable as a number or as a string. (suggested by Damien) 相关文件: src/eval.c, src/testdir/test_viml.vim Patch 7.4.1164 问题: No tests for comparing special variables. Error in jsondecode() not reported. test_json does not work with Japanese system. 解决方案: Set scriptencoding. (Ken Takata) Add a few more tests. Add error. 相关文件: src/json.c, src/testdir/test_viml.vim, src/testdir/test_json.vim Patch 7.4.1165 问题: When defining DYNAMIC_ICONV_DLL in the makefile, the build fails. 解决方案: Add #ifdef's. (Taro Muraoka) Try the newer version first. 相关文件: src/mbyte.c, src/os_win32.c Patch 7.4.1166 问题: Can't encode a Funcref into JSON. jsonencode() doesn't handle the same list or dict twice properly. (Nikolai Pavlov) 解决方案: Give an error. Reset copyID when the list or dict is finished. 相关文件: src/json.c, src/proto/json.pro, src/testdir/test_json.vim Patch 7.4.1167 问题: No tests for "is" and "isnot" with the new variables. 解决方案: Add tests. 相关文件: src/testdir/test_viml.vim Patch 7.4.1168 问题: This doesn't give the right result: eval(string(v:true)). (Nikolai Pavlov) 解决方案: Make the string "v:true" instead of "true". 相关文件: src/eval.c, src/testdir/test_viml.vim Patch 7.4.1169 问题: The socket I/O is intertwined with the netbeans code. 解决方案: Start refactoring the netbeans communication to split off the socket I/O. Add the +channel feature. 相关文件: src/channel.c, src/netbeans.c, src/proto/channel.pro, src/proto/netbeans.pro, src/proto/gui_w32.pro, src/gui_w32.c, src/eval.c, src/os_mswin.c, src/ui.c, src/macros.h, Makefile, src/proto.h, src/feature.h, src/os_unix.c, src/vim.h, src/configure.in, src/auto/configure, src/config.mk.in, src/config.aap.in, src/config.h.in, src/Make_bc5.mak, src/Make_cyg_ming.mak, src/Make_mvc.mak Patch 7.4.1170 (after 7.4.1169) 问题: Missing changes in src/Makefile, Filelist. 解决方案: Add the missing changes. 相关文件: Filelist, src/Makefile Patch 7.4.1171 问题: Makefile dependencies are outdated. 解决方案: Run "make depend". Add GTK resource dependencies. 相关文件: src/Makefile Patch 7.4.1172 (after 7.4.1169) 问题: Configure is overly positive. 解决方案: Insert "test". 相关文件: src/configure.in, src/auto/configure Patch 7.4.1173 (after 7.4.1168) 问题: No test for new behavior of v:true et al. 解决方案: Add a test. 相关文件: src/testdir/test_viml.vim Patch 7.4.1174 问题: Netbeans contains dead code inside #ifndef INIT_SOCKETS. 解决方案: Remove the dead code. 相关文件: src/netbeans.c Patch 7.4.1175 (after 7.4.1169) 问题: Can't build with Mingw and Cygwin. 解决方案: Remove extra "endif". (Christian J. Robinson) 相关文件: src/Make_cyg_ming.mak Patch 7.4.1176 问题: Missing change to proto file. 解决方案: Update the proto file. (Charles Cooper) 相关文件: src/proto/gui_w32.pro Patch 7.4.1177 问题: The +channel feature is not in :version output. (Tony Mechelynck) 解决方案: Add the feature string. 相关文件: src/version.c Patch 7.4.1178 问题: empty() doesn't work for the new special variables. 解决方案: Make empty() work. (Damien) 相关文件: src/eval.c, src/testdir/test_viml.vim Patch 7.4.1179 问题: test_writefile and test_viml do not delete the tempfile. 解决方案: Delete the tempfile. (Charles Cooper) Add DeleteTheScript(). 相关文件: src/testdir/test_writefile.in, src/testdir/test_viml.vim Patch 7.4.1180 问题: Crash with invalid argument to glob2regpat(). 解决方案: Check for NULL. (Justin M. Keyes, closes #596) Add a test. 相关文件: src/eval.c, src/testdir/test_glob2regpat.vim, src/testdir/test_alot.vim Patch 7.4.1181 问题: free_tv() can't handle special variables. (Damien) 解决方案: Add the variable type. 相关文件: src/eval.c, src/testdir/test_viml.vim Patch 7.4.1182 问题: Still socket code intertwined with netbeans. 解决方案: Move code from netbeans.c to channel.c 相关文件: src/channel.c, src/netbeans.c, src/proto/channel.pro, src/proto/netbeans.pro, src/gui.c, src/gui_w48.c Patch 7.4.1183 (after 7.4.1182) 问题: MS-Windows build is broken. 解决方案: Remove init in wrong place. 相关文件: src/channel.c Patch 7.4.1184 (after 7.4.1182) 问题: MS-Windows build is still broken. 解决方案: Change nbsock to ch_fd. 相关文件: src/channel.c Patch 7.4.1185 问题: Can't build with TCL on some systems. 解决方案: Rename the channel_ functions. 相关文件: src/if_tcl.c Patch 7.4.1186 问题: Error messages for security context are hard to translate. 解决方案: Use one string with %s. (Ken Takata) 相关文件: src/os_unix.c Patch 7.4.1187 问题: MS-Windows channel code only supports one channel. Doesn't build without netbeans support. 解决方案: Get the channel index from the socket in the message. Closes #600. 相关文件: src/channel.c, src/netbeans.c, src/gui_w48.c, src/proto/channel.pro, src/proto/netbeans.pro Patch 7.4.1188 问题: Using older JSON standard. 解决方案: Update the link. Adjust the text a bit. 相关文件: src/json.c, runtime/doc/eval.txt Patch 7.4.1189 (after 7.4.1165) 问题: Using another language on MS-Windows does not work. (Yongwei Wu) 解决方案: Undo the change to try loading libintl-8.dll first. 相关文件: src/os_win32.c Patch 7.4.1190 问题: On OSX the default flag for dlopen() is different. 解决方案: Add RTLD_LOCAL in the configure check. (sv99, closes #604) 相关文件: src/configure.in, src/auto/configure Patch 7.4.1191 问题: The channel feature isn't working yet. 解决方案: Add the connect(), disconnect(), sendexpr() and sendraw() functions. Add initial documentation. Add a demo server. 相关文件: src/channel.c, src/eval.c, src/proto/channel.pro, src/proto/eval.pro, runtime/doc/channel.txt, runtime/doc/eval.txt, runtime/doc/Makefile, runtime/tools/demoserver.py Patch 7.4.1192 问题: Can't build with FEAT_EVAL but without FEAT_MBYTE. (John Marriott) 解决方案: Add #ifdef for FEAT_MBYTE. 相关文件: src/json.c Patch 7.4.1193 问题: Can't build the channel feature on MS-Windows. 解决方案: Add #ifdef HAVE_POLL. 相关文件: src/channel.c Patch 7.4.1194 问题: Compiler warning for not using return value of fwrite(). 解决方案: Return OK/FAIL. (Charles Campbell) 相关文件: src/channel.c, src/proto/channel.pro Patch 7.4.1195 问题: The channel feature does not work in the MS-Windows console. 解决方案: Add win32 console support. (Yasuhiro Matsumoto) 相关文件: src/channel.c, src/gui_w32.c, src/os_mswin.c, src/os_win32.c, src/proto/gui_w32.pro, src/proto/os_mswin.pro, src/vim.h Patch 7.4.1196 问题: Still using __ARGS. 解决方案: Remove __ARGS in several files. (script by Hirohito Higashi) 相关文件: src/arabic.c, src/buffer.c, src/charset.c, src/crypt_zip.c, src/diff.c, src/digraph.c, src/edit.c, src/ex_cmds.c, src/ex_cmds2.c, src/ex_docmd.c Patch 7.4.1197 问题: Still using __ARGS. 解决方案: Remove __ARGS in several files. (script by Hirohito Higashi) 相关文件: src/ex_eval.c, src/ex_getln.c, src/farsi.c, src/fileio.c, src/fold.c, src/getchar.c, src/gui.c, src/gui_at_fs.c, gui_at_sb.c, src/gui_athena.c, src/gui_beval.c, src/gui_motif.c, src/gui_w32.c, src/gui_w48.c Patch 7.4.1198 问题: Still using __ARGS. 解决方案: Remove __ARGS in several files. (script by Hirohito Higashi) Also remove use of HAVE_STDARG_H. 相关文件: src/gui_x11.c, src/hangulin.c, src/hardcopy.c, src/hashtab.c, src/if_cscope.c, src/if_python3.c, src/if_sniff.c, src/if_xcmdsrv.c, src/main.c, src/mark.c, src/mbyte.c, src/memfile.c, src/memfile_test.c, src/memline.c, src/menu.c, src/message.c, src/misc1.c, src/misc2.c, src/move.c, src/netbeans.c, src/normal.c Patch 7.4.1199 问题: Still using __ARGS. 解决方案: Remove __ARGS in several files. (script by Hirohito Higashi) 相关文件: src/ops.c, src/option.c, src/os_amiga.c, src/os_mac_conv.c, src/os_unix.c, src/os_vms.c, src/os_w32exe.c, src/popupmnu.c, src/pty.c, src/quickfix.c, src/regexp.c, src/regexp_nfa.c, src/screen.c, src/search.c, src/sha256.c, src/spell.c, src/syntax.c, src/tag.c, src/term.c, src/termlib.c, src/ui.c, src/undo.c, src/version.c, src/window.c Patch 7.4.1200 问题: Still using __ARGS. 解决方案: Remove __ARGS in several files. (script by Hirohito Higashi) 相关文件: src/blowfish.c, src/ex_cmds2.c, src/ex_getln.c, src/fold.c, src/gui_beval.c, src/gui_w32.c, src/os_unix.c, src/os_win16.c, src/pty.c, src/regexp.c, src/syntax.c, src/xpm_w32.c, src/ex_cmds.h, src/globals.h, src/gui_at_sb.h, src/gui_beval.h, src/if_cscope.h, src/if_sniff.h, src/nbdebug.h, src/os_unix.h, src/proto.h, src/structs.h, src/vim.h, src/xpm_w32.h, src/if_perl.xs, src/proto/if_lua.pro, src/proto/pty.pro, runtime/tools/xcmdsrv_client.c, src/Makefile Patch 7.4.1201 问题: One more file still using __ARGS. 解决方案: Remove __ARGS in the last file. (script by Hirohito Higashi) 相关文件: src/gui_at_sb.c Patch 7.4.1202 问题: Still one more file still using __ARGS. 解决方案: Remove __ARGS in the last file. (script by Hirohito Higashi) (closes #612) 相关文件: src/proto/os_mac_conv.pro, src/os_mac_conv.c, src/Makefile Patch 7.4.1203 问题: Still more files still using __ARGS. 解决方案: Remove __ARGS in really the last files. 相关文件: src/proto/if_mzsch.pro, src/if_mzsch.c, src/vim.h, src/proto/gui_gtk_gresources.pro, src/proto/gui_mac.pro, src/proto/if_ole.pro, src/proto/os_qnx.pro, src/Makefile Patch 7.4.1204 问题: Latin1 characters cause encoding conversion. 解决方案: Remove the characters. 相关文件: src/gui_motif.c Patch 7.4.1205 问题: Using old style function declarations. 解决方案: Change to new style function declarations. (script by Hirohito Higashi) 相关文件: src/arabic.c, src/blowfish.c, src/buffer.c, src/channel.c, src/charset.c, src/crypt.c, src/crypt_zip.c, src/diff.c, src/digraph.c, src/edit.c, src/eval.c Patch 7.4.1206 问题: Using old style function declarations. 解决方案: Change to new style function declarations. (script by Hirohito Higashi) 相关文件: src/ex_cmds.c, src/ex_cmds2.c, src/ex_docmd.c, src/ex_eval.c, src/ex_getln.c, src/farsi.c, src/fileio.c Patch 7.4.1207 问题: Using old style function declarations. 解决方案: Change to new style function declarations. (script by Hirohito Higashi) 相关文件: src/fold.c, src/getchar.c, src/gui_at_fs.c, src/gui_athena.c, src/gui_at_sb.c, src/gui_beval.c, src/gui.c, src/gui_gtk.c, src/gui_gtk_x11.c, src/gui_mac.c, src/gui_motif.c Patch 7.4.1208 问题: Using old style function declarations. 解决方案: Change to new style function declarations. (script by Hirohito Higashi) 相关文件: src/gui_photon.c, src/gui_w32.c, src/gui_w48.c, src/gui_x11.c, src/hangulin.c, src/hardcopy.c, src/hashtab.c, src/if_cscope.c, src/if_mzsch.c, src/if_perlsfio.c, src/if_python.c, src/if_python3.c, src/if_ruby.c, src/if_sniff.c, src/if_tcl.c, src/if_xcmdsrv.c, src/integration.c Patch 7.4.1209 (after 7.4.1207) 问题: Can't build with Athena. (Elimar Riesebieter) 解决方案: Fix function declarations. 相关文件: src/gui_athena.c, src/gui_x11.c, src/gui_at_sb.c, src/gui_at_fs.c Patch 7.4.1210 问题: Using old style function declarations. 解决方案: Change to new style function declarations. (script by Hirohito Higashi) 相关文件: src/main.c, src/mark.c, src/mbyte.c, src/memfile.c, src/memfile_test.c, src/memline.c, src/menu.c, src/message.c Patch 7.4.1211 问题: Using old style function declarations. 解决方案: Change to new style function declarations. (script by Hirohito Higashi) 相关文件: src/misc1.c, src/misc2.c, src/move.c, src/netbeans.c, src/normal.c, src/ops.c, src/option.c Patch 7.4.1212 (after 7.4.1207) 问题: Can't build with Motif. 解决方案: Fix function declaration.(Dominique Pelle) 相关文件: src/gui_motif.c Patch 7.4.1213 问题: Using old style function declarations. 解决方案: Change to new style function declarations. (script by Hirohito Higashi) 相关文件: src/os_amiga.c, src/os_mac_conv.c, src/os_msdos.d, src/os_mswin.c, src/os_qnx.c, src/os_unix.c, src/os_vms.c, src/os_win16.c, src/os_win32.c, src/popupmnu.c, src/pty.c, src/quickfix.c, src/regexp.c, src/regexp_nfa.c, src/screen.c Patch 7.4.1214 问题: Using old style function declarations. 解决方案: Change to new style function declarations. (script by Hirohito Higashi) 相关文件: src/search.c, src/sha256.c, src/spell.c, src/syntax.c, src/tag.c, src/term.c, src/termlib.c, src/ui.c, src/undo.c Patch 7.4.1215 问题: Using old style function declarations. 解决方案: Change to new style function declarations. (script by Hirohito Higashi) 相关文件: src/version.c, src/winclip.c, src/window.c, src/workshop.c, src/xpm_w32.c, runtime/doc/doctags.c, runtime/tools/xcmdsrv_client.c, src/po/sjiscorr.c, src/xxd/xxd.c Patch 7.4.1216 问题: Still using HAVE_STDARG_H. 解决方案: Assume it's always defined. 相关文件: src/eval.c, src/misc2.c, src/vim.h, src/proto.h, src/configure.in, src/auto/configure, config.h.in, src/os_amiga.h, src/os_msdos.h, src/os_vms_conf.h, src/os_win32.h Patch 7.4.1217 问题: Execution of command on channel doesn't work yet. 解决方案: Implement the "ex" and "normal" commands. 相关文件: src/channel.c, src/proto/channel.pro, src/misc2.c, src/eval.c, src/ex_docmd.c, src/proto/ex_docmd.pro, src/feature.h Patch 7.4.1218 问题: Missing change in configure. More changes for function style. 解决方案: Avoid the typos. 相关文件: src/configure.in, src/config.h.in, runtime/tools/ccfilter.c, src/os_msdos.c Patch 7.4.1219 问题: Build fails with +channel but without +float. 解决方案: Add #ifdef. 相关文件: src/ex_cmds.c Patch 7.4.1220 问题: Warnings for unused variables in tiny build. (Tony Mechelynck) 解决方案: Move declarations inside #ifdef. (Hirohito Higashi) 相关文件: src/ex_cmds.c Patch 7.4.1221 问题: Including netbeans and channel support in small and tiny builds. Build fails with some interfaces. 解决方案: Only include these features in small build and above. Let configure fail if trying to enable an interface that won't build. 相关文件: src/configure.in, src/auto/configure Patch 7.4.1222 问题: ":normal" command and others missing in tiny build. 解决方案: Graduate FEAT_EX_EXTRA. 相关文件: src/feature.h, src/charset.c, src/eval.c, src/ex_cmds.c, src/ex_cmds2.c, src/ex_docmd.c, src/ex_getln.c, src/getchar.c, src/normal.c, src/ui.c, src/version.c, src/globals.h Patch 7.4.1223 问题: Crash when setting v:errors to a number. 解决方案: Free the typval without assuming its type. (Yasuhiro Matsumoto) 相关文件: src/eval.c, src/testdir/test_assert.vim Patch 7.4.1224 问题: Build problems with GTK on BSD. (Mike Williams) 解决方案: Don't use "$<". Skip building gui_gtk_gresources.h when it doesn't work. (Kazunobu Kuriyama) 相关文件: src/Makefile Patch 7.4.1225 问题: Still a few old style function declarations. 解决方案: Make them new style. (Hirohito Higashi) 相关文件: runtime/tools/blink.c, src/eval.c, src/ex_cmds2.c, src/ex_getln.c, src/fileio.c, src/gui_w32.c, src/gui_x11.c, src/if_perl.xs, src/os_unix.c, src/po/sjiscorr.c, src/pty.c Patch 7.4.1226 问题: GRESOURCE_HDR is unused. 解决方案: Remove it. (Kazunobu Kuriyama) 相关文件: src/configure.in, src/auto/configure, src/config.mk.in Patch 7.4.1227 问题: Compiler warnings. 解决方案: Add UNUSED. Add type cast. (Yegappan Lakshmanan) 相关文件: src/getchar.c, src/os_macosx.m Patch 7.4.1228 问题: copy() and deepcopy() fail with special variables. (Nikolai Pavlov) 解决方案: Make it work. Add a test. Closes #614. 相关文件: src/eval.c, src/testdir/test_viml.vim Patch 7.4.1229 问题: "eval" and "expr" channel commands don't work yet. 解决方案: Implement them. Update the error numbers. Also add "redraw". 相关文件: src/channel.c, src/eval.c, src/json.c, src/ex_docmd.c, src/proto/channel.pro, src/proto/json.pro, src/proto/ex_docmd.pro, runtime/doc/channel.txt Patch 7.4.1230 问题: Win32: opening a channel may hang. Not checking for messages while waiting for characters. 解决方案: Add a zero timeout. Call parse_queued_messages(). (Yasuhiro Matsumoto) 相关文件: src/os_win32.c Patch 7.4.1231 问题: JSON messages are not parsed properly. 解决方案: Queue received messages. 相关文件: src/eval.c src/channel.c, src/json.c, src/proto/eval.pro, src/proto/channel.pro, src/proto/json.pro, src/structs.h Patch 7.4.1232 问题: Compiler warnings when the Sniff feature is enabled. 解决方案: Add UNUSED. 相关文件: src/gui_gtk_x11.c Patch 7.4.1233 问题: Channel command may cause a crash. 解决方案: Check for NULL argument. (Damien) 相关文件: src/channel.c Patch 7.4.1234 问题: Demo server only runs with Python 2. 解决方案: Make it run with Python 3 as well. (Ken Takata) 相关文件: runtime/tools/demoserver.py Patch 7.4.1235 (after 7.4.1231) 问题: Missing change to eval.c. 解决方案: Include that change. 相关文件: src/eval.c Patch 7.4.1236 问题: When "syntax manual" was used switching between buffers removes the highlighting. 解决方案: Set the syntax option without changing the value. (Anton Lindqvist) 相关文件: runtime/syntax/manual.vim Patch 7.4.1237 问题: Can't translate message without adding a line break. 解决方案: Join the two parts of the message. 相关文件: src/memline.c Patch 7.4.1238 问题: Can't handle two messages right after each other. 解决方案: Find the end of the JSON. Read more when incomplete. Add a C test for the JSON decoding. 相关文件: src/channel.c, src/json.c, src/proto/json.pro, src/eval.c, src/Makefile, src/json_test.c, src/memfile_test.c, src/structs.h Patch 7.4.1239 问题: JSON message after the first one is dropped. 解决方案: Put remainder of message back in the queue. 相关文件: src/channel.c Patch 7.4.1240 问题: Visual studio tools are noisy. 解决方案: Suppress startup info. (Mike Williams) 相关文件: src/GvimExt/Makefile, src/Make_mvc.mak, src/tee/Make_mvc.mak Patch 7.4.1241 (after 7.4.1238) 问题: Missing change in Makefile due to diff mismatch 解决方案: Update the list of object files. 相关文件: src/Makefile Patch 7.4.1242 (after 7.4.1238) 问题: json_test fails without the eval feature. 解决方案: Add #ifdef. 相关文件: src/json_test.c Patch 7.4.1243 问题: Compiler warning for uninitialized variable. 解决方案: Initialize it. (Elias Diem) 相关文件: src/json.c Patch 7.4.1244 问题: The channel functions don't sort together. 解决方案: Use a common "ch_" prefix. 相关文件: src/eval.c, runtime/doc/eval.txt, runtime/tools/demoserver.py Patch 7.4.1245 问题: File missing from distribution. 解决方案: Add json_test.c. 相关文件: Filelist Patch 7.4.1246 问题: The channel functionality isn't tested. 解决方案: Add a test using a Python test server. 相关文件: src/channel.c, src/proto/channel.pro, src/testdir/test_channel.vim, src/testdir/test_channel.py, src/testdir/Make_all.mak Patch 7.4.1247 问题: The channel test doesn't run on MS-Windows. 解决方案: Make it work on the MS-Windows console. (Ken Takata) 相关文件: src/testdir/test_channel.py, src/testdir/test_channel.vim Patch 7.4.1248 问题: Can't reliably stop the channel test server. Can't start the server if the python file is not executable. 解决方案: Use "pkill" instead of "killall". Run the python file as an argument instead of as an executable. 相关文件: src/testdir/test_channel.vim Patch 7.4.1249 问题: Crash when the process a channel is connected to exits. 解决方案: Use the file descriptor properly. Add a test. (Damien) Also add a test for eval(). 相关文件: src/channel.c, src/testdir/test_channel.py, src/testdir/test_channel.vim Patch 7.4.1250 问题: Running tests in shadow directory fails. 解决方案: Also link testdir/*.py 相关文件: src/Makefile Patch 7.4.1251 问题: New test file missing from distribution. 解决方案: Add src/testdir/*.py. 相关文件: Filelist Patch 7.4.1252 问题: The channel test server may receive two messages concatenated. 解决方案: Split the messages. 相关文件: src/testdir/test_channel.py Patch 7.4.1253 问题: Python test server not displaying second of two commands. Solaris doesn't have "pkill --full". 解决方案: Also echo the second command. Use "pkill -f". 相关文件: src/testdir/test_channel.py, src/testdir/test_channel.vim Patch 7.4.1254 问题: Opening a second channel causes a crash. (Ken Takata) 解决方案: Don't re-allocate the array with channels. 相关文件: src/channel.c, src/testdir/test_channel.vim, src/testdir/test_channel.py Patch 7.4.1255 问题: Crash for channel "eval" command without third argument. 解决方案: Check for missing argument. 相关文件: src/channel.c, src/testdir/test_channel.vim, src/testdir/test_channel.py Patch 7.4.1256 问题: On Mac sys.exit(0) doesn't kill the test server. 解决方案: Use self.server.shutdown(). (Jun Takimoto) 相关文件: src/testdir/test_channel.py Patch 7.4.1257 问题: Channel test fails in some configurations. 解决方案: Add check for the +channel feature. 相关文件: src/testdir/test_channel.vim Patch 7.4.1258 问题: The channel test can fail if messages arrive later. 解决方案: Add a short sleep. (Jun Takimoto) 相关文件: src/testdir/test_channel.vim Patch 7.4.1259 问题: No test for what patch 7.3.414 fixed. 解决方案: Add a test. (Elias Diem) 相关文件: src/testdir/test_increment.vim Patch 7.4.1260 问题: The channel feature doesn't work on Win32 GUI. 解决方案: Use WSAGetLastError(). (Ken Takata) 相关文件: src/channel.c, src/testdir/test_channel.vim, src/vim.h Patch 7.4.1261 问题: Pending channel messages are garbage collected. Leaking memory in ch_sendexpr(). Leaking memory for a decoded JSON string. 解决方案: Mark the message list as used. Free the encoded JSON. Don't save the JSON string. 相关文件: src/eval.c, src/channel.c, src/json.c, src/proto/channel.pro Patch 7.4.1262 问题: The channel callback is not invoked. 解决方案: Make a list of pending callbacks. 相关文件: src/eval.c, src/channel.c, src/proto/channel.pro, src/testdir/test_channel.vim Patch 7.4.1263 问题: ch_open() hangs when the server isn't running. 解决方案: Add a timeout. Use a dict to pass arguments. (Yasuhiro Matsumoto) 相关文件: runtime/doc/eval.txt, runtime/doc/channel.txt, src/channel.c, src/eval.c, src/netbeans.c, src/os_win32.c, src/proto/channel.pro, src/testdir/test_channel.vim Patch 7.4.1264 问题: Crash when receiving an empty array. 解决方案: Check for array with wrong number of arguments. (Damien) 相关文件: src/channel.c, src/eval.c, src/testdir/test_channel.py, src/testdir.test_channel.vim Patch 7.4.1265 问题: Not all channel commands are tested. 解决方案: Add a test for "normal", "expr" and "redraw". 相关文件: src/testdir/test_channel.py, src/testdir/test_channel.vim Patch 7.4.1266 问题: A BufAdd autocommand may cause an ml_get error (Christian Brabandt) 解决方案: Increment RedrawingDisabled earlier. 相关文件: src/ex_cmds.c Patch 7.4.1267 问题: Easy to miss handling all types of variables. 解决方案: Change the variable type into an enum. 相关文件: src/structs.h, src/eval.c Patch 7.4.1268 问题: Waittime is used as seconds instead of milliseconds. (Hirohito Higashi) 解决方案: Divide by 1000. 相关文件: src/channel.c Patch 7.4.1269 问题: Encoding {'key':v:none} to JSON doesn't give an error (Tyru) 解决方案: Give an error. 相关文件: src/json.c, src/testdir/test_json.vim Patch 7.4.1270 问题: Warnings for missing values in switch. 解决方案: Change switch to if-else or add values. 相关文件: src/if_py_both.h, src/if_python.c, src/if_python3.c Patch 7.4.1271 问题: assert_false(v:false) reports an error. (Nikolai Pavlov) 解决方案: Recognize v:true and v:false. (Closes #625) 相关文件: src/eval.c, src/testdir/test_assert.vim Patch 7.4.1272 (after 7.4.1270) 问题: Using future enum value. 解决方案: Remove it. 相关文件: src/if_python.c, src/if_python3.c Patch 7.4.1273 (after 7.4.1271) 问题: assert_false(v:false) still fails. 解决方案: Fix the typo. 相关文件: src/eval.c Patch 7.4.1274 问题: Cannot run a job. 解决方案: Add job_start(), job_status() and job_stop(). Currently only works for Unix. 相关文件: src/eval.c, src/structs.h, runtime/doc/eval.txt, src/os_unix.c, src/proto/os_unix.pro, src/feature.h, src/version.c, src/testdir/test_channel.vim Patch 7.4.1275 (after 7.4.1274) 问题: Build fails on MS-Windows. 解决方案: Fix wrong #ifdef. 相关文件: src/eval.c Patch 7.4.1276 问题: Warning for not using return value of fcntl(). 解决方案: Explicitly ignore the return value. 相关文件: src/fileio.c, src/channel.c, src/memfile.c, src/memline.c Patch 7.4.1277 问题: Compiler can complain about missing enum value in switch with some combination of features. 解决方案: Remove #ifdefs around case statements. 相关文件: src/eval.c Patch 7.4.1278 问题: When jsonencode() fails it still returns something. 解决方案: Return an empty string on failure. 相关文件: src/json.c, src/channel.c, src/testdir/test_json.vim, src/testdir/test_channel.vim, src/testdir/test_channel.py Patch 7.4.1279 问题: jsonencode() is not producing strict JSON. 解决方案: Add jsencode() and jsdecode(). Make jsonencode() and jsondecode() strict. 相关文件: src/json.c, src/json_test.c, src/proto/json.pro, src/channel.c, src/proto/channel.pro, src/eval.c, src/vim.h, src/structs.h, runtime/doc/eval.txt, runtime/doc/channel.txt, src/testdir/test_json.vim Patch 7.4.1280 问题: Missing case value. 解决方案: Add VAR_JOB. 相关文件: src/if_python.c, src/if_python3.c Patch 7.4.1281 问题: No test for skipping over code that isn't evaluated. 解决方案: Add a test with code that would fail when not skipped. 相关文件: src/testdir/test_viml.vim Patch 7.4.1282 问题: Crash when evaluating the pattern of ":catch" causes an error. (Dominique Pelle) 解决方案: Block error messages at this point. 相关文件: src/ex_eval.c Patch 7.4.1283 问题: The job feature isn't available on MS-Windows. 解决方案: Add the job feature. Fix argument of job_stop(). (Yasuhiro Matsumoto) 相关文件: src/eval.c, src/feature.h, src/os_win32.c, src/proto/os_win32.pro Patch 7.4.1284 (after 7.4.1282) 问题: Test 49 fails. 解决方案: Check for a different error message. 相关文件: src/testdir/test49.vim Patch 7.4.1285 问题: Cannot measure elapsed time. 解决方案: Add reltimefloat(). 相关文件: src/ex_cmds2.c, src/eval.c, src/proto/ex_cmds2.pro, src/testdir/test_reltime.vim, src/testdir/test_alot.vim Patch 7.4.1286 问题: ch_open() with a timeout doesn't work correctly. 解决方案: Change how select() is used. Don't give an error on timeout. Add a test for ch_open() failing. 相关文件: src/channel.c, src/testdir/test_channel.vim Patch 7.4.1287 (after 7.4.1286) 问题: Channel test fails. 解决方案: Use reltimefloat(). 相关文件: src/testdir/test_channel.vim Patch 7.4.1288 问题: ch_sendexpr() does not use JS encoding. 解决方案: Use the encoding that fits the channel mode. Refuse using ch_sendexpr() on a raw channel. 相关文件: src/channel.c, src/proto/channel.pro, src/eval.c Patch 7.4.1289 问题: Channel test fails on MS-Windows, connect() takes too long. 解决方案: Adjust the test for MS-Windows using "waittime". 相关文件: src/channel.c, src/testdir/test_channel.vim Patch 7.4.1290 问题: Coverity complains about unnecessary check for NULL. 解决方案: Remove the check. 相关文件: src/eval.c Patch 7.4.1291 问题: On MS-Windows the channel test server doesn't quit. 解决方案: Use return instead of break. (Ken Takata) 相关文件: src/testdir/test_channel.py Patch 7.4.1292 问题: Some compilers complain about uninitialized variable, even though all possible cases are handled. (Dominique Pelle) 解决方案: Add a default initialization. 相关文件: src/eval.c Patch 7.4.1293 问题: Sometimes a channel may hang waiting for a message that was already discarded. (Ken Takata) 解决方案: Store the ID of the message blocking on in the channel. 相关文件: src/channel.c Patch 7.4.1294 问题: job_stop() only kills the started process. 解决方案: Send the signal to the process group. (Olaf Dabrunz) 相关文件: src/os_unix.c Patch 7.4.1295 问题: string(job) doesn't work well on MS-Windows. 解决方案: Use the process ID. (Yasuhiro Matsumoto) 相关文件: src/eval.c Patch 7.4.1296 问题: Cursor changes column with up motion when the matchparen plugin saves and restores the cursor position. (Martin Kunev) 解决方案: Make sure curswant is updated before invoking the autocommand. 相关文件: src/edit.c Patch 7.4.1297 问题: On Mac test_channel leaves python instances running. 解决方案: Use a small waittime to make ch_open() work. (Ozaki Kiichi) 相关文件: src/testdir/test_channel.vim Patch 7.4.1298 问题: When the channel test fails in an unexpected way the server keeps running. 解决方案: Use try/catch. (Ozaki Kiichi) 相关文件: src/testdir/test_channel.vim Patch 7.4.1299 问题: When the server sends a message with ID zero the channel handler is not invoked. (Christian J. Robinson) 解决方案: Recognize zero value for the request ID. Add a test for invoking the channel handler. 相关文件: src/channel.c, src/testdir/test_channel.vim, src/testdir/test_channel.py Patch 7.4.1300 问题: Cannot test CursorMovedI because there is typeahead. 解决方案: Add disable_char_avail_for_testing(). 相关文件: src/eval.c, src/getchar.c, src/globals.h, src/testdir/test_cursor_func.vim, src/testdir/README.txt Patch 7.4.1301 问题: Missing options in ch_open(). 解决方案: Add s:chopt like in the other calls. (Ozaki Kiichi) 相关文件: src/testdir/test_channel.vim Patch 7.4.1302 问题: Typo in struct field name. (Ken Takata) 解决方案: Rename jf_pi to jv_pi. 相关文件: src/eval.c, src/os_win32.c, src/structs.h Patch 7.4.1303 问题: A Funcref is not accepted as a callback. 解决方案: Make a Funcref work. (Damien) 相关文件: src/eval.c, src/testdir/test_channel.vim Patch 7.4.1304 问题: Function names are difficult to read. 解决方案: Rename jsonencode to json_encode, jsondecode to json_decode, jsencode to js_encode and jsdecode to js_decode. 相关文件: src/eval.c, runtime/doc/eval.txt, src/testdir/test_json.vim Patch 7.4.1305 问题: "\%1l^#.*" does not match on a line starting with "#". 解决方案: Do not clear the start-of-line flag. (Christian Brabandt) 相关文件: src/regexp.c, src/regexp_nfa.c, src/testdir/test36.in, src/testdir/test36.ok Patch 7.4.1306 问题: Job control doesn't work well on MS-Windows. 解决方案: Various fixes. (Ken Takata, Ozaki Kiichi, Yukihiro Nakadaira, Yasuhiro Matsumoto) 相关文件: src/Make_mvc.mak, src/eval.c, src/os_unix.c, src/os_win32.c, src/proto/os_unix.pro, src/proto/os_win32.pro, src/structs.h Patch 7.4.1307 问题: Some channel tests fail on MS-Windows. 解决方案: Disable the failing tests temporarily. 相关文件: src/testdir/test_channel.vim Patch 7.4.1308 (after 7.4.1307) 问题: Typo in test. 解决方案: Change endf to endif. 相关文件: src/testdir/test_channel.vim Patch 7.4.1309 问题: When a test fails not all relevant info is listed. 解决方案: Add the errors to the messages. 相关文件: src/testdir/runtest.vim Patch 7.4.1310 问题: Jobs don't open a channel. 解决方案: Create pipes and add them to the channel. Add ch_logfile(). Only Unix for now. 相关文件: src/channel.c, src/eval.c, src/os_unix.c, src/structs.h, src/gui_w48.c, src/proto/channel.pro, src/testdir/test_channel.vim, src/testdir/test_channel_pipe.py, runtime/doc/eval.txt Patch 7.4.1311 (after 7.4.1310) 问题: sock_T is defined too late. 解决方案: Move it up. 相关文件: src/vim.h Patch 7.4.1312 (after 7.4.1311) 问题: sock_T is not defined without the +channel feature. 解决方案: Always define it. 相关文件: src/vim.h Patch 7.4.1313 问题: MS-Windows: Using socket after it was closed causes an exception. 解决方案: Don't give an error when handling WM_NETBEANS. Re-enable tests for MS-Windows. 相关文件: src/gui_w48.c, src/testdir/test_channel.vim Patch 7.4.1314 问题: Warning for uninitialized variable. 解决方案: Initialize it. (Dominique Pelle) 相关文件: src/channel.c Patch 7.4.1315 问题: Using a channel handle does not allow for freeing it when unused. 解决方案: Add the Channel variable type. 相关文件: src/structs.h, src/channel.c, src/misc2.c, src/eval.c, src/if_python.c, src/if_python3.c, src/json.c, src/gui_w48.c, src/netbeans.c, src/proto/channel.pro, src/os_unix.c, src/testdir/test_channel.py, src/testdir/test_channel.vim Patch 7.4.1316 问题: Can't build MS-Windows console version. (Tux) 解决方案: Add #ifdefs. 相关文件: src/eval.c Patch 7.4.1317 问题: MS-Windows: channel test fails. 解决方案: Temporarily disable Test_connect_waittime(). 相关文件: src/testdir/test_channel.vim Patch 7.4.1318 问题: Channel with pipes doesn't work in GUI. 解决方案: Register input handlers for pipes. 相关文件: src/structs.h, src/feature.h, src/channel.c, src/eval.c, src/os_unix.c, src/os_win32.c, src/gui_w48.c, src/proto/channel.pro Patch 7.4.1319 (after 7.4.1318) 问题: Tests fail on MS-Windows and on Unix with GUI. 解决方案: Fix unregistering. 相关文件: src/structs.h, src/channel.c, src/os_unix.c, src/os_win32.c, src/proto/channel.pro Patch 7.4.1320 问题: Building with Cygwin or MingW with channel but without Netbeans doesn't work. 解决方案: Set NETBEANS to "no" when not used. 相关文件: src/Make_cyg_ming.mak Patch 7.4.1321 问题: Compiler complains about missing statement. 解决方案: Add an empty statement. (Andrei Olsen) 相关文件: src/os_win32.c Patch 7.4.1322 问题: Crash when unletting the variable that holds the channel in a callback function. (Christian Robinson) 解决方案: Increase the reference count while invoking the callback. 相关文件: src/eval.c, src/channel.c, src/proto/eval.pro, src/testdir/test_channel.vim Patch 7.4.1323 问题: Do not get warnings when building with MingW. 解决方案: Remove the -w flag. (Ken Takata) 相关文件: src/Make_cyg_ming.mak Patch 7.4.1324 问题: Channels with pipes don't work on MS-Windows. 解决方案: Add pipe I/O support. (Yasuhiro Matsumoto) 相关文件: src/channel.c, src/os_win32.c, src/proto/channel.pro, src/structs.h, src/vim.h, src/testdir/test_channel.vim Patch 7.4.1325 问题: Channel test fails on difference between Unix and DOS line endings. 解决方案: Strip off CR. Make assert show difference better. 相关文件: src/eval.c, src/channel.c Patch 7.4.1326 问题: Build rules are bit too complicated. 解决方案: Remove -lwsock32 from Netbeans, it's already added for the channel feature that it depends on. (Tony Mechelynck) 相关文件: src/Make_cyg_ming.mak Patch 7.4.1327 问题: Channel test doesn't work if Python executable is python.exe. 解决方案: Find py.exe or python.exe. (Ken Takata) 相关文件: src/testdir/test_channel.vim Patch 7.4.1328 问题: Can't compile with +job but without +channel. (John Marriott) 解决方案: Add more #ifdefs. 相关文件: src/os_unix.c Patch 7.4.1329 问题: Crash when using channel that failed to open. 解决方案: Check for NULL. Update messages. (Yukihiro Nakadaira) 相关文件: src/channel.c, src/eval.c, src/testdir/test_channel.vim Patch 7.4.1330 问题: fd_read() has an unused argument. 解决方案: Remove the timeout. (Yasuhiro Matsumoto) 相关文件: src/channel.c Patch 7.4.1331 问题: Crash when closing the channel in a callback. (Christian J. Robinson) 解决方案: Take the callback out of the list before invoking it. 相关文件: src/channel.c, src/testdir/test_channel.vim Patch 7.4.1332 问题: Problem using Python3 when compiled with MingW. 解决方案: Define PYTHON3_HOME as a wide character string. (Yasuhiro Matsumoto) 相关文件: src/Make_cyg_ming.mak Patch 7.4.1333 问题: Channel test fails on non-darwin builds. 解决方案: Add the "osx" feature and test for that. (Kazunobu Kuriyama) 相关文件: runtime/doc/eval.txt, src/eval.c, src/testdir/test_channel.vim Patch 7.4.1334 问题: Many compiler warnings with MingW. 解决方案: Add type casts. (Yasuhiro Matsumoto) 相关文件: src/channel.c, src/dosinst.h, src/eval.c, src/ex_cmds2.c, src/ex_getln.c, src/fileio.c, src/if_cscope.c, src/if_perl.xs, src/if_python.c, src/if_python3.c, src/if_ruby.c, src/main.c, src/mbyte.c, src/misc1.c, src/option.c, src/os_mswin.c, src/os_win32.c Patch 7.4.1335 问题: Can't build on MS-Windows with +job but without +channel. (Cesar Romani) 解决方案: Add #ifdefs. (Yasuhiro Matsumoto) 相关文件: src/os_win32.c Patch 7.4.1336 问题: Channel NL mode is not supported yet. 解决方案: Add NL mode support to channels. 相关文件: src/channel.c, src/netbeans.c, src/structs.h, src/os_unix.d, src/os_win32.c, src/proto/channel.pro, src/proto/os_unix.pro, src/proto/os_win32.pro, src/testdir/test_channel.vim, src/testdir/test_channel_pipe.py Patch 7.4.1337 (after 7.4.1336) 问题: Part of the change is missing. 解决方案: Add changes to eval.c 相关文件: src/eval.c Patch 7.4.1338 (after 7.4.1336) 问题: Another part of the change is missing. 解决方案: Type os_unix.c right this time. 相关文件: src/os_unix.c Patch 7.4.1339 问题: Warnings when building the GUI with MingW. (Cesar Romani) 解决方案: Add type casts. (Yasuhiro Matsumoto) 相关文件: src/edit.c, src/gui_w32.c, src/gui_w48.c, src/os_mswin.c, src/os_win32.c Patch 7.4.1340 (after 7.4.1339) 问题: Merge left extra #endif behind. 解决方案: Remove the #endif 相关文件: src/os_win32.c Patch 7.4.1341 问题: It's difficult to add more arguments to ch_sendraw() and ch_sendexpr(). 解决方案: Make the third option a dictionary. 相关文件: src/eval.c, src/structs.h, src/channel.c, src/os_unix.c, src/os_win32.c, src/proto/channel.pro, src/testdir/test_channel.vim, runtime/doc/eval.txt Patch 7.4.1342 问题: On Mac OS/X the waittime must be > 0 for connect to work. 解决方案: Use select() in a different way. (partly by Kazunobu Kuriyama) Always use a waittime of 1 or more. 相关文件: src/eval.c, src/channel.c, src/testdir/test_channel.vim Patch 7.4.1343 问题: Can't compile with +job but without +channel. (Andrei Olsen) 解决方案: Move get_job_options up and adjust #ifdef. 相关文件: src/eval.c Patch 7.4.1344 问题: Can't compile Win32 GUI with tiny features. 解决方案: Add #ifdef. (Christian Brabandt) 相关文件: src/gui_w32.c Patch 7.4.1345 问题: A few more compiler warnings. (Axel Bender) 解决方案: Add type casts. 相关文件: src/gui_w32.c, src/gui_w48.c Patch 7.4.1346 问题: Compiler warnings in build with -O2. 解决方案: Add initializations. 相关文件: src/eval.c Patch 7.4.1347 问题: When there is any error Vim will use a non-zero exit code. 解决方案: When using ":silent!" do not set the exit code. (Yasuhiro Matsumoto) 相关文件: src/message.c Patch 7.4.1348 问题: More compiler warnings. (John Marriott) 解决方案: Add type casts, remove unused variable. 相关文件: src/gui_w32.c Patch 7.4.1349 问题: And some more MingW compiler warnings. (Cesar Romani) 解决方案: Add type casts. 相关文件: src/if_mzsch.c Patch 7.4.1350 问题: When the test server fails to start Vim hangs. 解决方案: Check that there is actually something to read from the tty fd. 相关文件: src/os_unix.c Patch 7.4.1351 问题: When the port isn't opened yet when ch_open() is called it may fail instead of waiting for the specified time. 解决方案: Loop when select() succeeds but when connect() failed. Also use channel logging for jobs. Add ch_log(). 相关文件: src/channel.c, src/eval.c, src/netbeans.c, src/proto/channel.pro, src/testdir/test_channel.vim, src/testdir/test_channel.py Patch 7.4.1352 问题: The test script lists all functions before executing them. 解决方案: Only list the function currently being executed. 相关文件: src/testdir/runtest.vim Patch 7.4.1353 问题: Test_connect_waittime is skipped for MS-Windows. 解决方案: Add the test back, it works now. 相关文件: src/testdir/test_channel.vim Patch 7.4.1354 问题: MS-Windows: Mismatch between default compile options and what the code expects. 解决方案: Change the default WINVER from 0x0500 to 0x0501. (Ken Takata) 相关文件: src/Make_cyg_ming.mak, src/Make_mvc.mak Patch 7.4.1355 问题: Win32 console and GUI handle channels differently. 解决方案: Consolidate code between Win32 console and GUI. 相关文件: src/channel.c, src/eval.c, src/gui_w48.c, src/os_win32.c, src/proto/channel.pro Patch 7.4.1356 问题: Job and channel options parsing is scattered. 解决方案: Move all option value parsing to get_job_options(); 相关文件: src/channel.c, src/eval.c, src/structs.h, src/proto/channel.pro, src/testdir/test_channel.vim Patch 7.4.1357 (after 7.4.1356) 问题: Error for returning value from void function. 解决方案: Don't do that. 相关文件: src/eval.c Patch 7.4.1358 问题: Compiler warning when not building with +crypt. 解决方案: Add #ifdef. (John Marriott) 相关文件: src/undo.c Patch 7.4.1359 (after 7.4.1356) 问题: Channel test ch_sendexpr() times out. 解决方案: Increase the timeout 相关文件: src/testdir/test_channel.vim Patch 7.4.1360 问题: Can't remove a callback with ch_setoptions(). 解决方案: When passing zero or an empty string remove the callback. 相关文件: src/channel.c, src/proto/channel.pro, src/testdir/test_channel.vim Patch 7.4.1361 问题: Channel test fails on Solaris. 解决方案: Use the 1 msec waittime for all systems. 相关文件: src/channel.c Patch 7.4.1362 (after 7.4.1356) 问题: Using uninitialized value. 解决方案: Initialize jo_set. 相关文件: src/eval.c Patch 7.4.1363 问题: Compiler warnings with tiny build. 解决方案: Add #ifdefs. 相关文件: src/gui_w48.c, src/gui_w32.c Patch 7.4.1364 问题: The Win 16 code is not maintained and unused. 解决方案: Remove the Win 16 support. 相关文件: src/gui_w16.c, src/gui_w32.c, src/gui_w48.c, src/Make_w16.mak, src/Makefile, src/Make_cyg_ming.mak, src/Make_mvc.mak, src/proto/gui_w16.pro, src/proto/os_win16.pro, src/guiw16rc.h, src/vim16.rc, src/vim16.def, src/tools16.bmp, src/eval.c, src/gui.c, src/misc2.c, src/option.c, src/os_msdos.c, src/os_mswin.c, src/os_win16.c, src/os_win16.h, src/version.c, src/winclip.c, src/feature.h, src/proto.h, src/vim.h, Filelist Patch 7.4.1365 问题: Cannot execute a single test function. 解决方案: Add an argument to filter the functions with. (Yasuhiro Matsumoto) 相关文件: src/testdir/runtest.vim Patch 7.4.1366 问题: Typo in test and resulting error in test result. 解决方案: Fix the typo and correct the result. (James McCoy, closes #650) 相关文件: src/testdir/test_charsearch.in, src/testdir/test_charsearch.ok Patch 7.4.1367 问题: Compiler warning for unreachable code. 解决方案: Remove a "break". (Danek Duvall) 相关文件: src/json.c Patch 7.4.1368 问题: One more Win16 file remains. 解决方案: Delete it. 相关文件: src/proto/os_win16.pro Patch 7.4.1369 问题: Channels don't have a queue for stderr. 解决方案: Have a queue for each part of the channel. 相关文件: src/channel.c, src/eval.c, src/structs.h, src/netbeans.c, src/gui_w32.c, src/proto/channel.pro Patch 7.4.1370 问题: The Python test script may keep on running. 解决方案: Join the threads. (Yasuhiro Matsumoto) 相关文件: src/testdir/test_channel.py Patch 7.4.1371 问题: X11 GUI callbacks don't specify the part of the channel. 解决方案: Pass the fd instead of the channel ID. 相关文件: src/channel.c Patch 7.4.1372 问题: channel read implementation is incomplete. 解决方案: Add ch_read() and options for ch_readraw(). 相关文件: src/channel.c, src/eval.c, src/structs.h, src/proto/channel.pro, src/testdir/test_channel.vim Patch 7.4.1373 问题: Calling a Vim function over a channel requires turning the arguments into a string. 解决方案: Add the "call" command. (Damien) Also merge "expr" and "eval" into one. 相关文件: src/channel.c, src/testdir/test_channel.py, src/testdir/test_channel.vim Patch 7.4.1374 问题: Channel test hangs on MS-Windows. 解决方案: Disable the ch_read() that is supposed to time out. 相关文件: src/testdir/test_channel.vim Patch 7.4.1375 问题: Still some Win16 code. 解决方案: Remove FEAT_GUI_W16.(Hirohito Higashi) 相关文件: src/eval.c, src/ex_cmds.h, src/feature.h, src/gui.h, src/menu.c, src/misc1.c, src/option.c, src/proto.h, src/structs.h, src/term.c, src/vim.h, runtime/doc/gui_w16.txt Patch 7.4.1376 问题: ch_setoptions() cannot set all options. 解决方案: Support more options. 相关文件: src/channel.c, src/eval.c, src/structs.h, runtime/doc/channel.txt, src/testdir/test_channel.vim Patch 7.4.1377 问题: Test_connect_waittime() is flaky. 解决方案: Ignore the "Connection reset by peer" error. 相关文件: src/testdir/test_channel.vim Patch 7.4.1378 问题: Can't change job settings after it started. 解决方案: Add job_setoptions() with the "stoponexit" flag. 相关文件: src/eval.c, src/main.c, src/structs.h, src/proto/eval.pro, src/testdir/test_channel.vim Patch 7.4.1379 问题: Channel test fails on Win32 console. 解决方案: Don't sleep when timeout is zero. Call channel_wait() before channel_read(). Channels are not polled during ":sleep". (Yukihiro Nakadaira) 相关文件: src/channel.c, src/misc2.c, src/gui_w32.c, src/os_win32.c Patch 7.4.1380 问题: The job exit callback is not implemented. 解决方案: Add the "exit-cb" option. 相关文件: src/structs.h, src/eval.c, src/channel.c, src/proto/eval.pro, src/misc2.c, src/macros.h, src/testdir/test_channel.vim Patch 7.4.1381 (after 7.4.1380) 问题: Exit value not available on MS-Windows. 解决方案: Set the exit value. 相关文件: src/structs.h, src/os_win32.c Patch 7.4.1382 问题: Can't get the job of a channel. 解决方案: Add ch_getjob(). 相关文件: src/eval.c, runtime/doc/channel.txt, runtime/doc/eval.txt Patch 7.4.1383 问题: GvimExt only loads the old libintl.dll. 解决方案: Also try loading libint-8.dll. (Ken Takata, closes #608) 相关文件: src/GvimExt/gvimext.cpp, src/GvimExt/gvimext.h Patch 7.4.1384 问题: It is not easy to use a set of plugins and their dependencies. 解决方案: Add packages, ":loadplugin", 'packpath'. 相关文件: src/main.c, src/ex_cmds2.c, src/option.c, src/option.h, src/ex_cmds.h, src/eval.c, src/version.c, src/proto/ex_cmds2.pro, runtime/doc/repeat.txt, runtime/doc/options.txt, runtime/optwin.vim Patch 7.4.1385 问题: Compiler warning for using array. 解决方案: Use the right member name. (Yegappan Lakshmanan) 相关文件: src/eval.c Patch 7.4.1386 问题: When the Job exit callback is invoked, the job may be freed too soon. (Yasuhiro Matsumoto) 解决方案: Increase refcount. 相关文件: src/eval.c Patch 7.4.1387 问题: Win16 docs still referenced. 解决方案: Remove Win16 files from the docs Makefile. (Kenichi Ito) 相关文件: runtime/doc/Makefile Patch 7.4.1388 问题: Compiler warning. (Cesar Romani) 解决方案: Initialize variable. 相关文件: src/ex_cmds2.c Patch 7.4.1389 问题: Incomplete function declaration. 解决方案: Add "void". (Yasuhiro Matsumoto) 相关文件: src/eval.c Patch 7.4.1390 问题: When building with GTK and glib-compile-resources cannot be found building Vim fails. (Michael Gehring) 解决方案: Make GLIB_COMPILE_RESOURCES empty instead of leaving it at "no". (nuko8, closes #655) 相关文件: src/configure.in, src/auto/configure Patch 7.4.1391 问题: Warning for uninitialized variable. 解决方案: Set it to zero. (Christian Brabandt) 相关文件: src/eval.c Patch 7.4.1392 问题: Some tests fail for Win32 console version. 解决方案: Move the tests to SCRIPTS_MORE2. Pass VIMRUNTIME. (Christian Brabandt) 相关文件: src/testdir/Make_all.mak Patch 7.4.1393 问题: Starting a job hangs in the GUI. (Takuya Fujiwara) 解决方案: Don't check if ch_job is NULL when checking for an error. (Yasuhiro Matsumoto) 相关文件: src/channel.c Patch 7.4.1394 问题: Can't sort inside a sort function. 解决方案: Use a struct to store the sort parameters. (Jacob Niehus) 相关文件: src/eval.c, src/testdir/test_sort.vim Patch 7.4.1395 问题: Using DETACH in quotes is not compatible with the Netbeans interface. (Xavier de Gaye) 解决方案: Remove the quotes, only use them for JSON and JS mode. 相关文件: src/netbeans.c, src/channel.c Patch 7.4.1396 问题: Compiler warnings for conversions. 解决方案: Add type cast. 相关文件: src/ex_cmds2.c Patch 7.4.1397 问题: Sort test fails on MS-Windows. 解决方案: Correct the compare function. 相关文件: src/testdir/test_sort.vim Patch 7.4.1398 问题: The close-cb option is not implemented yet. 解决方案: Implement close-cb. (Yasuhiro Matsumoto) 相关文件: src/channel.c, src/eval.c, src/structs.h, src/proto/channel.pro, src/testdir/test_channel.py, src/testdir/test_channel.vim Patch 7.4.1399 问题: The MS-DOS code does not build. 解决方案: Remove the old MS-DOS code. 相关文件: Filelist, src/Make_bc3.mak, src/Make_bc5.mak, src/Make_djg.mak, src/Makefile, src/blowfish.c, src/buffer.c, src/diff.c, src/digraph.c, src/dosinst.h, src/eval.c, src/ex_cmds.c, src/ex_cmds2.c, src/ex_docmd.c, src/ex_getln.c, src/feature.h, src/fileio.c, src/getchar.c, src/globals.h, src/macros.h, src/main.c, src/mbyte.c, src/memfile.c, src/memline.c, src/misc1.c, src/misc2.c, src/netbeans.c, src/option.c, src/option.h, src/os_msdos.c, src/os_msdos.h, src/proto.h, src/proto/os_msdos.pro, src/regexp.c, src/screen.c, src/structs.h, src/syntax.c, src/term.c, src/undo.c, src/uninstal.c, src/version.c, src/vim.h, src/window.c, src/xxd/Make_bc3.mak, src/xxd/Make_djg.mak Patch 7.4.1400 问题: Perl eval doesn't work properly on 64-bit big-endian machine. 解决方案: Use 32 bit type for the key. (Danek Duvall) 相关文件: src/if_perl.xs Patch 7.4.1401 问题: Having 'autochdir' set during startup and using diff mode doesn't work. (Axel Bender) 解决方案: Don't use 'autochdir' while still starting up. (Christian Brabandt) 相关文件: src/buffer.c Patch 7.4.1402 问题: GTK 3 is not supported. 解决方案: Add GTK 3 support. (Kazunobu Kuriyama) 相关文件: runtime/doc/eval.txt, runtime/doc/gui.txt, runtime/doc/gui_x11.txt, src/auto/configure, src/channel.c, src/config.h.in, src/configure.in, src/eval.c, src/gui.h, src/gui_beval.c, src/gui_beval.h, src/gui_gtk.c, src/gui_gtk_f.c, src/gui_gtk_f.h, src/gui_gtk_x11.c, src/if_mzsch.c, src/mbyte.c, src/netbeans.c, src/structs.h, src/version.c Patch 7.4.1403 问题: Can't build without the quickfix feature. 解决方案: Add #ifdefs. Call ex_ni() for unimplemented commands. (Yegappan Lakshmanan) 相关文件: src/ex_cmds2.c, src/popupmnu.c Patch 7.4.1404 问题: ch_read() doesn't time out on MS-Windows. 解决方案: Instead of WM_NETBEANS use select(). (Yukihiro Nakadaira) 相关文件: src/channel.c, src/gui_w32.c, src/os_win32.c, src/structs.h, src/testdir/test_channel.vim, src/vim.h Patch 7.4.1405 问题: Completion menu flickers. 解决方案: Delay showing the popup menu. (Shougo Matsu, Justin M. Keyes, closes #656) 相关文件: src/edit.c Patch 7.4.1406 问题: Leaking memory in cs_print_tags_priv(). 解决方案: Free tbuf. (idea by Forrest Fleming) 相关文件: src/if_cscope.c Patch 7.4.1407 问题: json_encode() does not handle NaN and inf properly. (David Barnett) 解决方案: For JSON turn them into "null". For JS use "NaN" and "Infinity". Add isnan(). 相关文件: src/eval.c, src/json.c, src/testdir/test_json.vim Patch 7.4.1408 问题: MS-Windows doesn't have isnan() and isinf(). 解决方案: Use _isnan() and _isinf(). 相关文件: src/eval.c, src/json.c Patch 7.4.1409 (after 7.4.1402) 问题: Configure includes GUI despite --disable-gui flag. 解决方案: Add SKIP_GTK3. (Kazunobu Kuriyama) 相关文件: src/configure.in, src/auto/configure Patch 7.4.1410 问题: Leaking memory in cscope interface. 解决方案: Free memory when no tab is found. (Christian Brabandt) 相关文件: src/if_cscope.c Patch 7.4.1411 问题: Compiler warning for indent. (Ajit Thakkar) 解决方案: Indent normally. 相关文件: src/ui.c Patch 7.4.1412 问题: Compiler warning for indent. (Dominique Pelle) 解决方案: Fix the indent. 相关文件: src/farsi.c Patch 7.4.1413 问题: When calling ch_close() the close callback is invoked, even though the docs say it isn't. (Christian J. Robinson) 解决方案: Don't call the close callback. 相关文件: src/eval.c, src/channel.c, src/netbeans.c, src/proto/channel.pro Patch 7.4.1414 问题: Appveyor only builds one feature set. 解决方案: Build a combination of features and GUI/console. (Christian Brabandt) 相关文件: appveyor.yml, src/appveyor.bat Patch 7.4.1415 (after 7.4.1414) 问题: Dropped the skip-tags setting. 解决方案: Put it back. 相关文件: appveyor.yml Patch 7.4.1416 问题: Using "u_char" instead of "char_u", which doesn't work everywhere. (Jörg Plate) 解决方案: Use "char_u" always. 相关文件: src/integration.c, src/macros.h Patch 7.4.1417 (after 7.4.1414) 问题: Missing appveyor.bat from the distribution. 解决方案: Add it to the list of files. 相关文件: Filelist Patch 7.4.1418 问题: job_stop() on MS-Windows does not really stop the job. 解决方案: Make the default to stop the job forcefully. (Ken Takata) Make MS-Windows and Unix more similar. 相关文件: src/os_win32.c, src/os_unix.c, runtime/doc/eval.txt Patch 7.4.1419 问题: Tests slowed down because of the "not a terminal" warning. 解决方案: Add the --not-a-term command line argument. 相关文件: src/main.c, src/testdir/Makefile, src/Make_all.mak, src/Make_amiga.mak, src/testdir/Make_dos.mak, src/testdir/Make_ming.mak, src/testdir/Make_vms.mms, runtime/doc/starting.txt Patch 7.4.1420 (after 7.4.1419) 问题: Missing makefile. 解决方案: Type the path correctly. 相关文件: src/testdir/Make_all.mak Patch 7.4.1421 问题: May free a channel when a callback may need to be invoked. 解决方案: Keep the channel when refcount is zero. 相关文件: src/eval.c, src/channel.c, src/proto/channel.pro Patch 7.4.1422 问题: Error when reading fails uses wrong errno. Keeping channel open after job stops results in test failing. 解决方案: Move the error up. Add ch_job_killed. 相关文件: src/channel.c, src/eval.c, src/structs.h Patch 7.4.1423 问题: Channel test fails on MS-Windows. 解决方案: Do not give an error message when reading fails, assume the other end exited. 相关文件: src/channel.c Patch 7.4.1424 问题: Not using --not-a-term when running tests on MS-Windows. 解决方案: Use NO_PLUGIN. (Christian Brabandt) 相关文件: src/testdir/Make_dos.mak Patch 7.4.1425 问题: There are still references to MS-DOS support. 解决方案: Remove most of the help txt and install instructions. (Ken Takata) 相关文件: src/INSTALLpc.txt, runtime/doc/os_msdos.txt, csdpmi4b.zip, Filelist Patch 7.4.1426 问题: The "out-io" option for jobs is not implemented yet. 解决方案: Implement the "buffer" value: append job output to a buffer. 相关文件: src/eval.c, src/channel.c, src/structs.h, src/netbeans.c, runtime/doc/channel.txt Patch 7.4.1427 问题: Trailing comma in enums is not ANSI C. 解决方案: Remove the trailing commas. 相关文件: src/alloc.h, src/gui_mac.c Patch 7.4.1428 问题: Compiler warning for non-virtual destructor. 解决方案: Make it virtual. (Yasuhiro Matsumoto) 相关文件: src/gui_dwrite.cpp Patch 7.4.1429 问题: On MS-Windows, when not use renderoptions=type:directx, drawing emoji will be broken. 解决方案: Fix usage of unicodepdy. (Yasuhiro Matsumoto) 相关文件: src/gui_w32.c Patch 7.4.1430 问题: When encoding JSON, turning NaN and Infinity into null without giving an error is not useful. 解决方案: Pass NaN and Infinity on. If the receiver can't handle them it will generate the error. 相关文件: src/json.c, src/testdir/test_json.vim, runtime/doc/eval.txt Patch 7.4.1431 问题: Including header files twice. 解决方案: Remove the extra includes. 相关文件: src/if_cscope.h Patch 7.4.1432 问题: Typo in button text. 解决方案: Fix the typo. (Dominique Pelle) 相关文件: src/gui_gtk.c Patch 7.4.1433 问题: The Sniff interface is no longer useful, the tool has not been available for may years. 解决方案: Delete the Sniff interface and related code. 相关文件: src/if_sniff.c, src/if_sniff.h, src/charset.c, src/edit.c, src/eval.c, src/ex_cmds2.c, src/ex_docmd.c, src/ex_getln.c, src/gui_gtk_x11.c, src/gui_w32.c, src/gui_x11.c, src/normal.c, src/os_unix.c, src/os_win32.c, src/term.c, src/ui.c, src/version.c, src/ex_cmds.h, src/feature.h, src/keymap.h, src/structs.h, src/vim.h, src/Make_mvc.mak, src/Make_vms.mms, src/Makefile, src/configure.in, src/auto/configure, src/config.h.in, src/config.mk.in, runtime/doc/if_sniff.txt, src/config.aap.in, src/main.aap Patch 7.4.1434 问题: JSON encoding doesn't handle surrogate pair. 解决方案: Improve multi-byte handling of JSON. (Yasuhiro Matsumoto) 相关文件: src/json.c, src/testdir/test_json.vim Patch 7.4.1435 问题: It is confusing that ch_sendexpr() and ch_sendraw() wait for a response. 解决方案: Add ch_evalexpr() and ch_evalraw(). 相关文件: src/eval.c, runtime/doc/channel.txt, runtime/doc/eval.txt, src/testdir/test_channel.vim Patch 7.4.1436 (after 7.4.1433) 问题: Sniff files still referenced in distribution. 解决方案: Remove sniff files from distribution. 相关文件: Filelist Patch 7.4.1437 问题: Old system doesn't have isinf() and NAN. (Ben Fritz) 解决方案: Adjust #ifdefs. Detect isnan() and isinf() functions with configure. Use a replacement when missing. (Kazunobu Kuriyama) 相关文件: src/eval.c, src/json.c, src/macros.h, src/message.c, src/config.h.in, src/configure.in, src/auto/configure Patch 7.4.1438 问题: Can't get buffer number of a channel. 解决方案: Add ch_getbufnr(). 相关文件: src/eval.c, src/channel.c, src/testdir/test_channel.vim, runtime/doc/channel.txt, runtime/doc/eval.txt Patch 7.4.1439 (after 7.4.1434) 问题: Using uninitialized variable. 解决方案: Initialize vc_type. 相关文件: src/json.c Patch 7.4.1440 (after 7.4.1437) 问题: Can't build on Windows. 解决方案: Change #ifdefs. Only define isnan when used. 相关文件: src/macros.h, src/eval.c, src/json.c Patch 7.4.1441 问题: Using empty name instead of no name for channel buffer. 解决方案: Remove the empty name. 相关文件: src/channel.c Patch 7.4.1442 问题: MS-Windows: more compilation warnings for destructor. 解决方案: Add "virtual". (Ken Takata) 相关文件: src/if_ole.cpp Patch 7.4.1443 问题: Can't build GTK3 with small features. 解决方案: Use gtk_widget_get_window(). Fix typos. (Dominique Pelle) 相关文件: src/gui_gtk_x11.c Patch 7.4.1444 问题: Can't build with JSON but without multi-byte. 解决方案: Fix pointer name. 相关文件: src/json.c Patch 7.4.1445 问题: Memory corruption when 'encoding' is not utf-8. 解决方案: Convert decoded string later. 相关文件: src/json.c Patch 7.4.1446 问题: Crash when using json_decode(). 解决方案: Terminate string with a NUL byte. 相关文件: src/json.c Patch 7.4.1447 问题: Memory leak when using ch_read(). (Dominique Pelle) No log message when stopping a job and a few other situations. Too many "Nothing to read" messages. Channels are not freed. 解决方案: Free the listtv. Add more log messages. Remove "Nothing to read" message. Remove the channel from the job when its refcount becomes zero. 相关文件: src/eval.c, src/channel.c Patch 7.4.1448 问题: JSON tests fail if 'encoding' is not utf-8. 解决方案: Force encoding to utf-8. 相关文件: src/testdir/test_json.vim Patch 7.4.1449 问题: Build fails with job feature but without channel feature. 解决方案: Add #ifdef. 相关文件: src/eval.c Patch 7.4.1450 问题: Json encoding still fails when encoding is not utf-8. 解决方案: Set 'encoding' before :scriptencoding. Run the json test separately to avoid affecting other tests. 相关文件: src/testdir/test_json.vim, src/testdir/Make_all.mak, src/testdir/test_alot.vim Patch 7.4.1451 问题: Vim hangs when a channel has a callback but isn't referenced. 解决方案: Have channel_unref() only return TRUE when the channel was actually freed. 相关文件: src/eval.c, src/channel.c, src/proto/channel.pro Patch 7.4.1452 问题: When a callback adds a syntax item either the redraw doesn't happen right away or in the GUI the cursor is in the wrong position for a moment. (Jakson Alves de Aquino) 解决方案: Redraw after the callback was invoked. 相关文件: src/channel.c Patch 7.4.1453 问题: Missing --not-a-term. 解决方案: Add the argument. 相关文件: src/testdir/Make_amiga.mak Patch 7.4.1454 问题: The exit callback test is flaky. 解决方案: Loop to wait for a short time up to a second. 相关文件: src/testdir/test_channel.vim Patch 7.4.1455 问题: JSON decoding test for surrogate pairs is in the wrong place. 解决方案: Move the test lines. (Ken Takata) 相关文件: src/testdir/test_json.vim Patch 7.4.1456 问题: Test 87 fails with Python 3.5. 解决方案: Work around difference. (Taro Muraoka) 相关文件: src/testdir/test87.in Patch 7.4.1457 问题: Opening a channel with select() is not done properly. 解决方案: Also used read-fds. Use getsockopt() to check for errors. (Ozaki Kiichi) 相关文件: src/channel.c Patch 7.4.1458 问题: When a JSON channel has a callback it may never be cleared. 解决方案: Do not write "DETACH" into a JS or JSON channel. 相关文件: src/channel.c Patch 7.4.1459 (after 7.4.1457) 问题: MS-Windows doesn't know socklen_t. 解决方案: Use previous method for WIN32. 相关文件: src/channel.c Patch 7.4.1460 问题: Syntax error in rarely used code. 解决方案: Fix the mch_rename() declaration. (Ken Takata) 相关文件: src/os_unix.c, src/proto/os_unix.pro Patch 7.4.1461 问题: When starting job on MS-Windows all parts of the command are put in quotes. 解决方案: Only use quotes when needed. (Yasuhiro Matsumoto) 相关文件: src/eval.c Patch 7.4.1462 问题: Two more rarely used functions with errors. 解决方案: Add proper argument types. (Dominique Pelle) 相关文件: src/misc2.c, src/termlib.c Patch 7.4.1463 问题: Configure doesn't find isinf() and isnan() on some systems. 解决方案: Use a configure check that includes math.h. 相关文件: src/configure.in, src/auto/configure Patch 7.4.1464 问题: When the argument of sort() is zero or empty it fails. 解决方案: Make zero work as documented. (suggested by Yasuhiro Matsumoto) 相关文件: src/eval.c, src/testdir/test_sort.vim Patch 7.4.1465 问题: Coverity reported possible use of NULL pointer when using buffer output with JSON mode. 解决方案: Make it actually possible to use JSON mode with a buffer. Re-encode the JSON to append it to the buffer. 相关文件: src/channel.c, src/testdir/test_channel.vim Patch 7.4.1466 问题: Coverity reports dead code. 解决方案: Remove the two lines. 相关文件: src/channel.c Patch 7.4.1467 问题: Can't build without the float feature. 解决方案: Add #ifdefs. (Nick Owens, closes #667) 相关文件: src/eval.c, src/json.c Patch 7.4.1468 问题: Sort test doesn't test with "1" argument. 解决方案: Also test ignore-case sorting. (Yasuhiro Matsumoto) 相关文件: src/testdir/test_sort.vim Patch 7.4.1469 问题: Channel test sometimes fails, especially on OS/X. (Kazunobu Kuriyama) 解决方案: Change the && into ||, call getsockopt() in more situations. (Ozaki Kiichi) 相关文件: src/channel.c Patch 7.4.1470 问题: Coverity reports missing restore. 解决方案: Move json_encode() call up. 相关文件: src/channel.c Patch 7.4.1471 问题: Missing out-of-memory check. And Coverity warning. 解决方案: Bail out when msg is NULL. 相关文件: src/channel.c Patch 7.4.1472 问题: Coverity warning for not using return value. 解决方案: Add "(void)". 相关文件: src/os_unix.c Patch 7.4.1473 问题: Can't build without the autocommand feature. 解决方案: Add #ifdefs. (Yegappan Lakshmanan) 相关文件: src/edit.c, src/main.c, src/syntax.c Patch 7.4.1474 问题: Compiler warnings without the float feature. 解决方案: Move #ifdefs. (John Marriott) 相关文件: src/eval.c Patch 7.4.1475 问题: When using hangulinput with utf-8 a CSI character is misinterpreted. 解决方案: Convert CSI to K_CSI. (SungHyun Nam) 相关文件: src/ui.c Patch 7.4.1476 问题: Function arguments marked as unused while they are not. 解决方案: Remove UNUSED. (Yegappan Lakshmanan) 相关文件: src/diff.c, src/eval.c, src/ex_cmds2.c, src/ex_docmd.c, src/window.c Patch 7.4.1477 问题: Test_reltime is flaky, it depends on timing. 解决方案: When it fails run it a second time. 相关文件: src/testdir/runtest.vim Patch 7.4.1478 问题: ":loadplugin" doesn't take care of ftdetect files. 解决方案: Also load ftdetect scripts when appropriate. 相关文件: src/ex_cmds2.c Patch 7.4.1479 问题: No testfor ":loadplugin". 解决方案: Add a test. Fix how option is being set. 相关文件: src/ex_cmds2.c, src/testdir/test_loadplugin.vim, src/testdir/Make_all.mak Patch 7.4.1480 问题: Cannot add a pack directory without loading a plugin. 解决方案: Add the :packadd command. 相关文件: src/ex_cmds.h, src/ex_cmds2.c, src/proto/ex_cmds2.pro, src/testdir/test_loadplugin.vim, runtime/doc/repeat.txt Patch 7.4.1481 问题: Can't build with small features. 解决方案: Add #ifdef. 相关文件: src/ex_cmds2.c Patch 7.4.1482 问题: "timeout" option not supported on ch_eval*(). 解决方案: Get and use the timeout option from the argument. 相关文件: src/eval.c, src/testdir/test_channel.vim Patch 7.4.1483 问题: A one-time callback is not used for a raw channel. 解决方案: Use a one-time callback when it exists. 相关文件: src/channel.c, src/testdir/test_channel.vim, src/testdir/test_channel.py Patch 7.4.1484 问题: Channel "err-io" value "out" is not supported. 解决方案: Connect stderr to stdout if wanted. 相关文件: src/os_unix.c, src/os_win32.c, src/testdir/test_channel.vim, src/testdir/test_channel_pipe.py Patch 7.4.1485 问题: Job input from buffer is not implemented. 解决方案: Implement it. Add "in-top" and "in-bot" options. 相关文件: src/structs.h, src/eval.c, src/channel.c, src/proto/channel.pro, src/os_unix.c, src/os_win32.c, src/testdir/test_channel.vim Patch 7.4.1486 问题: ":loadplugin" is not optimal, some people find it confusing. 解决方案: Only use ":packadd" with an optional "!". 相关文件: src/ex_cmds.h, src/ex_cmds2.c, src/testdir/test_loadplugin.vim, src/testdir/test_packadd.vim, src/testdir/Make_all.mak, runtime/doc/repeat.txt Patch 7.4.1487 问题: For WIN32 isinf() is defined as a macro. 解决方案: Define it as an inline function. (ZyX) 相关文件: src/macros.h Patch 7.4.1488 (after 7.4.1475) 问题: Not using key when result from hangul_string_convert() is NULL. 解决方案: Fall back to not converted string. 相关文件: src/ui.c Patch 7.4.1489 (after 7.4.1487) 问题: "inline" is not supported by old MSVC. 解决方案: use "__inline". (Ken Takata) 相关文件: src/macros.h Patch 7.4.1490 问题: Compiler warning for unused function. 解决方案: Add #ifdef. (Dominique Pelle) 相关文件: src/gui_gtk_x11.c Patch 7.4.1491 问题: Visual-block shift breaks multi-byte characters. 解决方案: Compute column differently. (Yasuhiro Matsumoto) Add a test. 相关文件: src/ops.c, src/testdir/test_visual.vim, src/testdir/Make_all.mak Patch 7.4.1492 问题: No command line completion for ":packadd". 解决方案: Implement completion. (Hirohito Higashi) 相关文件: src/ex_docmd.c, src/ex_getln.c, src/testdir/test_packadd.vim, src/vim.h Patch 7.4.1493 问题: Wrong callback invoked for zero-id messages. 解决方案: Don't use the first one-time callback when the sequence number doesn't match. 相关文件: src/channel.c, src/testdir/test_channel.vim, src/testdir/test_channel.py Patch 7.4.1494 问题: clr_history() does not work properly. 解决方案: Increment hisptr. Add a test. (Yegappan Lakshmanan) 相关文件: src/ex_getln.c, src/testdir/test_history.vim, src/testdir/Make_all.mak Patch 7.4.1495 问题: Compiler warnings when building on Unix with the job feature but without the channel feature. 解决方案: Move #ifdefs. (Dominique Pelle) 相关文件: src/os_unix.c Patch 7.4.1496 问题: Crash when built with GUI but it's not active. (Dominique Pelle) 解决方案: Check gui.in_use. 相关文件: src/channel.c Patch 7.4.1497 问题: Cursor drawing problem with GTK 3. 解决方案: Handle blinking differently. (Kazunobu Kuriyama) 相关文件: src/gui_gtk_x11.c Patch 7.4.1498 问题: Error for locked item when using json_decode(). (Shougo Matsu) 解决方案: Initialize v_lock. 相关文件: src/json.c Patch 7.4.1499 问题: No error message when :packadd does not find anything. 解决方案: Add an error message. (Hirohito Higashi) 相关文件: runtime/doc/repeat.txt, src/ex_cmds.h, src/ex_cmds2.c, src/globals.h, src/testdir/test_packadd.vim Patch 7.4.1500 问题: Should_free flag set to FALSE. 解决方案: Set it to TRUE. (Neovim 4415) 相关文件: src/ex_eval.c Patch 7.4.1501 问题: Garbage collection with an open channel is not tested. 解决方案: Call garbagecollect() in the test. 相关文件: src/testdir/test_channel.vim Patch 7.4.1502 问题: Writing last-but-one line of buffer to a channel isn't implemented yet. 解决方案: Implement it. Fix leaving a swap file behind. 相关文件: src/channel.c, src/structs.h, src/memline.c, src/proto/channel.pro Patch 7.4.1503 问题: Crash when using ch_getjob(). (Damien) 解决方案: Check for a NULL job. 相关文件: src/eval.c, src/testdir/test_channel.vim Patch 7.4.1504 (after 7.4.1502) 问题: No test for reading last-but-one line. 解决方案: Add a test. 相关文件: src/testdir/test_channel.vim Patch 7.4.1505 问题: When channel log is enabled get too many "looking for messages" log entries. 解决方案: Only give the message after another message. 相关文件: src/channel.c Patch 7.4.1506 问题: Job cannot read from a file. 解决方案: Implement reading from a file for Unix. 相关文件: src/eval.c, src/os_unix.c, src/os_win32.c, src/testdir/test_channel.vim Patch 7.4.1507 问题: Crash when starting a job fails. 解决方案: Check for the channel to be NULL. (idea by Yasuhiro Matsumoto) 相关文件: src/eval.c Patch 7.4.1508 问题: Can't build GvimExt with MingW. 解决方案: Adjust the makefile. (Ben Fritz) 相关文件: src/GvimExt/Make_ming.mak Patch 7.4.1509 问题: Keeping both a variable for a job and the channel it refers to is a hassle. 解决方案: Allow passing the job where a channel is expected. (Damien) 相关文件: src/eval.c, src/testdir/test_channel.vim Patch 7.4.1510 问题: Channel test fails on AppVeyor. 解决方案: Wait longer than 10 msec if needed. 相关文件: src/testdir/test_channel.vim Patch 7.4.1511 问题: Statusline highlighting is sometimes wrong. 解决方案: Check for Highlight type. (Christian Brabandt) 相关文件: src/buffer.c Patch 7.4.1512 问题: Channel input from file not supported on MS-Windows. 解决方案: Implement it. (Yasuhiro Matsumoto) 相关文件: src/os_win32.c, src/testdir/test_channel.vim Patch 7.4.1513 问题: "J" fails if there are not enough lines. (Christian Neukirchen) 解决方案: Reduce the count, only fail on the last line. 相关文件: src/normal.c, src/testdir/test_join.vim, src/testdir/test_alot.vim Patch 7.4.1514 问题: Channel output to file not implemented yet. 解决方案: Implement it for Unix. 相关文件: src/os_unix.c, src/testdir/test_channel.vim, src/testdir/test_channel_pipe.py Patch 7.4.1515 问题: Channel test is a bit flaky. 解决方案: Instead of a fixed sleep time wait until an expression evaluates to true. 相关文件: src/testdir/test_channel.vim Patch 7.4.1516 问题: Cannot change file permissions. 解决方案: Add setfperm(). 相关文件: src/eval.c, runtime/doc/eval.txt, src/testdir/test_alot.vim, src/testdir/test_file_perm.vim Patch 7.4.1517 问题: Compiler warning with 64bit compiler. 解决方案: Add typecast. (Mike Williams) 相关文件: src/channel.c Patch 7.4.1518 问题: Channel with disconnected in/out/err is not supported. 解决方案: Implement it for Unix. 相关文件: src/eval.c, src/os_unix.c, src/structs.h, src/testdir/test_channel.vim, src/testdir/test_channel_pipe.py Patch 7.4.1519 (after 7.4.1514) 问题: Channel output to file not implemented for MS-Windows. 解决方案: Implement it. (Yasuhiro Matsumoto) 相关文件: src/os_win32.c, src/testdir/test_channel.vim Patch 7.4.1520 问题: Channel test: Waiting for a file to appear doesn't work. 解决方案: In waitFor() ignore errors. 相关文件: src/testdir/test_channel.vim Patch 7.4.1521 (after 7.4.1516) 问题: File permission test fails on MS-Windows. 解决方案: Expect a different permission. 相关文件: src/testdir/test_file_perm.vim Patch 7.4.1522 问题: Cannot write channel err to a buffer. 解决方案: Implement it. 相关文件: src/channel.c, src/testdir/test_channel.vim Patch 7.4.1523 问题: Writing channel to a file fails on MS-Windows. 解决方案: Disable it for now. 相关文件: src/testdir/test_channel.vim Patch 7.4.1524 问题: Channel test fails on BSD. 解决方案: Break out of the loop when connect() succeeds. (Ozaki Kiichi) 相关文件: src/channel.c Patch 7.4.1525 问题: On a high resolution screen the toolbar icons are too small. 解决方案: Add "huge" and "giant" to 'toolbariconsize'. (Brian Gix) 相关文件: src/gui_gtk_x11.c, src/option.h Patch 7.4.1526 问题: Writing to file and not connecting a channel doesn't work for MS-Windows. 解决方案: Make it work. (Yasuhiro Matsumoto) 相关文件: src/os_win32.c, src/testdir/test_channel.vim Patch 7.4.1527 问题: Channel test is flaky on MS-Windows. 解决方案: Limit the select() timeout to 50 msec and try with a new socket if it fails. 相关文件: src/channel.c Patch 7.4.1528 问题: Using "ever" for packages is confusing. 解决方案: Use "start", as it's related to startup. 相关文件: src/ex_cmds2.c, runtime/doc/repeat.txt Patch 7.4.1529 问题: Specifying buffer number for channel not implemented yet. 解决方案: Implement passing a buffer number. 相关文件: src/structs.h, src/channel.c, src/eval.c, src/testdir/test_channel.vim Patch 7.4.1530 问题: MS-Windows job_start() closes wrong handle. 解决方案: Close hThread on the process info. (Ken Takata) 相关文件: src/os_win32.c Patch 7.4.1531 问题: Compiler warning for uninitialized variable. (Dominique Pelle) 解决方案: Always give the variable a value. 相关文件: src/channel.c Patch 7.4.1532 问题: MS-Windows channel leaks file descriptor. 解决方案: Use CreateFile with the right options. (Yasuhiro Matsumoto) 相关文件: src/os_win32.c Patch 7.4.1533 问题: Using feedkeys() with an empty string disregards 'x' option. 解决方案: Make 'x' work with an empty string. (Thinca) 相关文件: src/eval.c, src/testdir/test_alot.vim, src/testdir/test_feedkeys.vim Patch 7.4.1534 问题: Compiler warning for shadowed variable. (Kazunobu Kuriyama) 解决方案: Rename it. 相关文件: src/eval.c Patch 7.4.1535 问题: The feedkeys test has a one second delay. 解决方案: Avoid need_wait_return() to delay. (Hirohito Higashi) 相关文件: src/eval.c Patch 7.4.1536 问题: Cannot re-use a channel for another job. 解决方案: Add the "channel" option to job_start(). 相关文件: src/channel.c, src/eval.c, src/structs.h, src/os_unix.c, src/os_win32.c, src/proto/channel.pro, src/testdir/test_channel.vim Patch 7.4.1537 问题: Too many feature flags for pipes, jobs and channels. 解决方案: Only use FEAT_JOB_CHANNEL. 相关文件: src/structs.h, src/feature.h, src/configure.in, src/auto/configure, src/config.h.in, src/channel.c, src/eval.c, src/gui.c, src/main.c, src/memline.c, src/misc2.c, src/os_mswin.c, src/os_unix.c, src/os_win32.c, src/ui.c, src/version.c, src/macros.h, src/proto.h, src/vim.h, src/Make_cyg_ming.mak, src/Make_bc5.mak, src/Make_mvc.mak Patch 7.4.1538 问题: Selection with the mouse does not work in command line mode. 解决方案: Use cairo functions. (Kazunobu Kuriyama) 相关文件: src/gui_gtk_x11.c Patch 7.4.1539 问题: Too much code in eval.c. 解决方案: Move job and channel code to channel.c. 相关文件: src/eval.c, src/channel.c, src/proto/channel.pro, src/proto/eval.pro Patch 7.4.1540 问题: Channel test is a bit flaky. 解决方案: Increase expected wait time. 相关文件: src/testdir/test_channel.vim Patch 7.4.1541 问题: Missing job_info(). 解决方案: Implement it. 相关文件: src/eval.c, src/channel.c, src/proto/channel.pro, src/testdir/test_channel.vim, runtime/doc/eval.txt Patch 7.4.1542 问题: job_start() with a list is not tested. 解决方案: Call job_start() with a list. 相关文件: src/testdir/test_channel.vim Patch 7.4.1543 问题: Channel log methods are not tested. 解决方案: Log job activity and check it. 相关文件: src/testdir/test_channel.vim Patch 7.4.1544 问题: On Win32 escaping the command does not work properly. 解决方案: Reset 'ssl' when escaping the command. (Yasuhiro Matsumoto) 相关文件: src/channel.c Patch 7.4.1545 问题: GTK3: horizontal cursor movement in Visual selection not good. 解决方案: Make it work better. (Kazunobu Kuriyama) 相关文件: src/gui_gtk_x11.c Patch 7.4.1546 问题: Sticky type checking is more annoying than useful. 解决方案: Remove the error for changing a variable type. 相关文件: src/eval.c, src/testdir/test_assign.vim, src/testdir/test_alot.vim, runtime/doc/eval.txt Patch 7.4.1547 问题: Getting a cterm highlight attribute that is not set results in the string "-1". 解决方案: Return an empty string. (Taro Muraoka) 相关文件: src/syntax.c, src/testdir/test_alot.vim, src/testdir/test_syn_attr.vim Patch 7.4.1548 (after 7.4.1546) 问题: Two tests fail. 解决方案: Adjust the expected error number. Remove check for type. 相关文件: src/testdir/test101.ok, src/testdir/test55.in, src/testdir/test55.ok Patch 7.4.1549 (after 7.4.1547) 问题: Test for syntax attributes fails in Win32 GUI. 解决方案: Use an existing font name. 相关文件: src/testdir/test_syn_attr.vim Patch 7.4.1550 问题: Cannot load packages early. 解决方案: Add the ":packloadall" command. 相关文件: src/ex_cmds.h, src/ex_cmds2.c, src/main.c, src/proto/ex_cmds2.pro, src/testdir/test_packadd.vim Patch 7.4.1551 问题: Cannot generate help tags in all doc directories. 解决方案: Make ":helptags ALL" work. 相关文件: src/ex_cmds2.c, src/proto/ex_cmds2.pro, src/ex_cmds.c, src/vim.h src/testdir/test_packadd.vim Patch 7.4.1552 问题: ":colorscheme" does not use 'packpath'. 解决方案: Also use in "start" and "opt" directories in 'packpath'. 相关文件: src/ex_cmds2.c, src/gui.c, src/hardcopy.c, src/os_mswin.c, src/spell.c, src/tag.c, src/if_py_both.h, src/vim.h, src/digraph.c, src/eval.c, src/ex_docmd.c, src/main.c, src/option.c, src/syntax.c, src/testdir/test_packadd.vim Patch 7.4.1553 问题: ":runtime" does not use 'packpath'. 解决方案: Add "what" argument. 相关文件: src/ex_cmds2.c, src/vim.h, runtime/doc/repeat.txt, src/testdir/test_packadd.vim Patch 7.4.1554 问题: Completion for :colorscheme does not use 'packpath'. 解决方案: Make it work, add a test. (Hirohito Higashi) 相关文件: src/ex_getln.c, src/testdir/test_packadd.vim Patch 7.4.1555 问题: List of test targets incomplete. 解决方案: Add newly added tests. 相关文件: src/Makefile Patch 7.4.1556 问题: "make install" changes the help tags file, causing it to differ from the repository. 解决方案: Move it aside and restore it. 相关文件: src/Makefile Patch 7.4.1557 问题: Windows cannot be identified. 解决方案: Add a unique window number to each window and functions to use it. 相关文件: src/structs.h, src/window.c, src/eval.c, src/proto/eval.pro, src/proto/window.pro, src/testdir/test_window_id.vim, src/testdir/Make_all.mak, runtime/doc/eval.txt Patch 7.4.1558 问题: It is not easy to find out what windows display a buffer. 解决方案: Add win_findbuf(). 相关文件: src/eval.c, src/window.c, src/proto/window.pro, src/testdir/test_window_id.vim, runtime/doc/eval.txt Patch 7.4.1559 问题: Passing cookie to a callback is clumsy. 解决方案: Change function() to take arguments and return a partial. 相关文件: src/structs.h, src/channel.c, src/eval.c, src/if_python.c, src/if_python3.c, src/if_py_both.h, src/json.c, src/proto/eval.pro, src/testdir/test_partial.vim, src/testdir/test_alot.vim, runtime/doc/eval.txt Patch 7.4.1560 问题: Dict options with a dash are more difficult to use. 解决方案: Use an underscore, so that dict.err_io can be used. 相关文件: src/channel.c, src/structs.h, src/testdir/test_channel.vim, runtime/doc/channel.txt Patch 7.4.1561 (after 7.4.1559) 问题: Missing update to proto file. 解决方案: Change the proto file. 相关文件: src/proto/channel.pro Patch 7.4.1562 问题: ":helptags ALL" crashes. (Lcd) 解决方案: Don't free twice. 相关文件: src/ex_cmds.c Patch 7.4.1563 问题: Partial test fails on windows. 解决方案: Return 1 or -1 from compare function. 相关文件: src/testdir/test_partial.vim Patch 7.4.1564 问题: An empty list in function() causes an error. 解决方案: Handle an empty list like there is no list of arguments. 相关文件: src/eval.c, src/testdir/test_partial.vim Patch 7.4.1565 问题: Crash when assert_equal() runs into a NULL string. 解决方案: Check for NULL. (Dominique) Add a test. 相关文件: src/eval.c, src/testdir/test_assert.vim Patch 7.4.1566 问题: Compiler warning for shadowed variable. (Kazunobu Kuriyama) 解决方案: Remove the inner one. 相关文件: src/eval.c Patch 7.4.1567 问题: Crash in assert_fails(). 解决方案: Check for NULL. (Dominique Pelle) Add a test. 相关文件: src/eval.c, src/testdir/test_assert.vim Patch 7.4.1568 问题: Using CTRL-] in help on option in parentheses doesn't work. 解决方案: Skip the "(" in "('". (Hirohito Higashi) 相关文件: src/ex_cmds.c Patch 7.4.1569 问题: Using old style tests for quickfix. 解决方案: Change them to new style tests. (Yegappan Lakshmanan) 相关文件: src/testdir/Make_all.mak, src/testdir/test106.in, src/testdir/test106.ok, src/testdir/test_qf_title.in, src/testdir/test_qf_title.ok, src/testdir/test_quickfix.vim Patch 7.4.1570 问题: There is no way to avoid the message when editing a file. 解决方案: Add the "F" flag to 'shortmess'. (Shougo Matsu, closes #686) 相关文件: runtime/doc/options.txt, src/buffer.c, src/ex_cmds.c, src/option.h Patch 7.4.1571 问题: No test for ":help". 解决方案: Add a test for what 7.4.1568 fixed. (Hirohito Higashi) 相关文件: src/testdir/test_alot.vim, src/testdir/test_help_tagjump.vim Patch 7.4.1572 问题: Setting 'compatible' in test influences following tests. 解决方案: Turn 'compatible' off again. 相关文件: src/testdir/test_backspace_opt.vim Patch 7.4.1573 问题: Tests get stuck at the more prompt. 解决方案: Move the backspace test out of test_alot. 相关文件: src/testdir/test_alot.vim, src/testdir/Make_all.mak Patch 7.4.1574 问题: ":undo 0" does not work. (Florent Fayolle) 解决方案: Make it undo all the way. (closes #688) 相关文件: src/undo.c, src/testdir/test_undolevels.vim, src/testdir/test_ex_undo.vim, src/testdir/test_alot.vim Patch 7.4.1575 问题: Using wrong size for struct. 解决方案: Use the size for wide API. (Ken Takata) 相关文件: src/gui_w32.c Patch 7.4.1576 问题: Write error of viminfo file is not handled properly. (Christian Neukirchen) 解决方案: Check the return value of fclose(). (closes #682) 相关文件: src/ex_cmds.c Patch 7.4.1577 问题: Cannot pass "dict.Myfunc" around as a partial. 解决方案: Create a partial when expected. 相关文件: src/eval.c, src/testdir/test_partial.vim Patch 7.4.1578 问题: There is no way to invoke a function later or periodically. 解决方案: Add timer support. 相关文件: src/eval.c, src/ex_cmds2.c, src/screen.c, src/ex_docmd.c, src/feature.h, src/gui.c, src/proto/eval.pro, src/proto/ex_cmds2.pro, src/proto/screen.pro, src/structs.h, src/version.c, src/testdir/test_alot.vim, src/testdir/test_timers.vim, runtime/doc/eval.txt Patch 7.4.1579 (after 7.4.1578) 问题: Missing changes in channel.c 解决方案: Include the changes. 相关文件: src/channel.c Patch 7.4.1580 问题: Crash when using function reference. (Luchr) 解决方案: Set initial refcount. (Ken Takata, closes #690) 相关文件: src/eval.c, src/testdir/test_partial.vim Patch 7.4.1581 问题: Using ":call dict.func()" where the function is a partial does not work. Using "dict.func()" where the function does not take a Dictionary does not work. 解决方案: Handle partial properly in ":call". (Yasuhiro Matsumoto) 相关文件: src/eval.c, src/testdir/test_partial.vim, src/testdir/test55.ok Patch 7.4.1582 问题: Get E923 when using function(dict.func, [], dict). (Kent Sibilev) Storing a function with a dict in a variable drops the dict if the function is script-local. 解决方案: Translate the function name. Use dict arg if present. 相关文件: src/eval.c, src/testdir/test_partial.vim Patch 7.4.1583 问题: Warning for uninitialized variable. 解决方案: Initialize it. (Dominique) 相关文件: src/ex_cmds2.c Patch 7.4.1584 问题: Timers don't work for Win32 console. 解决方案: Add check_due_timer() in WaitForChar(). 相关文件: src/os_win32.c Patch 7.4.1585 问题: Partial is not recognized everywhere. 解决方案: Check for partial in trans_function_name(). (Yasuhiro Matsumoto) Add a test. 相关文件: src/eval.c, src/testdir/test_partial.vim Patch 7.4.1586 问题: Nesting partials doesn't work. 解决方案: Append arguments. (Ken Takata) 相关文件: src/eval.c, src/testdir/test_partial.vim Patch 7.4.1587 问题: Compiler warnings with 64 bit compiler. 解决方案: Add type casts. (Mike Williams) 相关文件: src/ex_cmds2.c Patch 7.4.1588 问题: Old style test for quickfix. 解决方案: Turn test 96 into a new style test. 相关文件: src/testdir/Make_all.mak, src/testdir/test96.in, src/testdir/test96.ok, src/testdir/test_quickfix.vim Patch 7.4.1589 问题: Combining dict and args with partial doesn't always work. 解决方案: Use the arguments from the partial. 相关文件: src/eval.c, src/testdir/test_partial.vim Patch 7.4.1590 问题: Warning for shadowed variable. (Christian Brabandt) 解决方案: Move the variable into a local block. 相关文件: src/eval.c Patch 7.4.1591 问题: The quickfix title is truncated. 解决方案: Save the command before it is truncated. (Anton Lindqvist) 相关文件: src/quickfix.c, src/testdir/test_quickfix.vim Patch 7.4.1592 问题: Quickfix code using memory after being freed. (Dominique Pelle) 解决方案: Detect that the window was closed. (Hirohito Higashi) 相关文件: src/quickfix.c, src/testdir/test_quickfix.vim Patch 7.4.1593 问题: Using channel timeout instead of request timeout. (Coverity) 解决方案: Remove the extra assignment. 相关文件: src/channel.c Patch 7.4.1594 问题: Timers don't work on Unix. 解决方案: Add missing code. 相关文件: src/os_unix.c Patch 7.4.1595 问题: Not checking for failed open(). (Coverity) 解决方案: Check file descriptor not being negative. 相关文件: src/os_unix.c Patch 7.4.1596 问题: Memory leak. (Coverity) 解决方案: Free the pattern. 相关文件: src/ex_cmds2.c Patch 7.4.1597 问题: Memory leak when out of memory. (Coverity) 解决方案: Free the name. 相关文件: src/eval.c Patch 7.4.1598 问题: When starting the GUI fails a swap file is left behind. (Joerg Plate) 解决方案: Preserve files before exiting. (closes #692) 相关文件: src/main.c, src/gui.c Patch 7.4.1599 问题: No link to Coverity. 解决方案: Add Coverity badge in README. 相关文件: README.md Patch 7.4.1600 问题: libs directory is not useful. 解决方案: Remove arp.library, it was only for very old Amiga versions. 相关文件: libs/arp.library, Filelist Patch 7.4.1601 问题: README files take a lot of space in the top directory. 解决方案: Move most of them to "READMEdir". 相关文件: Filelist, Makefile, README.txt.info, README_ami.txt, README_ami.txt.info, README_amibin.txt, README_amibin.txt.info, README_amisrc.txt, README_amisrc.txt.info, README_bindos.txt, README_dos.txt, README_extra.txt, README_mac.txt, README_ole.txt, README_os2.txt, README_os390.txt, README_src.txt, README_srcdos.txt, README_unix.txt, README_vms.txt, README_w32s.txt, READMEdir/README.txt.info, READMEdir/README_ami.txt, READMEdir/README_ami.txt.info, READMEdir/README_amibin.txt, READMEdir/README_amibin.txt.info, READMEdir/README_amisrc.txt, READMEdir/README_amisrc.txt.info, READMEdir/README_bindos.txt, READMEdir/README_dos.txt, READMEdir/README_extra.txt, READMEdir/README_mac.txt, READMEdir/README_ole.txt, READMEdir/README_os2.txt, READMEdir/README_os390.txt, READMEdir/README_src.txt, READMEdir/README_srcdos.txt, READMEdir/README_unix.txt, READMEdir/README_vms.txt, READMEdir/README_w32s.txt, Patch 7.4.1602 问题: Info files take space in the top directory. 解决方案: Move them to "READMEdir". 相关文件: Filelist, src.info, Contents.info, runtime.info, vimdir.info, Vim.info, Xxd.info, READMEdir/src.info, READMEdir/Contents.info, READMEdir/runtime.info, READMEdir/vimdir.info, READMEdir/Vim.info, READMEdir/Xxd.info Patch 7.4.1603 问题: Timer with an ":echo" command messes up display. 解决方案: Redraw depending on the mode. (Hirohito Higashi) Avoid the more prompt being used recursively. 相关文件: src/screen.c, src/message.c Patch 7.4.1604 问题: Although emoji characters are ambiguous width, best is to treat them as full width. 解决方案: Update the Unicode character tables. Add the 'emoji' options. (Yasuhiro Matsumoto) 相关文件: runtime/doc/options.txt, runtime/optwin.vim, runtime/tools/unicode.vim, src/mbyte.c, src/option.c, src/option.h Patch 7.4.1605 问题: Catching exception that won't be thrown. 解决方案: Remove try/catch. 相关文件: src/testdir/test55.in Patch 7.4.1606 问题: Having type() handle a Funcref that is or isn't a partial differently causes problems for existing scripts. 解决方案: Make type() return the same value. (Thinca) 相关文件: src/eval.c, src/testdir/test_viml.vim Patch 7.4.1607 问题: Comparing a function that exists on two dicts is not backwards compatible. (Thinca) 解决方案: Only compare the function, not what the partial adds. 相关文件: src/eval.c, src/testdir/test_alot.vim, src/testdir/test_expr.vim Patch 7.4.1608 问题: string() doesn't handle a partial. 解决方案: Make a string from a partial. 相关文件: src/eval.c, src/testdir/test_partial.vim Patch 7.4.1609 问题: Contents file is only for Amiga distro. 解决方案: Move it to "READMEdir". Update some info. 相关文件: Filelist, Contents, READMEdir/Contents Patch 7.4.1610 问题: Compiler warnings for non-virtual destructor. 解决方案: Mark the classes final. (Ken Takata) 相关文件: src/Make_cyg_ming.mak, src/gui_dwrite.cpp, src/if_ole.cpp Patch 7.4.1611 问题: The versplit feature makes the code unnecessary complicated. 解决方案: Remove FEAT_VERTSPLIT, always support vertical splits when FEAT_WINDOWS is defined. 相关文件: src/buffer.c, src/charset.c, src/eval.c, src/ex_cmds.c, src/ex_docmd.c, src/ex_getln.c, src/gui.c, src/if_lua.c, src/if_mzsch.c, src/if_ruby.c, src/main.c, src/misc1.c, src/misc2.c, src/move.c, src/normal.c, src/option.c, src/quickfix.c, src/screen.c, src/syntax.c, src/term.c, src/ui.c, src/window.c, src/globals.h, src/gui.h, src/if_py_both.h, src/option.h, src/structs.h, src/term.h src/feature.h, src/vim.h, src/version.c Patch 7.4.1612 (after 7.4.1611) 问题: Can't build with small features. 解决方案: Move code and #ifdefs. 相关文件: src/ex_getln.c Patch 7.4.1613 (after 7.4.1612) 问题: Still can't build with small features. 解决方案: Adjust #ifdefs. 相关文件: src/ex_getln.c Patch 7.4.1614 问题: Still quickfix test in old style. 解决方案: Turn test 10 into a new style test. 相关文件: src/testdir/Make_all.mak, src/testdir/Make_vms.mms, src/testdir/main.aap, src/testdir/test10.in, src/testdir/test10.ok, src/testdir/test_quickfix.vim, src/testdir/test10a.in, src/testdir/test10a.ok Patch 7.4.1615 问题: Build fails with tiny features. 解决方案: Adjust #ifdefs. 相关文件: src/normal.c, src/window.c Patch 7.4.1616 问题: Malformed channel request causes a hang. 解决方案: Drop malformed message. (Damien) 相关文件: src/channel.c, src/testdir/test_channel.vim, src/testdir/test_channel.py Patch 7.4.1617 问题: When a JSON message is split it isn't decoded. 解决方案: Wait a short time for the rest of the message to arrive. 相关文件: src/channel.c, src/json.c, src/structs.h, src/testdir/test_channel.vim, src/testdir/test_channel.py Patch 7.4.1618 问题: Starting job with output to buffer changes options in the current buffer. 解决方案: Set "curbuf" earlier. (Yasuhiro Matsumoto) 相关文件: src/channel.c Patch 7.4.1619 问题: When 'fileformats' is set in the vimrc it applies to new buffers but not the initial buffer. 解决方案: Set 'fileformat' when starting up. (Mike Williams) 相关文件: src/option.c Patch 7.4.1620 问题: Emoji characters are not considered as a kind of word character. 解决方案: Give emoji characters a word class number. (Yasuhiro Matsumoto) 相关文件: src/mbyte.c Patch 7.4.1621 问题: Channel test doesn't work with Python 2.6. 解决方案: Add number in formatting placeholder. (Wiredool) 相关文件: src/testdir/test_channel.py Patch 7.4.1622 问题: Channel demo doesn't work with Python 2.6. 解决方案: Add number in formatting placeholder 相关文件: runtime/tools/demoserver.py Patch 7.4.1623 问题: All Channels share the message ID, it keeps getting bigger. 解决方案: Use a message ID per channel. 相关文件: src/channel.c, src/proto/channel.pro, src/structs.h Patch 7.4.1624 问题: Can't get info about a channel. 解决方案: Add ch_info(). 相关文件: src/eval.c, src/channel.c, src/proto/channel.pro, src/testdir/test_channel.vim, runtime/doc/eval.txt Patch 7.4.1625 问题: Trying to close file descriptor that isn't open. 解决方案: Check for negative number. 相关文件: src/os_unix.c Patch 7.4.1626 (after 7.4.1624) 问题: Missing changes to structs. 解决方案: Include the changes. 相关文件: src/structs.h Patch 7.4.1627 问题: Channel out_cb and err_cb are not tested. 解决方案: Add a test. 相关文件: src/testdir/test_channel.vim Patch 7.4.1628 问题: 64-bit Compiler warning. 解决方案: Change type of variable. (Mike Williams) 相关文件: src/channel.c Patch 7.4.1629 问题: Handling emoji characters as full width has problems with backwards compatibility. 解决方案: Remove ambiguous and double width characters from the emoji table. Use a separate table for the character class. (partly by Yasuhiro Matsumoto) 相关文件: runtime/tools/unicode.vim, src/mbyte.c Patch 7.4.1630 问题: Unicode table for double width is outdated. 解决方案: Update to the latest Unicode standard. 相关文件: src/mbyte.c Patch 7.4.1631 问题: Compiler doesn't understand switch on all enum values. (Tony Mechelynck) 解决方案: Initialize variable. 相关文件: src/channel.c Patch 7.4.1632 问题: List of test targets is outdated. 解决方案: Update to current list of test targets. 相关文件: src/Makefile Patch 7.4.1633 问题: If the help tags file was removed "make install" fails. (Tony Mechelynck) 解决方案: Only try moving the file if it exists. 相关文件: src/Makefile Patch 7.4.1634 问题: Vertical movement after CTRL-A ends up in the wrong column. (Urtica Dioica) 解决方案: Set curswant when appropriate. (Hirohito Higashi) 相关文件: src/ops.c, src/testdir/test_increment.vim Patch 7.4.1635 问题: Channel test is a bit flaky. 解决方案: Remove 'DETACH' if it's there. 相关文件: src/testdir/test_channel.vim Patch 7.4.1636 问题: When 'F' is in 'shortmess' the prompt for the encryption key isn't displayed. (Toothpik) 解决方案: Reset msg_silent. 相关文件: src/ex_getln.c Patch 7.4.1637 问题: Can't build with older MinGW compiler. 解决方案: Change option from c++11 to gnu++11. (Ken Takata) 相关文件: src/Make_cyg_ming.mak Patch 7.4.1638 问题: When binding a function to a dict the reference count is wrong. 解决方案: Decrement dict reference count, only reference the function when actually making a copy. (Ken Takata) 相关文件: src/eval.c, src/testdir/test_partial.vim Patch 7.4.1639 问题: Invoking garbage collection may cause a double free. 解决方案: Don't free the dict in a partial when recursive is FALSE. 相关文件: src/eval.c Patch 7.4.1640 问题: Crash when an autocommand changes a quickfix list. (Dominique) 解决方案: Check whether an entry is still valid. (Yegappan Lakshmanan, Hirohito Higashi) 相关文件: src/quickfix.c, src/testdir/test_quickfix.vim Patch 7.4.1641 问题: Using unterminated string. 解决方案: Add NUL before calling vim_strsave_shellescape(). (James McCoy) 相关文件: src/eval.c, src/testdir/test105.in, src/testdir/test105.ok Patch 7.4.1642 问题: Handling emoji characters as full width has problems with backwards compatibility. 解决方案: Only put characters in the 1f000 range in the emoji table. 相关文件: runtime/tools/unicode.vim, src/mbyte.c Patch 7.4.1643 (after 7.4.1641) 问题: Terminating file name has side effects. 解决方案: Restore the character. (mostly by James McCoy, closes #713) 相关文件: src/eval.c, src/testdir/test105.in, src/testdir/test105.ok Patch 7.4.1644 问题: Using string() on a partial that exists in the dictionary it binds results in an error. (Nikolai Pavlov) 解决方案: Make string() not fail on a recursively nested structure. (Ken Takata) 相关文件: src/eval.c, src/testdir/test_partial.vim Patch 7.4.1645 问题: When a dict contains a partial it can't be redefined as a function. (Nikolai Pavlov) 解决方案: Remove the partial when overwriting with a function. 相关文件: src/eval.c, src/testdir/test_partial.vim Patch 7.4.1646 问题: Using Python vim.bindeval() on a partial doesn't work. (Nikolai Pavlov) 解决方案: Add VAR_PARTIAL support in Python. 相关文件: src/if_py_both.h, src/testdir/test_partial.vim Patch 7.4.1647 问题: Using freed memory after setqflist() and ":caddbuffer". (Dominique) 解决方案: Set qf_ptr when adding the first item to the quickfix list. 相关文件: src/quickfix.c, src/testdir/test_quickfix.vim Patch 7.4.1648 问题: Compiler has a problem copying a string into di_key[]. (Yegappan Lakshmanan) 解决方案: Add dictitem16_T. 相关文件: src/structs.h, src/eval.c Patch 7.4.1649 问题: The matchit plugin needs to be copied to be used. 解决方案: Put the matchit plugin in an optional package. 相关文件: Filelist, runtime/macros/matchit.vim, runtime/macros/matchit.txt, runtime/macros/README.txt, src/Makefile, runtime/pack/dist/opt/matchit/plugin/matchit.vim, runtime/pack/dist/opt/matchit/doc/matchit.txt, runtime/pack/dist/opt/matchit/doc/tags, runtime/doc/usr_05.txt, runtime/doc/usr_toc.txt Patch 7.4.1650 问题: Quickfix test fails. 解决方案: Accept any number of matches. 相关文件: src/testdir/test_quickfix.vim Patch 7.4.1651 问题: Some dead (MSDOS) code remains. 解决方案: Remove the unused lines. (Ken Takata) 相关文件: src/misc1.c Patch 7.4.1652 问题: Old style test for fnamemodify(). 解决方案: Turn it into a new style test. 相关文件: src/testdir/test105.in, src/testdir/test105.ok, src/testdir/test_fnamemodify.vim, src/testdir/test_alot.vim, src/testdir/Make_all.mak Patch 7.4.1653 (after 7.4.1649) 问题: Users who loaded matchit.vim manually have to change their startup. (Gary Johnson) 解决方案: Add a file in the old location that loads the package. 相关文件: runtime/macros/matchit.vim, Filelist Patch 7.4.1654 问题: Crash when using expand('%:S') in a buffer without a name. 解决方案: Don't set a NUL. (James McCoy, closes #714) 相关文件: src/eval.c, src/testdir/test_fnamemodify.vim Patch 7.4.1655 问题: remote_expr() hangs. (Ramel) 解决方案: Check for messages in the waiting loop. 相关文件: src/if_xcmdsrv.c Patch 7.4.1656 问题: Crash when using partial with a timer. 解决方案: Increment partial reference count. (Hirohito Higashi) 相关文件: src/eval.c, src/testdir/test_timers.vim Patch 7.4.1657 问题: On Unix in a terminal: channel messages are not handled right away. (Jackson Alves de Aquino) 解决方案: Break the loop for timers when something was received. 相关文件: src/os_unix.c Patch 7.4.1658 问题: A plugin does not know when VimEnter autocommands were already triggered. 解决方案: Add the v:vim_did_enter variable. 相关文件: src/eval.c, src/main.c, src/vim.h, src/testdir/test_autocmd.vim, src/testdir/test_alot.vim, runtime/doc/autocmd.txt, runtime/doc/eval.txt Patch 7.4.1659 (after 7.4.1657) 问题: Compiler warning for argument type. (Manuel Ortega) 解决方案: Remove "&". 相关文件: src/os_unix.c Patch 7.4.1660 问题: has('patch-7.4.1') doesn't work. 解决方案: Fix off-by-one error. (Thinca) 相关文件: src/eval.c, src/testdir/test_expr.vim, src/testdir/test60.in, src/testdir/test60.ok Patch 7.4.1661 问题: No test for special characters in channel eval command. 解决方案: Testing sending and receiving text with special characters. 相关文件: src/testdir/test_channel.vim, src/testdir/test_channel.py Patch 7.4.1662 问题: No test for an invalid Ex command on a channel. 解决方案: Test handling an invalid command gracefully. Avoid getting an error message, do write it to the channel log. 相关文件: src/channel.c, src/testdir/test_channel.vim, src/testdir/test_channel.py Patch 7.4.1663 问题: In tests it's often useful to check if a pattern matches. 解决方案: Add assert_match(). 相关文件: src/eval.c, src/testdir/test_assert.vim, src/testdir/test_channel.vim, runtime/doc/eval.txt Patch 7.4.1664 问题: Crash in :cgetexpr. 解决方案: Check for NULL pointer. (Dominique) Add a test. 相关文件: src/quickfix.c, src/testdir/test_quickfix.vim Patch 7.4.1665 问题: Crash when calling job_start() with a NULL string. (Dominique) 解决方案: Check for an invalid argument. 相关文件: src/channel.c, src/testdir/test_channel.vim Patch 7.4.1666 问题: When reading JSON from a channel all readahead is used. 解决方案: Use the fill function to reduce overhead. 相关文件: src/channel.c, src/json.c, src/structs.h Patch 7.4.1667 问题: Win32: waiting on a pipe with fixed sleep time. 解决方案: Start with a short delay and increase it when looping. 相关文件: src/channel.c Patch 7.4.1668 问题: channel_get_all() does multiple allocations. 解决方案: Compute the size and allocate once. 相关文件: src/channel.c Patch 7.4.1669 问题: When writing buffer lines to a pipe Vim may block. 解决方案: Avoid blocking, write more lines later. 相关文件: src/channel.c, src/misc2.c, src/os_unix.c, src/structs.h, src/vim.h, src/proto/channel.pro, src/testdir/test_channel.vim Patch 7.4.1670 问题: Completion doesn't work well for a variable containing "#". 解决方案: Recognize the "#". (Watiko) 相关文件: src/eval.c Patch 7.4.1671 问题: When help exists in multiple languages, adding @ab while "ab" is the default help language is unnecessary. 解决方案: Leave out "@ab" when not needed. (Ken Takata) 相关文件: src/ex_getln.c Patch 7.4.1672 问题: The Dvorak support is a bit difficult to install. 解决方案: Turn it into an optional package. 相关文件: runtime/macros/dvorak, runtime/macros/README.txt, runtime/pack/dist/opt/dvorak/plugin/dvorak.vim, runtime/pack/dist/opt/dvorak/dvorak/enable.vim, runtime/pack/dist/opt/dvorak/dvorak/disable.vim Patch 7.4.1673 问题: The justify plugin has to be copied or sourced to be used. 解决方案: Turn it into a package. 相关文件: runtime/macros/justify.vim, runtime/macros/README.txt, runtime/pack/dist/opt/justify/plugin/justify.vim, Filelist Patch 7.4.1674 问题: The editexisting plugin has to be copied or sourced to be used. 解决方案: Turn it into a package. 相关文件: runtime/macros/editexisting.vim, runtime/macros/README.txt, runtime/pack/dist/opt/editexisting/plugin/editexisting.vim, Filelist Patch 7.4.1675 问题: The swapmous plugin has to be copied or sourced to be used. 解决方案: Turn it into the swapmouse package. 相关文件: runtime/macros/swapmous.vim, runtime/macros/README.txt, runtime/pack/dist/opt/swapmouse/plugin/swapmouse.vim, Filelist Patch 7.4.1676 问题: The shellmenu plugin has to be copied or sourced to be used. 解决方案: Turn it into a package. 相关文件: runtime/macros/shellmenu.vim, runtime/macros/README.txt, runtime/pack/dist/opt/shellmenu/plugin/shellmenu.vim, Filelist Patch 7.4.1677 问题: A reference to the removed file_select plugin remains. 解决方案: Remove it. 相关文件: runtime/macros/README.txt Patch 7.4.1678 问题: Warning for unused argument. 解决方案: Add UNUSED. (Dominique Pelle) 相关文件: src/if_mzsch.c Patch 7.4.1679 问题: Coverity: copying value of v_lock without initializing it. 解决方案: Init v_lock in rettv_list_alloc() and rettv_dict_alloc(). 相关文件: src/eval.c Patch 7.4.1680 问题: Coverity warns for not checking name length (false positive). 解决方案: Only copy the characters we know are there. 相关文件: src/channel.c Patch 7.4.1681 问题: Coverity warns for fixed size buffer length (false positive). 解决方案: Add a check for the name length. 相关文件: src/eval.c Patch 7.4.1682 问题: Coverity: no check for NULL. 解决方案: Add check for invalid argument to assert_match(). 相关文件: src/eval.c Patch 7.4.1683 问题: Generated .bat files do not support --nofork. 解决方案: Add check for --nofork. Also add "setlocal". (Kevin Cantú, closes #659) 相关文件: src/dosinst.c Patch 7.4.1684 问题: README text is slightly outdated. 解决方案: Mention the READMEdir directory. 相关文件: README.md, README.txt Patch 7.4.1685 问题: There is no easy way to get all the information about a match. 解决方案: Add matchstrpos(). (Ozaki Kiichi) 相关文件: runtime/doc/eval.txt, runtime/doc/usr_41.txt, src/eval.c, src/testdir/test_alot.vim, src/testdir/test_matchstrpos.vim Patch 7.4.1686 问题: When running tests $HOME/.viminfo is written. (James McCoy) 解决方案: Add 'nviminfo' to the 'viminfo' option. (closes #722) 相关文件: src/testdir/test_backspace_opt.vim, src/testdir/test_viminfo.vim, src/testdir/runtest.vim. Patch 7.4.1687 问题: The channel close_cb option does not work. 解决方案: Use jo_close_partial instead of jo_err_partial. (Damien) 相关文件: src/channel.c, src/testdir/test_channel.vim Patch 7.4.1688 问题: MzScheme does not support partial. 解决方案: Add minimal partial support. (Ken Takata) 相关文件: src/if_mzsch.c Patch 7.4.1689 问题: Ruby interface has inconsistent coding style. 解决方案: Fix the coding style. (Ken Takata) 相关文件: src/if_ruby.c Patch 7.4.1690 问题: Can't compile with the conceal feature but without multi-byte. 解决方案: Adjust #ifdef. (Owen Leibman) 相关文件: src/eval.c, src/window.c Patch 7.4.1691 问题: When switching to a new buffer and an autocommand applies syntax highlighting an ml_get error may occur. 解决方案: Check "syn_buf" against the buffer in the window. (Alexander von Buddenbrock, closes #676) 相关文件: src/syntax.c Patch 7.4.1692 问题: feedkeys('i', 'x') gets stuck, waits for a character to be typed. 解决方案: Behave like ":normal". (Yasuhiro Matsumoto) 相关文件: src/eval.c, src/testdir/test_feedkeys.vim Patch 7.4.1693 问题: Building the Perl interface gives compiler warnings. 解决方案: Remove a pragma. Add noreturn attributes. (Damien) 相关文件: src/if_perl.xs Patch 7.4.1694 问题: Win32 gvim doesn't work with "dvorakj" input method. 解决方案: Wait for QS_ALLINPUT instead of QS_ALLEVENTS. (Yukihiro Nakadaira) 相关文件: src/gui_w32.c Patch 7.4.1695 问题: ":syn reset" clears the effect ":syn iskeyword". (James McCoy) 解决方案: Remove clearing the syntax keywords. 相关文件: src/syntax.c Patch 7.4.1696 问题: When using :stopinsert in a silent mapping the "INSERT" message isn't cleared. (Coacher) 解决方案: Always clear the message. (Christian Brabandt, closes #718) 相关文件: src/ex_docmd.c, src/proto/screen.pro, src/screen.c Patch 7.4.1697 问题: Display problems when the 'ambiwidth' and 'emoji' options are not set properly or the terminal doesn't behave as expected. 解决方案: After drawing an ambiguous width character always position the cursor. 相关文件: src/mbyte.c, src/screen.c, src/proto/mbyte.pro Patch 7.4.1698 问题: Two tests fail when running tests with MinGW. (Michael Soyka) 解决方案: Convert test_getcwd.ok test_wordcount.ok to unix fileformat. 相关文件: src/testdir/Make_ming.mak Patch 7.4.1699 问题: :packadd does not work the same when used early or late. 解决方案: Always load plugins matching "plugin/**/*.vim". 相关文件: src/ex_cmds2.c, src/testdir/test_packadd.vim Patch 7.4.1700 问题: Equivalence classes are not properly tested. 解决方案: Add tests for multi-byte and latin1. Fix an error. (Owen Leibman) 相关文件: src/regexp.c, src/testdir/Make_all.mak, src/testdir/test_alot_latin.vim, src/testdir/test_alot_utf8.vim, src/testdir/test_regexp_latin.vim, src/testdir/test_regexp_utf8.vim Patch 7.4.1701 问题: Equivalence classes still tested in old style tests. 解决方案: Remove the duplicate. 相关文件: src/testdir/test44.in, src/testdir/test44.ok, src/testdir/test99.in, src/testdir/test99.ok Patch 7.4.1702 问题: Using freed memory when parsing 'printoptions' fails. 解决方案: Save the old options and restore them in case of an error. (Dominique) 相关文件: src/hardcopy.c, src/testdir/test_hardcopy.vim Patch 7.4.1703 问题: Can't assert for not equal and not matching. 解决方案: Add assert_notmatch() and assert_notequal(). 相关文件: src/eval.c, runtime/doc/eval.txt, src/testdir/test_assert.vim Patch 7.4.1704 问题: Using freed memory with "wincmd p". (Dominique Pelle) 解决方案: Also clear "prevwin" in other tab pages. 相关文件: src/window.c Patch 7.4.1705 问题: The 'guifont' option does not allow for a quality setting. 解决方案: Add the "q" item, supported on MS-Windows. (Yasuhiro Matsumoto) 相关文件: runtime/doc/options.txt, src/gui_w32.c, src/os_mswin.c, src/proto/os_mswin.pro Patch 7.4.1706 问题: Old style function declaration breaks build. 解决方案: Remove __ARGS(). 相关文件: src/proto/os_mswin.pro Patch 7.4.1707 问题: Cannot use empty dictionary key, even though it can be useful. 解决方案: Allow using an empty dictionary key. 相关文件: src/hashtab.c, src/eval.c, src/testdir/test_expr.vim Patch 7.4.1708 问题: New regexp engine does not work properly with EBCDIC. 解决方案: Define equivalence class characters. (Owen Leibman) 相关文件: src/regexp_nfa.c Patch 7.4.1709 问题: Mistake in #ifdef. 解决方案: Change PROOF_QUALITY to DRAFT_QUALITY. (Ken Takata) 相关文件: src/os_mswin.c Patch 7.4.1710 问题: Not all output of an external command is read. 解决方案: Avoid timing out when the process has exited. (closes #681) 相关文件: src/os_unix.c Patch 7.4.1711 问题: When using try/catch in 'statusline' it is still considered an error and the status line will be disabled. 解决方案: Check did_emsg instead of called_emsg. (haya14busa, closes #729) 相关文件: src/screen.c, src/testdir/test_statusline.vim, src/testdir/test_alot.vim Patch 7.4.1712 问题: For plugins in packages, plugin authors need to take care of all dependencies. 解决方案: When loading "start" packages and for :packloadall, first add all directories to 'runtimepath' before sourcing plugins. 相关文件: src/ex_cmds2.c, src/testdir/test_packadd.vim Patch 7.4.1713 问题: GTK GUI doesn't work on Wayland. 解决方案: Specify that only the X11 backend is allowed. (Simon McVittie) 相关文件: src/gui_gtk_x11.c Patch 7.4.1714 问题: Non-GUI specific settings in the gvimrc_example file. 解决方案: Move some settings to the vimrc_example file. Remove setting 'hlsearch' again. (suggested by Hirohito Higashi) 相关文件: runtime/vimrc_example.vim, runtime/gvimrc_example.vim Patch 7.4.1715 问题: Double free when a partial is in a cycle with a list or dict. (Nikolai Pavlov) 解决方案: Do not free a nested list or dict used by the partial. 相关文件: src/eval.c, src/testdir/test_partial.vim Patch 7.4.1716 问题: 'autochdir' doesn't work for the first file. (Rob Hoelz) 解决方案: Call DO_AUTOCHDIR after startup. (Christian Brabandt, closes #704) 相关文件: src/main.c Patch 7.4.1717 问题: Leaking memory when opening a channel fails. 解决方案: Unreference partials in job options. 相关文件: src/eval.c, src/channel.c, src/proto/channel.pro, src/testdir/test_channel.vim Patch 7.4.1718 问题: Coverity: not using return value of set_ref_in_item(). 解决方案: Use the return value. 相关文件: src/eval.c Patch 7.4.1719 问题: Leaking memory when there is a cycle involving a job and a partial. 解决方案: Add a copyID to job and channel. Set references in items referred by them. Go through all jobs and channels to find unreferenced items. Also, decrement reference counts when garbage collecting. 相关文件: src/eval.c, src/channel.c, src/netbeans.c, src/globals.h, src/ops.c, src/regexp.c, src/tag.c, src/proto/channel.pro, src/proto/eval.pro, src/testdir/test_partial.vim, src/structs.h Patch 7.4.1720 问题: Tests fail without the job feature. 解决方案: Skip tests when the job feature is not present. 相关文件: src/testdir/test_partial.vim Patch 7.4.1721 问题: The vimtbar files are unused. 解决方案: Remove them. (Ken Takata) 相关文件: src/vimtbar.dll, src/vimtbar.h, src/vimtbar.lib, Filelist Patch 7.4.1722 问题: Crash when calling garbagecollect() after starting a job. 解决方案: Set the copyID on job and channel. (Hirohito Higashi, Ozaki Kiichi) 相关文件: src/eval.c Patch 7.4.1723 问题: When using try/catch in 'tabline' it is still considered an error and the tabline will be disabled. 解决方案: Check did_emsg instead of called_emsg. (haya14busa, closes #746) 相关文件: src/screen.c, src/testdir/test_tabline.vim, src/testdir/test_alot.vim Patch 7.4.1724 (after 7.4.1723) 问题: Tabline test fails in GUI. 解决方案: Remove 'e' from 'guioptions'. 相关文件: src/testdir/test_tabline.vim Patch 7.4.1725 问题: Compiler errors for non-ANSI compilers. 解决方案: Remove // comment. Remove comma at end of enum. (Michael Jarvis) 相关文件: src/eval.c Patch 7.4.1726 问题: ANSI compiler complains about string length. 解决方案: Split long string in two parts. (Michael Jarvis) 相关文件: src/ex_cmds.c Patch 7.4.1727 问题: Cannot detect a crash in tests when caused by garbagecollect(). 解决方案: Add garbagecollect_for_testing(). Do not free a job if is still useful. 相关文件: src/channel.c, src/eval.c, src/getchar.c, src/main.c, src/vim.h, src/proto/eval.pro, src/testdir/runtest.vim, src/testdir/test_channel.vim, runtime/doc/eval.txt Patch 7.4.1728 问题: The help for functions require a space after the "(". 解决方案: Make CTRL-] on a function name ignore the arguments. (Hirohito Higashi) 相关文件: src/ex_cmds.c, src/testdir/test_help_tagjump.vim, runtime/doc/eval.txt Patch 7.4.1729 问题: The Perl interface cannot use 'print' operator for writing directly in standard IO. 解决方案: Add a minimal implementation of PerlIO Layer feature and try to use it for STDOUT/STDERR. (Damien) 相关文件: src/if_perl.xs, src/testdir/test_perl.vim Patch 7.4.1730 问题: It is not easy to get a character out of a string. 解决方案: Add strgetchar() and strcharpart(). 相关文件: src/eval.c, src/testdir/test_expr.vim Patch 7.4.1731 问题: Python: turns partial into simple funcref. 解决方案: Use partials like partials. (Nikolai Pavlov, closes #734) 相关文件: runtime/doc/if_pyth.txt, src/eval.c, src/if_py_both.h, src/if_python.c, src/if_python3.c, src/proto/eval.pro, src/testdir/test86.in, src/testdir/test86.ok, src/testdir/test87.in, src/testdir/test87.ok Patch 7.4.1732 问题: Folds may close when using autocomplete. (Anmol Sethi) 解决方案: Increment/decrement disable_fold. (Christian Brabandt, closes #643) 相关文件: src/edit.c, src/fold.c, src/globals.h Patch 7.4.1733 问题: "make install" doesn't know about cross-compiling. (Christian Neukirchen) 解决方案: Add CROSS_COMPILING. (closes #740) 相关文件: src/configure.in, src/auto/configure, src/config.mk.in, src/Makefile Patch 7.4.1734 (after 7.4.1730) 问题: Test fails when not using utf-8. 解决方案: Split test in regular and utf-8 part. 相关文件: src/testdir/test_expr.vim, src/testdir/test_expr_utf8.vim, src/testdir/test_alot_utf8.vim Patch 7.4.1735 问题: It is not possible to only see part of the message history. It is not possible to clear messages. 解决方案: Add a count to ":messages" and a clear argument. (Yasuhiro Matsumoto) 相关文件: runtime/doc/message.txt, src/ex_cmds.h, src/message.c, src/testdir/test_messages.vim, src/testdir/test_alot.vim Patch 7.4.1736 (after 7.4.1731) 问题: Unused variable. 解决方案: Remove it. (Yasuhiro Matsumoto) 相关文件: src/if_py_both.h Patch 7.4.1737 问题: Argument marked as unused is used. 解决方案: Remove UNUSED. 相关文件: src/message.c Patch 7.4.1738 问题: Count for ":messages" depends on number of lines. 解决方案: Add ADDR_OTHER address type. 相关文件: src/ex_cmds.h Patch 7.4.1739 问题: Messages test fails on MS-Windows. 解决方案: Adjust the asserts. Skip the "messages maintainer" line if not showing all messages. 相关文件: src/message.c, src/testdir/test_messages.vim Patch 7.4.1740 问题: syn-cchar defined with matchadd() does not appear if there are no other syntax definitions which matches buffer text. 解决方案: Check for startcol. (Ozaki Kiichi, haya14busa, closes #757) 相关文件: src/screen.c, src/testdir/Make_all.mak, src/testdir/test_alot_utf8.vim, src/testdir/test_match_conceal.in, src/testdir/test_match_conceal.ok, src/testdir/test_matchadd_conceal.vim, src/testdir/test_matchadd_conceal_utf8.vim, src/testdir/test_undolevels.vim Patch 7.4.1741 问题: Not testing utf-8 characters. 解决方案: Move the right asserts to the test_expr_utf8 test. 相关文件: src/testdir/test_expr.vim, src/testdir/test_expr_utf8.vim Patch 7.4.1742 问题: strgetchar() does not work correctly. 解决方案: use mb_cptr2len(). Add a test. (Naruhiko Nishino) 相关文件: src/eval.c, src/testdir/test_expr_utf8.vim Patch 7.4.1743 问题: Clang warns for uninitialized variable. (Michael Jarvis) 解决方案: Initialize it. 相关文件: src/if_py_both.h Patch 7.4.1744 问题: Python: Converting a sequence may leak memory. 解决方案: Decrement a reference. (Nikolai Pavlov) 相关文件: src/if_py_both.h Patch 7.4.1745 问题: README file is not clear about where to get Vim. 解决方案: Add links to github, releases and the Windows installer. (Suggested by Christian Brabandt) 相关文件: README.md, README.txt Patch 7.4.1746 问题: Memory leak in Perl. 解决方案: Decrement the reference count. Add a test. (Damien) 相关文件: src/if_perl.xs, src/testdir/test_perl.vim Patch 7.4.1747 问题: Coverity: missing check for NULL pointer. 解决方案: Check for out of memory. 相关文件: src/if_py_both.h Patch 7.4.1748 问题: "gD" does not find match in first column of first line. (Gary Johnson) 解决方案: Accept match at the cursor. 相关文件: src/normal.c, src/testdir/test_goto.vim, src/testdir/test_alot.vim Patch 7.4.1749 问题: When using GTK 3.20 there are a few warnings. 解决方案: Use new functions when available. (Kazunobu Kuriyama) 相关文件: src/gui_beval.c src/gui_gtk_x11.c Patch 7.4.1750 问题: When a buffer gets updated while in command line mode, the screen may be messed up. 解决方案: Postpone the redraw when the screen is scrolled. 相关文件: src/channel.c Patch 7.4.1751 问题: Crash when 'tagstack' is off. (Dominique Pelle) 解决方案: Fix it. (Hirohito Higashi) 相关文件: src/tag.c, src/testdir/test_alot.vim, src/testdir/test_tagjump.vim Patch 7.4.1752 问题: When adding to the quickfix list the current position is reset. 解决方案: Do not reset the position when not needed. (Yegappan Lakshmanan) 相关文件: src/quickfix.c, src/testdir/test_quickfix.vim Patch 7.4.1753 问题: "noinsert" in 'completeopt' is sometimes ignored. 解决方案: Set the variables when the 'completeopt' was set. (Ozaki Kiichi) 相关文件: src/edit.c, src/option.c, src/proto/edit.pro Patch 7.4.1754 问题: When 'filetype' was set and reloading a buffer which does not cause it to be set, the syntax isn't loaded. (KillTheMule) 解决方案: Remember whether the FileType event was fired and fire it if not. (Anton Lindqvist, closes #747) 相关文件: src/fileio.c, src/testdir/test_syntax.vim Patch 7.4.1755 问题: When using getreg() on a non-existing register a NULL list is returned. (Bjorn Linse) 解决方案: Allocate an empty list. Add a test. 相关文件: src/eval.c, src/testdir/test_expr.vim Patch 7.4.1756 问题: "dll" options are not expanded. 解决方案: Expand environment variables. (Ozaki Kiichi) 相关文件: src/option.c, src/testdir/test_alot.vim, src/testdir/test_expand_dllpath.vim Patch 7.4.1757 问题: When using complete() it may set 'modified' even though nothing was inserted. 解决方案: Use Down/Up instead of Next/Previous match. (Shougo Matsu, closes #745) 相关文件: src/edit.c Patch 7.4.1758 问题: Triggering CursorHoldI when in CTRL-X mode causes problems. 解决方案: Do not trigger CursorHoldI in CTRL-X mode. Add "!" flag to feedkeys() (test with that didn't work though). 相关文件: src/edit.c, src/eval.c Patch 7.4.1759 问题: When using feedkeys() in a timer the inserted characters are not used right away. 解决方案: Break the wait loop when characters have been added to typebuf. use this for testing CursorHoldI. 相关文件: src/gui.c, src/os_win32.c, src/os_unix.c, src/testdir/test_autocmd.vim Patch 7.4.1760 (after 7.4.1759) 问题: Compiler warning for unused variable. 解决方案: Add #ifdef. (John Marriott) 相关文件: src/os_win32.c Patch 7.4.1761 问题: Coverity complains about ignoring return value. 解决方案: Add "(void)" to get rid of the warning. 相关文件: src/eval.c Patch 7.4.1762 问题: Coverity: useless assignments. 解决方案: Remove them. 相关文件: src/search.c Patch 7.4.1763 问题: Coverity: useless assignment. 解决方案: Add #if 0. 相关文件: src/spell.c Patch 7.4.1764 问题: C++ style comment. (Ken Takata) 解决方案: Finish the work started here: don't call perror() when stderr isn't working. 相关文件: src/os_unix.c Patch 7.4.1765 问题: Undo options are not together in the options window. 解决方案: Put them together. (Gary Johnson) 相关文件: runtime/optwin.vim Patch 7.4.1766 问题: Building instructions for MS-Windows are outdated. 解决方案: Mention setting SDK_INCLUDE_DIR. (Ben Franklin, closes #771) Move outdated instructions further down. 相关文件: src/INSTALLpc.txt Patch 7.4.1767 问题: When installing Vim on a GTK system the icon cache is not updated. 解决方案: Update the GTK icon cache when possible. (Kazunobu Kuriyama) 相关文件: src/Makefile, src/configure.in, src/config.mk.in, src/auto/configure Patch 7.4.1768 问题: Arguments of setqflist() are not checked properly. 解决方案: Add better checks, add a test. (Nikolai Pavlov, Hirohito Higashi, closes #661) 相关文件: src/eval.c, src/testdir/test_quickfix.vim Patch 7.4.1769 问题: No "closed", "errors" and "encoding" attribute on Python output. 解决方案: Add attributes and more tests. (Roland Puntaier, closes #622) 相关文件: src/if_py_both.h, src/if_python.c, src/if_python3.c, src/testdir/test86.in, src/testdir/test86.ok, src/testdir/test87.in, src/testdir/test87.ok Patch 7.4.1770 问题: Cannot use true color in the terminal. 解决方案: Add the 'guicolors' option. (Nikolai Pavlov) 相关文件: runtime/doc/options.txt, runtime/doc/term.txt, runtime/doc/various.txt, src/auto/configure, src/config.h.in, src/configure.in, src/eval.c, src/globals.h, src/hardcopy.c, src/option.c, src/option.h, src/proto/term.pro, src/screen.c, src/structs.h, src/syntax.c, src/term.c, src/term.h, src/version.c, src/vim.h Patch 7.4.1771 (after 7.4.1768) 问题: Warning for unused variable. 解决方案: Add #ifdef. (John Marriott) 相关文件: src/eval.c Patch 7.4.1772 (after 7.4.1767) 问题: Installation fails when $GTK_UPDATE_ICON_CACHE is empty. 解决方案: Add quotes. (Kazunobu Kuriyama) 相关文件: src/Makefile Patch 7.4.1773 (after 7.4.1770) 问题: Compiler warnings. (Dominique Pelle) 解决方案: Add UNUSED. Add type cast. Avoid a buffer overflow. 相关文件: src/syntax.c, src/term.c Patch 7.4.1774 (after 7.4.1770) 问题: Cterm true color feature has warnings. 解决方案: Add type casts. 相关文件: src/screen.c, src/syntax.c, src/term.c Patch 7.4.1775 问题: The rgb.txt file is not installed. 解决方案: Install the file. (Christian Brabandt) 相关文件: src/Makefile Patch 7.4.1776 问题: Using wrong buffer length. 解决方案: use the right name. (Kazunobu Kuriyama) 相关文件: src/term.c Patch 7.4.1777 问题: Newly added features can escape the sandbox. 解决方案: Add checks for restricted and secure. (Yasuhiro Matsumoto) 相关文件: src/eval.c Patch 7.4.1778 问题: When using the term truecolor feature, the t_8f and t_8b termcap options are not set by default. 解决方案: Move the values to before BT_EXTRA_KEYS. (Christian Brabandt) 相关文件: src/term.c Patch 7.4.1779 问题: Using negative index in strcharpart(). (Yegappan Lakshmanan) 解决方案: Assume single byte when using a negative index. 相关文件: src/eval.c Patch 7.4.1780 问题: Warnings reported by cppcheck. 解决方案: Fix the warnings. (Dominique Pelle) 相关文件: src/ex_cmds2.c, src/json.c, src/misc1.c, src/ops.c, src/regexp_nfa.c Patch 7.4.1781 问题: synIDattr() does not respect 'guicolors'. 解决方案: Change the condition for the mode. (Christian Brabandt) 相关文件: src/eval.c Patch 7.4.1782 问题: strcharpart() does not work properly with some multi-byte characters. 解决方案: Use mb_cptr2len() instead of mb_char2len(). (Hirohito Higashi) 相关文件: src/eval.c, src/testdir/test_expr_utf8.vim Patch 7.4.1783 问题: The old regexp engine doesn't handle character classes correctly. (Manuel Ortega) 解决方案: Use regmbc() instead of regc(). Add a test. 相关文件: src/regexp.c, src/testdir/test_regexp_utf8.vim Patch 7.4.1784 问题: The termtruecolor feature is enabled differently from many other features. 解决方案: Enable the termtruecolor feature for the big build, not through configure. 相关文件: src/configure.in, src/config.h.in, src/auto/configure, src/feature.h Patch 7.4.1785 (after 7.4.1783) 问题: Regexp test fails on windows. 解决方案: set 'isprint' to the right value for testing. 相关文件: src/testdir/test_regexp_utf8.vim Patch 7.4.1786 问题: Compiled-in colors do not match rgb.txt. 解决方案: Use the rgb.txt colors. (Kazunobu Kuriyama) 相关文件: src/term.c Patch 7.4.1787 问题: When a job ends the close callback is invoked before other callbacks. On Windows the close callback is not called. 解决方案: First invoke out/err callbacks before the close callback. Make the close callback work on Windows. 相关文件: src/channel.c, src/proto/channel.pro, src/testdir/test_channel.vim, src/testdir/test_channel_pipe.py Patch 7.4.1788 问题: NSIS script is missing packages. 解决方案: Add the missing directories. (Ken Takata) 相关文件: nsis/gvim.nsi Patch 7.4.1789 问题: Cannot use ch_read() in the close callback. 解决方案: Do not discard the channel if there is readahead. Do not discard readahead if there is a close callback. 相关文件: src/eval.c, src/channel.c, src/proto/channel.pro, src/testdir/test_channel.vim Patch 7.4.1790 问题: Leading white space in a job command matters. (Andrew Stewart) 解决方案: Skip leading white space. 相关文件: src/os_unix.c Patch 7.4.1791 问题: Channel could be garbage collected too early. 解决方案: Don't free a channel or remove it from a job when it is still useful. 相关文件: src/channel.c Patch 7.4.1792 问题: Color name decoding is implemented several times. 解决方案: Move it to term.c. (Christian Brabandt) 相关文件: src/gui_mac.c, src/gui_photon.c, src/gui_w32.c, src/proto/term.pro, src/term.c Patch 7.4.1793 问题: Some character classes may differ between systems. On OS/X the regexp test fails. 解决方案: Make this less dependent on the system. (idea by Kazunobu Kuriyama) 相关文件: src/regexp.c, src/regexp_nfa.c Patch 7.4.1794 (after 7.4.1792) 问题: Can't build on MS-Windows. 解决方案: Add missing declaration. 相关文件: src/gui_w32.c Patch 7.4.1795 问题: Compiler warning for redefining RGB. (John Marriott) 解决方案: Rename it to TORGB. 相关文件: src/term.c Patch 7.4.1796 (after 7.4.1795) 问题: Colors are wrong on MS-Windows. (Christian Robinson) 解决方案: Use existing RGB macro if it exists. (Ken Takata) 相关文件: src/term.c Patch 7.4.1797 问题: Warning from Windows 64 bit compiler. 解决方案: Change int to size_t. (Mike Williams) 相关文件: src/term.c Patch 7.4.1798 问题: Still compiler warning for unused return value. (Charles Campbell) 解决方案: Assign to ignoredp. 相关文件: src/term.c Patch 7.4.1799 问题: 'guicolors' is a confusing option name. 解决方案: Use 'termguicolors' instead. (Hirohito Higashi, Ken Takata) 相关文件: runtime/doc/options.txt, runtime/doc/term.txt, runtime/doc/various.txt, runtime/syntax/dircolors.vim, src/eval.c, src/feature.h, src/globals.h, src/hardcopy.c, src/option.c, src/option.h, src/proto/term.pro, src/screen.c, src/structs.h, src/syntax.c, src/term.c, src/version.c, src/vim.h Patch 7.4.1800 (after 7.4.1799) 问题: Unnecessary #ifdef. 解决方案: Just use USE_24BIT. (Ken Takata) 相关文件: src/syntax.c Patch 7.4.1801 问题: Make uninstall leaves file behind. 解决方案: Delete rgb.txt. (Kazunobu Kuriyama) 相关文件: src/Makefile Patch 7.4.1802 问题: Quickfix doesn't handle long lines well, they are split. 解决方案: Drop characters after a limit. (Anton Lindqvist) 相关文件: src/quickfix.c, src/testdir/test_quickfix.vim, src/testdir/samples/quickfix.txt Patch 7.4.1803 问题: GTK3 doesn't handle menu separators properly. 解决方案: Use gtk_separator_menu_item_new(). (Kazunobu Kuriyama) 相关文件: src/gui_gtk.c Patch 7.4.1804 问题: Can't use Vim as MANPAGER. 解决方案: Add manpager.vim. (Enno Nagel, closes #491) 相关文件: runtime/doc/filetype.txt, runtime/plugin/manpager.vim Patch 7.4.1805 问题: Running tests in shadow dir fails. 解决方案: Link the samples directory 相关文件: src/Makefile Patch 7.4.1806 问题: 'termguicolors' option missing from the options window. 解决方案: Add the entry. 相关文件: runtime/optwin.vim Patch 7.4.1807 问题: Test_out_close_cb sometimes fails. 解决方案: Always write DETACH to out, not err. 相关文件: src/channel.c, src/testdir/test_channel.vim Patch 7.4.1808 (after 7.4.1806) 问题: Using wrong feature name to check for 'termguicolors'. 解决方案: Use the right feature name. (Ken Takata) 相关文件: runtime/optwin.vim Patch 7.4.1809 (after 7.4.1808) 问题: Using wrong short option name for 'termguicolors'. 解决方案: Use the option name. 相关文件: runtime/optwin.vim Patch 7.4.1810 问题: Sending DETACH after a channel was closed isn't useful. 解决方案: Only add DETACH for a netbeans channel. 相关文件: src/channel.c, src/testdir/test_channel.vim Patch 7.4.1811 问题: Netbeans channel gets garbage collected. 解决方案: Set reference in nb_channel. 相关文件: src/eval.c, src/netbeans.c, src/proto/netbeans.pro Patch 7.4.1812 问题: Failure on startup with Athena and Motif. 解决方案: Check for INVALCOLOR. (Kazunobu Kuriyama) 相关文件: src/syntax.c, src/vim.h Patch 7.4.1813 问题: Memory access error when running test_quickfix. 解决方案: Allocate one more byte. (Yegappan Lakshmanan) 相关文件: src/quickfix.c Patch 7.4.1814 问题: A channel may be garbage collected while it's still being used by a job. (James McCoy) 解决方案: Mark the channel as used if the job is still used. Do the same for channels that are still used. 相关文件: src/eval.c, src/channel.c, src/proto/channel.pro Patch 7.4.1815 问题: Compiler warnings for unused variables. (Ajit Thakkar) 解决方案: Add a dummy initialization. (Yasuhiro Matsumoto) 相关文件: src/quickfix.c Patch 7.4.1816 问题: Looping over a null list throws an error. 解决方案: Skip over the for loop. 相关文件: src/eval.c, src/testdir/test_expr.vim Patch 7.4.1817 问题: The screen is not updated if a callback is invoked when closing a channel. 解决方案: Invoke redraw_after_callback(). 相关文件: src/channel.c Patch 7.4.1818 问题: Help completion adds @en to all matches except the first one. 解决方案: Remove "break", go over all items. 相关文件: src/ex_getln.c Patch 7.4.1819 问题: Compiler warnings when sprintf() is a macro. 解决方案: Don't interrupt sprintf() with an #ifdef. (Michael Jarvis, closes #788) 相关文件: src/fileio.c, src/tag.c, src/term.c Patch 7.4.1820 问题: Removing language from help tags too often. 解决方案: Only remove @en when not needed. (Hirohito Higashi) 相关文件: src/ex_getln.c, src/testdir/test_help_tagjump.vim Patch 7.4.1821 (after 7.4.1820) 问题: Test fails on MS-Windows. 解决方案: Sort the completion results. 相关文件: src/testdir/test_help_tagjump.vim Patch 7.4.1822 问题: Redirecting stdout of a channel to "null" doesn't work. (Nicola) 解决方案: Correct the file descriptor number. 相关文件: src/os_unix.c Patch 7.4.1823 问题: Warning from 64 bit compiler. 解决方案: Add type cast. (Mike Williams) 相关文件: src/quickfix.c Patch 7.4.1824 问题: When a job is no longer referenced and does not have an exit callback the process may hang around in defunct state. (Nicola) 解决方案: Call job_status() if the job is running and won't get freed because it might still be useful. 相关文件: src/channel.c Patch 7.4.1825 问题: When job writes to buffer nothing is written. (Nicola) 解决方案: Do not discard a channel before writing is done. 相关文件: src/channel.c Patch 7.4.1826 问题: Callbacks are invoked when it's not safe. (Andrew Stewart) 解决方案: When a channel is to be closed don't invoke callbacks right away, wait for a safe moment. 相关文件: src/structs.h, src/channel.c Patch 7.4.1827 问题: No error when invoking a callback when it's not safe. 解决方案: Add an error message. Avoid the error when freeing a channel. 相关文件: src/structs.h, src/channel.c Patch 7.4.1828 问题: May try to access buffer that's already freed. 解决方案: When freeing a buffer remove it from any channel. 相关文件: src/buffer.c, src/channel.c, src/proto/channel.pro Patch 7.4.1829 (after 7.4.1828) 问题: No message on channel log when buffer was freed. 解决方案: Log a message. 相关文件: src/channel.c Patch 7.4.1830 问题: non-antialiased misnamed. 解决方案: Use NONANTIALIASED and NONANTIALIASED_QUALITY. (Kim Brouer, closes #793) 相关文件: src/os_mswin.c, runtime/doc/options.txt Patch 7.4.1831 问题: When timer_stop() is called with a string there is no proper error message. 解决方案: Require getting a number. (Bjorn Linse) 相关文件: src/eval.c Patch 7.4.1832 问题: Memory leak in debug commands. 解决方案: Free memory before overwriting the pointer. (hint by Justin Keyes) 相关文件: src/ex_cmds2.c Patch 7.4.1833 问题: Cannot use an Ex command for 'keywordprg'. 解决方案: Accept an Ex command. (Nelo-Thara Wallus) 相关文件: src/normal.c, runtime/doc/options.txt Patch 7.4.1834 问题: Possible crash when conceal is active. 解决方案: Check for the screen to be valid when redrawing a line. 相关文件: src/screen.c Patch 7.4.1835 问题: When splitting and closing a window the status height changes. 解决方案: Compute the frame height correctly. (Hirohito Higashi) 相关文件: src/window.c, src/testdir/test_alot.vim, src/testdir/test_window_cmd.vim Patch 7.4.1836 问题: When using a partial on a dictionary it always gets bound to that dictionary. 解决方案: Make a difference between binding a function to a dictionary explicitly or automatically. 相关文件: src/structs.h, src/eval.c, src/testdir/test_partial.vim, runtime/doc/eval.txt Patch 7.4.1837 问题: The BufUnload event is triggered twice, when :bunload is used with bufhidden set to unload or delete . 解决方案: Do not trigger the event when ml_mfp is NULL. (Hirohito Higashi) 相关文件: src/buffer.c, src/testdir/test_autocmd.vim Patch 7.4.1838 问题: Functions specifically for testing do not sort together. 解决方案: Rename garbagecollect_for_testing() to test_garbagecollect_now(). Add test_null_list(), test_null_dict(), etc. 相关文件: src/eval.c, src/testdir/test_expr.vim, src/testdir/test_channel.vim, runtime/doc/eval.txt Patch 7.4.1839 问题: Cannot get the items stored in a partial. 解决方案: Support using get() on a partial. 相关文件: src/eval.c, src/testdir/test_partial.vim, runtime/doc/eval.txt Patch 7.4.1840 问题: When using packages an "after" directory cannot be used. 解决方案: Add the "after" directory of the package to 'runtimepath' if it exists. 相关文件: src/ex_cmds2.c, src/testdir/test_packadd.vim Patch 7.4.1841 问题: The code to reallocate the buffer used for quickfix is repeated. 解决方案: Move the code to a function. (Yegappan Lakshmanan, closes #831) 相关文件: src/quickfix.c, src/testdir/test_quickfix.vim Patch 7.4.1842 (after 7.4.1839) 问题: get() works for Partial but not for Funcref. 解决方案: Accept Funcref. Also return the function itself. (Nikolai Pavlov) 相关文件: src/eval.c, src/testdir/test_partial.vim, runtime/doc/eval.txt Patch 7.4.1843 问题: Tests involving Python are flaky. 解决方案: Set the pt_auto field. Add tests. (Nikolai Pavlov) 相关文件: runtime/doc/if_pyth.txt, src/if_py_both.h, src/testdir/test86.in, src/testdir/test86.ok, src/testdir/test87.in, src/testdir/test87.ok Patch 7.4.1844 问题: Using old function name in comment. More functions should start with test_. 解决方案: Rename function in comment. (Hirohito Higashi) Rename disable_char_avail_for_testing() to test_disable_char_avail(). And alloc_fail() to test_alloc_fail(). 相关文件: src/eval.c, src/getchar.c, src/testdir/runtest.vim, src/testdir/test_cursor_func.vim, src/testdir/test_quickfix.vim, runtime/doc/eval.txt Patch 7.4.1845 问题: Mentioning NetBeans when reading from channel. (Ramel Eshed) 解决方案: Make the text more generic. 相关文件: src/channel.c Patch 7.4.1846 问题: Ubsan detects a multiplication overflow. 解决方案: Don't use orig_mouse_time when it's zero. (Dominique Pelle) 相关文件: src/term.c Patch 7.4.1847 问题: Getting an item from a NULL dict crashes. Setting a register to a NULL list crashes. (Nikolai Pavlov, issue #768) Comparing a NULL dict with a NULL dict fails. 解决方案: Properly check for NULL. 相关文件: src/eval.c, src/testdir/test_expr.vim Patch 7.4.1848 问题: Can't build with Strawberry Perl 5.24. 解决方案: Define S_SvREFCNT_dec() if needed. (Damien, Ken Takata) 相关文件: src/if_perl.xs Patch 7.4.1849 问题: Still trying to read from channel that is going to be closed. (Ramel Eshed) 解决方案: Check if ch_to_be_closed is set. 相关文件: src/channel.c Patch 7.4.1850 问题: GUI freezes when using a job. (Shougo Matsu) 解决方案: Unregister the channel when there is an input error. 相关文件: src/channel.c Patch 7.4.1851 问题: test_syn_attr fails when using the GUI. (Dominique Pelle) 解决方案: Escape the font name properly. 相关文件: src/testdir/test_syn_attr.vim Patch 7.4.1852 问题: Unix: Cannot run all tests with the GUI. 解决方案: Add the "testgui" target. 相关文件: src/Makefile, src/testdir/Makefile Patch 7.4.1853 问题: Crash when job and channel are in the same dict while using partials. (Luc Hermitte) 解决方案: Do not decrement the channel reference count too early. 相关文件: src/channel.c Patch 7.4.1854 问题: When setting 'termguicolors' the Ignore highlighting doesn't work. (Charles Campbell) 解决方案: Handle the color names "fg" and "bg" when the GUI isn't running and no colors are specified, fall back to black and white. 相关文件: src/syntax.c Patch 7.4.1855 问题: Valgrind reports memory leak for job that is not freed. 解决方案: Free all jobs on exit. Add test for failing job. 相关文件: src/channel.c, src/misc2.c, src/proto/channel.pro, src/testdir/test_partial.vim Patch 7.4.1856 (after 7.4.1855) 问题: failing job test fails on MS-Windows. 解决方案: Expect "fail" status instead of "dead". 相关文件: src/testdir/test_partial.vim Patch 7.4.1857 问题: When a channel appends to a buffer that is 'nomodifiable' there is an error but appending is done anyway. 解决方案: Add the 'modifiable' option. Refuse to write to a 'nomodifiable' when the value is 1. 相关文件: src/structs.h, src/channel.c, src/testdir/test_channel.vim, runtime/doc/channel.txt Patch 7.4.1858 问题: When a channel writes to a buffer it doesn't find a buffer by the short name but re-uses it anyway. 解决方案: Find buffer also by the short name. 相关文件: src/channel.c, src/buffer.c, src/vim.h Patch 7.4.1859 问题: Cannot use a function reference for "exit_cb". 解决方案: Use get_callback(). (Yegappan Lakshmanan) 相关文件: src/channel.c, src/structs.h Patch 7.4.1860 问题: Using a partial for timer_start() may cause a crash. 解决方案: Set the copyID in timer objects. (Ozaki Kiichi) 相关文件: src/testdir/test_timers.vim, src/eval.c, src/ex_cmds2.c, src/proto/ex_cmds2.pro Patch 7.4.1861 问题: Compiler warnings with 64 bit compiler. 解决方案: Change int to size_t. (Mike Williams) 相关文件: src/ex_cmds2.c Patch 7.4.1862 问题: string() with repeated argument does not give a result usable by eval(). 解决方案: Refactor echo_string and tv2string(), moving the common part to echo_string_core(). (Ken Takata) 相关文件: src/eval.c, src/testdir/test_viml.vim, src/testdir/test86.ok, src/testdir/test87.ok Patch 7.4.1863 问题: Compiler warnings on Win64. 解决方案: Adjust types, add type casts. (Ken Takata) 相关文件: src/if_mzsch.c, src/if_perl.xs, src/if_ruby.c, src/version.c Patch 7.4.1864 问题: Python: encoding error with Python 2. 解决方案: Use "getcwdu" instead of "getcwd". (Ken Takata) 相关文件: src/if_py_both.h Patch 7.4.1865 问题: Memory leaks in test49. (Dominique Pelle) 解决方案: Use NULL instead of an empty string. 相关文件: src/eval.c Patch 7.4.1866 问题: Invalid memory access when exiting with EXITFREE defined. (Dominique Pelle) 解决方案: Set "really_exiting" and skip error messages. 相关文件: src/misc2.c, src/eval.c Patch 7.4.1867 问题: Memory leak in test_matchstrpos. 解决方案: Free the string before overwriting. (Yegappan Lakshmanan) 相关文件: src/eval.c Patch 7.4.1868 问题: Setting really_exiting causes memory leaks to be reported. 解决方案: Add the in_free_all_mem flag. 相关文件: src/globals.h, src/misc2.c, src/eval.c Patch 7.4.1869 问题: Can't build with old version of Perl. 解决方案: Define PERLIO_FUNCS_DECL. (Tom G. Christensen) 相关文件: src/if_perl.xs Patch 7.4.1870 (after 7.4.1863) 问题: One more Win64 compiler warning. 解决方案: Change declared argument type. (Ken Takata) 相关文件: src/if_mzsch.c Patch 7.4.1871 问题: Appending to the quickfix list while the quickfix window is open is very slow. 解决方案: Do not delete all the lines, only append the new ones. Avoid using a window while updating the list. (closes #841) 相关文件: src/quickfix.c Patch 7.4.1872 问题: Still build problem with old version of Perl. 解决方案: Also define SvREFCNT_inc_void_NN if needed. (Tom G. Christensen) 相关文件: src/if_perl.xs Patch 7.4.1873 问题: When a callback adds a timer the GUI doesn't use it until later. (Ramel Eshed) 解决方案: Return early if a callback adds a timer. 相关文件: src/ex_cmds2.c, src/gui_gtk_x11.c, src/gui_w32.c, src/gui_x11.c, src/globals.h Patch 7.4.1874 问题: Unused variable in Win32 code. 解决方案: Remove it. (Mike Williams) 相关文件: src/gui_w32.c Patch 7.4.1875 问题: Comparing functions and partials doesn't work well. 解决方案: Add tests. (Nikolai Pavlov) Compare the dict and arguments in the partial. (closes #813) 相关文件: src/eval.c, src/testdir/test_partial.vim Patch 7.4.1876 问题: Typing "k" at the hit-enter prompt has no effect. 解决方案: Don't assume recursive use of the prompt if a character was typed. (Hirohito Higashi) 相关文件: src/message.c Patch 7.4.1877 问题: No test for invoking "close_cb" when writing to a buffer. 解决方案: Add using close_cb to a test case. 相关文件: src/testdir/test_channel.vim Patch 7.4.1878 问题: Whether a job has exited isn't detected until a character is typed. After calling exit_cb the cursor is in the wrong place. 解决方案: Don't wait forever for a character to be typed when there is a pending job. Update the screen if needed after calling exit_cb. 相关文件: src/os_unix.c, src/channel.c, src/proto/channel.pro Patch 7.4.1879 (after 7.4.1877) 问题: Channel test is flaky. 解决方案: Wait for close_cb to be invoked. 相关文件: src/testdir/test_channel.vim Patch 7.4.1880 问题: MS-Windows console build defaults to not having +channel. 解决方案: Include the channel feature if building with huge features. 相关文件: src/Make_mvc.mak Patch 7.4.1881 问题: Appending to a long quickfix list is slow. 解决方案: Add qf_last. 相关文件: src/quickfix.c Patch 7.4.1882 问题: Check for line break at end of line wrong. (Dominique Pelle) 解决方案: Correct the logic. 相关文件: src/quickfix.c Patch 7.4.1883 问题: Cppcheck found 2 incorrect printf formats. 解决方案: Use %ld and %lx. (Dominique Pelle) 相关文件: src/VisVim/Commands.cpp, src/gui_mac.c Patch 7.4.1884 问题: Updating marks in a quickfix list is very slow when the list is long. 解决方案: Only update marks if the buffer has a quickfix entry. 相关文件: src/structs.h, src/quickfix.c Patch 7.4.1885 问题: MinGW console build defaults to not having +channel. 解决方案: Include the channel feature if building with huge features. (Ken Takata) 相关文件: src/Make_cyg_ming.mak Patch 7.4.1886 问题: When waiting for a character is interrupted by receiving channel data and the first character of a mapping was typed, the mapping times out. (Ramel Eshed) 解决方案: When dealing with channel data don't return from mch_inchar(). 相关文件: src/getchar.c, src/proto/getchar.pro, src/os_unix.c Patch 7.4.1887 问题: When receiving channel data 'updatetime' is not respected. 解决方案: Recompute the waiting time after being interrupted. 相关文件: src/os_unix.c Patch 7.4.1888 问题: Wrong computation of remaining wait time in RealWaitForChar() 解决方案: Remember the original waiting time. 相关文件: src/os_unix.c Patch 7.4.1889 问题: When umask is set to 0177 Vim can't create temp files. (Lcd) 解决方案: Also correct umask when using mkdtemp(). 相关文件: src/fileio.c Patch 7.4.1890 问题: GUI: When channel data is received the cursor blinking is interrupted. (Ramel Eshed) 解决方案: Don't update the cursor when it is blinking. 相关文件: src/screen.c, src/gui_gtk_x11.c, src/proto/gui_gtk_x11.pro, src/gui_mac.c, src/proto/gui_mac.pro, src/gui_photon.c, src/proto/gui_photon.pro, src/gui_w32.c, src/proto/gui_w32.pro, src/gui_x11.c, src/proto/gui_x11.pro Patch 7.4.1891 问题: Channel reading very long lines is slow. 解决方案: Collapse multiple buffers until a NL is found. 相关文件: src/channel.c, src/netbeans.c, src/proto/channel.pro, src/structs.h Patch 7.4.1892 问题: balloon eval only gets the window number, not the ID. 解决方案: Add v:beval_winid. 相关文件: src/eval.c, src/gui_beval.c, src/vim.h Patch 7.4.1893 问题: Cannot easily get the window ID for a buffer. 解决方案: Add bufwinid(). 相关文件: src/eval.c, runtime/doc/eval.txt Patch 7.4.1894 问题: Cannot get the window ID for a mouse click. 解决方案: Add v:mouse_winid. 相关文件: src/eval.c, src/vim.h, runtime/doc/eval.txt Patch 7.4.1895 问题: Cannot use a window ID where a window number is expected. 解决方案: Add LOWEST_WIN_ID, so that the window ID can be used where a number is expected. 相关文件: src/window.c, src/eval.c, src/vim.h, runtime/doc/eval.txt, src/testdir/test_window_id.vim Patch 7.4.1896 问题: Invoking mark_adjust() when adding a new line below the last line is pointless. 解决方案: Skip calling mark_adjust() when appending below the last line. 相关文件: src/misc1.c, src/ops.c Patch 7.4.1897 问题: Various typos, long lines and style mistakes. 解决方案: Fix the typos, wrap lines, improve style. 相关文件: src/buffer.c, src/ex_docmd.c, src/getchar.c, src/option.c, src/main.aap, src/testdir/README.txt, src/testdir/test_reltime.vim, src/testdir/test_tagjump.vim, src/INSTALL, src/config.aap.in, src/if_mzsch.c Patch 7.4.1898 问题: User commands don't support modifiers. 解决方案: Add the <mods> item. (Yegappan Lakshmanan, closes #829) 相关文件: runtime/doc/map.txt, src/ex_docmd.c, src/testdir/Make_all.mak, src/testdir/test_usercommands.vim Patch 7.4.1899 问题: GTK 3: cursor blinking doesn't work well. 解决方案: Instead of gui_gtk_window_clear() use gui_mch_clear_block(). (Kazunobu Kuriyama) 相关文件: src/gui_gtk_x11.c Patch 7.4.1900 问题: Using CTRL-] in the help on "{address}." doesn't work. 解决方案: Recognize an item in {}. (Hirohito Higashi, closes #814) 相关文件: src/ex_cmds.c, src/testdir/test_help_tagjump.vim Patch 7.4.1901 问题: Win32: the "Disabled" menu items would appear enabled. 解决方案: Use submenu_id if there is a parent. (Shane Harper, closes #834) 相关文件: src/gui_w32.c Patch 7.4.1902 问题: No test for collapsing buffers for a channel. Some text is lost. 解决方案: Add a simple test. Set rq_buflen correctly. 相关文件: src/channel.c, src/testdir/test_channel.vim, src/testdir/test_channel_pipe.py Patch 7.4.1903 问题: When writing viminfo merging current history with history in viminfo may drop recent history entries. 解决方案: Add new format for viminfo lines, use it for history entries. Use a timestamp for ordering the entries. Add test_settime(). Add the viminfo version. Does not do merging on timestamp yet. 相关文件: src/eval.c, src/ex_getln.c, src/ex_cmds.c, src/structs.h, src/globals.h, src/proto/ex_cmds.pro, src/proto/ex_getln.pro, src/testdir/test_viminfo.vim Patch 7.4.1904 (after 7.4.1903) 问题: Build fails. 解决方案: Add missing changes. 相关文件: src/vim.h Patch 7.4.1905 (after 7.4.1903) 问题: Some compilers can't handle a double semicolon. 解决方案: Remove one semicolon. 相关文件: src/ex_cmds.c Patch 7.4.1906 问题: Collapsing channel buffers and searching for NL does not work properly. (Xavier de Gaye, Ramel Eshed) 解决方案: Do not assume the buffer contains a NUL or not. Change NUL bytes to NL to avoid the string is truncated. 相关文件: src/channel.c, src/netbeans.c, src/proto/channel.pro Patch 7.4.1907 问题: Warnings from 64 bit compiler. 解决方案: Change type to size_t. (Mike Williams) 相关文件: src/ex_cmds.c Patch 7.4.1908 问题: Netbeans uses uninitialized pointer and freed memory. 解决方案: Set "buffer" at the right place (hint by Ken Takata) 相关文件: src/netbeans.c Patch 7.4.1909 问题: Doubled semicolons. 解决方案: Reduce to one. (Dominique Pelle) 相关文件: src/dosinst.c, src/fold.c, src/gui_gtk_x11.c, src/gui_w32.c, src/main.c, src/misc2.c Patch 7.4.1910 问题: Tests using external command to delete directory. 解决方案: Use delete(). 相关文件: src/testdir/test17.in, src/testdir/test73.in, src/testdir/test_getcwd.in Patch 7.4.1911 问题: Recent history lines may be lost when exiting Vim. 解决方案: Merge history using the timestamp. 相关文件: src/ex_getln.c, src/ex_cmds.c, src/vim.h, src/proto/ex_getln.pro, src/testdir/test_viminfo.vim Patch 7.4.1912 问题: No test for using setqflist() on an older quickfix list. 解决方案: Add a couple of tests. 相关文件: src/testdir/test_quickfix.vim Patch 7.4.1913 问题: When ":doautocmd" is used modelines are used even when no autocommands were executed. (Daniel Hahler) 解决方案: Skip processing modelines. (closes #854) 相关文件: src/fileio.c, src/ex_cmds.c, src/ex_docmd.c, src/proto/fileio.pro Patch 7.4.1914 问题: Executing autocommands while using the signal stack has a high chance of crashing Vim. 解决方案: Don't invoke autocommands when on the signal stack. 相关文件: src/os_unix.c Patch 7.4.1915 问题: The effect of the PopupMenu autocommand isn't directly visible. 解决方案: Call gui_update_menus() before displaying the popup menu. (Shane Harper, closs #855) 相关文件: src/menu.c Patch 7.4.1916 (after 7.4.1906) 问题: No proper test for what 7.4.1906 fixes. 解决方案: Add a test for reading many lines. 相关文件: src/testdir/test_channel.vim Patch 7.4.1917 问题: History lines read from viminfo in different encoding than when writing are not converted. 解决方案: Convert the history lines. 相关文件: src/ex_cmds.c, src/testdir/test_viminfo.vim Patch 7.4.1918 问题: Not enough testing for parsing viminfo lines. 解决方案: Add test with viminfo lines in bad syntax. Fix memory leak. 相关文件: src/ex_cmds.c, src/ex_getln.c, src/testdir/test_viminfo.vim Patch 7.4.1919 问题: Register contents is not merged when writing viminfo. 解决方案: Use timestamps for register contents. 相关文件: src/ops.c, src/ex_getln.c, src/ex_cmds.c, src/proto/ex_cmds.pro, src/proto/ex_getln.pro, src/proto/ops.pro, src/vim.h Patch 7.4.1920 (after 7.4.1919) 问题: Missing test changes. 解决方案: Update viminfo test. 相关文件: src/testdir/test_viminfo.vim Patch 7.4.1921 (after 7.4.1919) 问题: vim_time() not included when needed. 解决方案: Adjust #ifdef. 相关文件: src/ex_cmds.c Patch 7.4.1922 问题: Ruby 2.4.0 unifies Fixnum and Bignum into Integer. 解决方案: Use rb_cInteger. (Weiyong Mao) 相关文件: src/if_ruby.c Patch 7.4.1923 问题: Command line editing is not tested much. 解决方案: Add tests for expanding the file name and 'wildmenu'. 相关文件: src/testdir/test_cmdline.vim, src/testdir/Make_all.mak Patch 7.4.1924 问题: Missing "void" for functions without argument. 解决方案: Add "void". (Hirohito Higashi) 相关文件: src/channel.c, src/edit.c, src/ex_cmds2.c, src/ops.c, src/screen.c Patch 7.4.1925 问题: Viminfo does not merge file marks properly. 解决方案: Use a timestamp. Add the :clearjumps command. 相关文件: src/mark.c, src/ex_cmds.c, src/ex_docmd.c, src/proto/mark.pro, src/structs.h, src/vim.h, src/ex_cmds.h, src/testdir/test_viminfo.vim Patch 7.4.1926 问题: Possible crash with many history items. 解决方案: Avoid the index going past the last item. 相关文件: src/ex_getln.c Patch 7.4.1927 问题: Compiler warning for signed/unsigned. 解决方案: Add type cast. 相关文件: src/if_mzsch.c Patch 7.4.1928 问题: Overwriting pointer argument. 解决方案: Assign to what it points to. (Dominique Pelle) 相关文件: src/fileio.c Patch 7.4.1929 问题: Inconsistent indenting and weird name. 解决方案: Fix indent, make name all upper case. (Ken Takata) 相关文件: src/if_ruby.c Patch 7.4.1930 问题: Can't build without +spell but with +quickfix. (Charles) 解决方案: Add better #ifdef around ml_append_buf(). (closes #864) 相关文件: src/memline.c Patch 7.4.1931 问题: Using both old and new style file mark lines from viminfo. 解决方案: Skip the old style lines if the viminfo file was written with a Vim version that supports the new style. 相关文件: src/ex_cmds.c Patch 7.4.1932 问题: When writing viminfo the jumplist is not merged with the one in the viminfo file. 解决方案: Merge based on timestamp. 相关文件: src/mark.c, src/testdir/test_viminfo.vim Patch 7.4.1933 问题: Compiler warning about uninitialized variable. (Yegappan) 解决方案: Give it a dummy value. 相关文件: src/ex_getln.c Patch 7.4.1934 问题: New style tests not executed with MinGW compiler. 解决方案: Add new style test support. (Yegappan Lakshmanan) 相关文件: src/testdir/Make_ming.mak Patch 7.4.1935 问题: When using the GUI search/replace a second match right after the replacement is skipped. 解决方案: Add the SEARCH_START flag. (Mleddy) 相关文件: src/gui.c Patch 7.4.1936 问题: Off-by-one error in bounds check. (Coverity) 解决方案: Check register number properly. 相关文件: src/ops.c Patch 7.4.1937 问题: No test for directory stack in quickfix. 解决方案: Add a test. (Yegappan Lakshmanan) 相关文件: src/testdir/test_quickfix.vim Patch 7.4.1938 问题: When writing viminfo numbered marks were duplicated. 解决方案: Check for duplicates between current numbered marks and the ones read from viminfo. 相关文件: src/mark.c Patch 7.4.1939 问题: Memory access error when reading viminfo. (Dominique Pelle) 解决方案: Correct index in jumplist when at the end. 相关文件: src/mark.c, src/testdir/test_viminfo.vim Patch 7.4.1940 问题: "gd" hangs in some situations. (Eric Biggers) 解决方案: Remove the SEARCH_START flag when looping. Add a test. 相关文件: src/normal.c, src/testdir/test_goto.vim Patch 7.4.1941 问题: Not all quickfix tests are also done with the location lists. 解决方案: Test more quickfix code. Use user commands instead of "exe". (Yegappan Lakshmanan) 相关文件: src/testdir/test_quickfix.vim Patch 7.4.1942 问题: Background is not drawn properly when 'termguicolors' is set. 解决方案: Check cterm_normal_bg_color. (Jacob Niehus, closes #805) 相关文件: src/screen.c Patch 7.4.1943 问题: Coverity warns for unreachable code. 解决方案: Remove the code that won't do anything. 相关文件: src/mark.c Patch 7.4.1944 问题: Win32: Cannot compile with XPM feature using VC2015 解决方案: Add XPM libraries compiled with VC2015, and enable to build gvim.exe which supports XPM using VC2015. (Ken Takata) 相关文件: src/Make_mvc.mak, src/xpm/x64/lib-vc14/libXpm.lib, src/xpm/x86/lib-vc14/libXpm.lib Patch 7.4.1945 问题: The Man plugin doesn't work that well. 解决方案: Use "g:ft_man_open_mode" to be able open man pages in vert split or separate tab. Set nomodifiable for buffer with man content. Add a test. (Andrey Starodubtsev, closes #873) 相关文件: runtime/ftplugin/man.vim, src/testdir/test_man.vim, src/testdir/Make_all.mak Patch 7.4.1946 (after 7.4.1944) 问题: File list does not include new XPM libraries. 解决方案: Add the file list entries. 相关文件: Filelist Patch 7.4.1947 问题: Viminfo continuation line with wrong length isn't skipped. (Marius Gedminas) 解决方案: Skip a line when encountering an error, but not two lines. 相关文件: src/ex_cmds.c Patch 7.4.1948 问题: Using Ctrl-A with double-byte encoding may result in garbled text. 解决方案: Skip to the start of a character. (Hirohito Higashi) 相关文件: src/ops.c Patch 7.4.1949 问题: Minor problems with the quickfix code. 解决方案: Fix the problems. (Yegappan Lakshmanan) 相关文件: src/quickfix.c, src/testdir/test_quickfix.vim Patch 7.4.1950 问题: Quickfix long lines test not executed for buffer. 解决方案: Call the function to test long lines. (Yegappan Lakshmanan) 相关文件: src/testdir/test_quickfix.vim Patch 7.4.1951 问题: Ruby test is old style. 解决方案: Convert to a new style test. (Ken Takata) 相关文件: src/Makefile, src/testdir/Make_all.mak, src/testdir/test_ruby.in, src/testdir/test_ruby.ok, src/testdir/test_ruby.vim Patch 7.4.1952 问题: Cscope interface does not support finding assignments. 解决方案: Add the "a" command. (ppettina, closes #882) 相关文件: runtime/doc/if_cscop.txt, src/if_cscope.c Patch 7.4.1953 问题: Not all parts of the quickfix code are tested. 解决方案: Add more tests. (Yegappan Lakshmanan) 相关文件: src/testdir/samples/quickfix.txt, src/testdir/test_quickfix.vim Patch 7.4.1954 (after 7.4.1948) 问题: No test for what 7.4.1948 fixes. 解决方案: Add a test. (Hirohito Higashi, closes #880) 相关文件: src/Makefile, src/testdir/Make_all.mak, src/testdir/test_increment_dbcs.vim Patch 7.4.1955 问题: Using 32-bit Perl with 64-bit time_t causes memory corruption. (Christian Brabandt) 解决方案: Use time_T instead of time_t for global variables. (Ken Takata) 相关文件: src/ex_cmds.c, src/globals.h, src/misc2.c, src/proto/ex_cmds.pro, src/proto/misc2.pro, src/structs.h, src/vim.h Patch 7.4.1956 问题: When using CTRL-W f and pressing "q" at the ATTENTION dialog the newly opened window is not closed. 解决方案: Close the window and go back to the original one. (Norio Takagi, Hirohito Higashi) 相关文件: src/window.c, src/testdir/test_window_cmd.vim Patch 7.4.1957 问题: Perl interface has obsolete workaround. 解决方案: Remove the workaround added by 7.3.623. (Ken Takata) 相关文件: src/if_perl.xs Patch 7.4.1958 问题: Perl interface preprocessor statements not nicely indented. 解决方案: Improve the indenting. (Ken Takata) 相关文件: src/if_perl.xs Patch 7.4.1959 问题: Crash when running test_channel.vim on Windows. 解决方案: Check for NULL pointer result from FormatMessage(). (Christian Brabandt) 相关文件: src/channel.c Patch 7.4.1960 问题: Unicode standard 9 was released. 解决方案: Update the character property tables. (Christian Brabandt) 相关文件: src/mbyte.c Patch 7.4.1961 问题: When 'insertmode' is reset while doing completion the popup menu remains even though Vim is in Normal mode. 解决方案: Ignore stop_insert_mode when the popup menu is visible. Don't set stop_insert_mode when 'insertmode' was already off. (Christian Brabandt) 相关文件: src/edit.c, src/option.c, src/Makefile, src/testdir/test_alot.vim, src/testdir/test_popup.vim Patch 7.4.1962 问题: Two test files for increment/decrement. 解决方案: Move the old style test into the new style test. (Hirohito Higashi, closes #881) 相关文件: src/Makefile, src/testdir/Make_all.mak, src/testdir/main.aap, src/testdir/test35.in, src/testdir/test35.ok, src/testdir/test_increment.vim Patch 7.4.1963 问题: Running Win32 Vim in mintty does not work. 解决方案: Detect mintty and give a helpful error message. (Ken Takata) 相关文件: src/Make_cyg_ming.mak, src/Make_mvc.mak, src/iscygpty.c, src/iscygpty.h, src/main.c, Filelist Patch 7.4.1964 问题: The quickfix init function is too big. 解决方案: Factor out parsing 'errorformat' to a separate function. (Yegappan Lakshmanan) 相关文件: src/quickfix.c Patch 7.4.1965 问题: When using a job in raw mode to append to a buffer garbage characters are added. 解决方案: Do not replace the trailing NUL with a NL. (Ozaki Kiichi) 相关文件: src/channel.c, src/testdir/test_channel.vim Patch 7.4.1966 问题: Coverity reports a resource leak. 解决方案: Close "fd" also when bailing out. 相关文件: src/quickfix.c Patch 7.4.1967 问题: Falling back from NFA to old regexp engine does not work properly. (fritzophrenic) 解决方案: Do not restore nfa_match. (Christian Brabandt, closes #867) 相关文件: src/regexp_nfa.c, src/testdir/test64.in, src/testdir/test64.ok Patch 7.4.1968 问题: Invalid memory access with "\<C-">. 解决方案: Do not recognize this as a special character. (Dominique Pelle) 相关文件: src/misc2.c, src/testdir/test_expr.vim Patch 7.4.1969 问题: When the netbeans channel is closed consuming the buffer may cause a crash. 解决方案: Check for nb_channel not to be NULL. (Xavier de Gaye) 相关文件: src/netbeans.c Patch 7.4.1970 问题: Using ":insert" in an empty buffer sets the jump mark. (Ingo Karkat) 解决方案: Don't adjust marks when replacing the empty line in an empty buffer. (closes #892) 相关文件: src/ex_cmds.c, src/testdir/test_jumps.vim, src/testdir/test_alot.vim Patch 7.4.1971 问题: It is not easy to see unrecognized error lines below the current error position. 解决方案: Add ":clist +count". 相关文件: src/quickfix.c, runtime/doc/quickfix.txt Patch 7.4.1972 问题: On Solaris select() does not work as expected when there is typeahead. 解决方案: Add ICANON when sleeping. (Ozaki Kiichi) 相关文件: src/os_unix.c Patch 7.4.1973 问题: On MS-Windows the package directory may be added at the end because of forward/backward slash differences. (Matthew Desjardins) 解决方案: Ignore slash differences. 相关文件: src/ex_cmds2.c Patch 7.4.1974 问题: GUI has a problem with some termcodes. 解决方案: Handle negative numbers. (Kazunobu Kuriyama) 相关文件: src/gui.c Patch 7.4.1975 问题: On MS-Windows large files (> 2Gbyte) cause problems. 解决方案: Use "off_T" instead of "off_t". Use "stat_T" instead of "struct stat". Use 64 bit system functions if available. (Ken Takata) 相关文件: src/Makefile, src/buffer.c, src/diff.c, src/eval.c, src/ex_cmds.c, src/ex_cmds2.c, src/fileio.c, src/gui.c, src/gui_at_fs.c, src/if_cscope.c, src/main.c, src/memfile.c, src/memline.c, src/misc1.c, src/misc2.c, src/netbeans.c, src/os_mswin.c, src/os_win32.c, src/proto/fileio.pro, src/proto/memline.pro, src/proto/os_mswin.pro, src/pty.c, src/quickfix.c, src/spell.c, src/structs.h, src/tag.c, src/testdir/Make_all.mak, src/testdir/test_largefile.vim, src/testdir/test_stat.vim, src/undo.c, src/vim.h Patch 7.4.1976 问题: Number variables are not 64 bits while they could be. 解决方案: Add the num64 feature. (Ken Takata, Yasuhiro Matsumoto) 相关文件: runtime/doc/eval.txt, runtime/doc/various.txt, src/Make_cyg_ming.mak, src/Make_mvc.mak, src/charset.c, src/eval.c, src/ex_cmds.c, src/ex_getln.c, src/feature.h, src/fileio.c, src/fold.c, src/json.c, src/message.c, src/misc1.c, src/misc2.c, src/ops.c, src/option.c, src/proto/charset.pro, src/proto/eval.pro, src/quickfix.c, src/structs.h, src/testdir/test_viml.vim, src/version.c Patch 7.4.1977 问题: With 64 bit changes don't need three calls to sprintf(). 解决方案: Simplify the code, use vim_snprintf(). (Ken Takata) 相关文件: src/fileio.c Patch 7.4.1978 (after 7.4.1975) 问题: Large file test does not delete its output. 解决方案: Delete the output. Check size properly when possible. (Ken Takata) 相关文件: src/testdir/test_largefile.vim Patch 7.4.1979 (after 7.4.1976) 问题: Getting value of binary option is wrong. (Kent Sibilev) 解决方案: Fix type cast. Add a test. 相关文件: src/option.c, src/testdir/test_expr.vim Patch 7.4.1980 问题: 'errorformat' is parsed for every call to ":caddexpr". Can't add to two location lists asynchronously. 解决方案: Keep the previously parsed data when appropriate. (mostly by Yegappan Lakshmanan) 相关文件: src/quickfix.c, src/testdir/test_quickfix.vim Patch 7.4.1981 问题: No testing for Farsi code. 解决方案: Add a minimal test. Clean up Farsi code. 相关文件: src/farsi.c, src/Makefile, src/charset.c, src/normal.c, src/proto/main.pro, src/testdir/Make_all.mak, src/testdir/test_farsi.vim Patch 7.4.1982 问题: Viminfo file contains duplicate change marks. 解决方案: Drop duplicate marks. 相关文件: src/mark.c Patch 7.4.1983 问题: farsi.c and arabic.c are included in a strange way. 解决方案: Build them like other files. 相关文件: src/main.c, src/farsi.c, src/arabic.c, src/proto.h, src/proto/main.pro, src/proto/farsi.pro, src/proto/arabic.pro, src/Makefile, src/Make_bc5.mak, src/Make_cyg_ming.mak, src/Make_dice.mak, src/Make_ivc.mak, src/Make_manx.mak, src/Make_morph.mak, src/Make_mvc.mak, src/Make_sas.mak, Filelist Patch 7.4.1984 问题: Not all quickfix features are tested. 解决方案: Add a few more tests. (Yegappan Lakshmanan) 相关文件: src/testdir/test_quickfix.vim Patch 7.4.1985 (after 7.4.1983) 问题: Missing changes in VMS build file. 解决方案: Use the right file name. 相关文件: src/Make_vms.mms Patch 7.4.1986 问题: Compiler warns for loss of data. 解决方案: Use size_t instead of int. (Christian Brabandt) 相关文件: src/ex_cmds2.c Patch 7.4.1987 问题: When copying unrecognized lines for viminfo, end up with useless continuation lines. 解决方案: Skip continuation lines. 相关文件: src/ex_cmds.c Patch 7.4.1988 问题: When updating viminfo with file marks there is no time order. 解决方案: Remember the time when a buffer was last used, store marks for the most recently used buffers. 相关文件: src/buffer.c, src/structs.h, src/mark.c, src/main.c, src/ex_cmds.c, src/proto/mark.pro, src/testdir/test_viminfo.vim Patch 7.4.1989 问题: filter() and map() only accept a string argument. 解决方案: Implement using a Funcref argument (Yasuhiro Matsumoto, Ken Takata) 相关文件: runtime/doc/eval.txt, src/Makefile, src/eval.c, src/testdir/test_alot.vim, src/testdir/test_filter_map.vim, src/testdir/test_partial.vim Patch 7.4.1990 (after 7.4.1952) 问题: Cscope items are not sorted. 解决方案: Put the new "a" command first. (Ken Takata) 相关文件: src/if_cscope.c Patch 7.4.1991 问题: glob() does not add a symbolic link when there are no wildcards. 解决方案: Remove the call to mch_getperm(). 相关文件: src/misc1.c Patch 7.4.1992 问题: Values for true and false can be confusing. 解决方案: Update the documentation. Add a test. Make v:true evaluate to TRUE for a non-zero-arg. 相关文件: runtime/doc/eval.txt, src/eval.c, src/Makefile, src/testdir/test_true_false.vim, src/testdir/test_alot.vim Patch 7.4.1993 问题: Not all TRUE and FALSE arguments are tested. 解决方案: Add a few more tests. 相关文件: src/testdir/test_true_false.vim Patch 7.4.1994 (after 7.4.1993) 问题: True-false test fails. 解决方案: Filter the dict to only keep the value that matters. 相关文件: src/testdir/test_true_false.vim Patch 7.4.1995 问题: GUI: cursor drawn in wrong place if a timer callback causes a screen update. (David Samvelyan) 解决方案: Also redraw the cursor when it's blinking and on. 相关文件: src/gui_gtk_x11.c, src/gui_mac.c, src/gui_photon.c, src/gui_w32.c, src/gui_x11.c, src/screen.c, src/proto/gui_gtk_x11.pro, src/proto/gui_mac.pro, src/proto/gui_photon.pro, src/proto/gui_w32.pro, src/proto/gui_x11.pro Patch 7.4.1996 问题: Capturing the output of a command takes a few commands. 解决方案: Add evalcmd(). 相关文件: src/eval.c, runtime/doc/eval.txt, src/testdir/test_alot.vim, src/Makefile, src/testdir/test_evalcmd.vim Patch 7.4.1997 问题: Cannot easily scroll the quickfix window. 解决方案: Add ":cbottom". 相关文件: src/ex_cmds.h, src/quickfix.c, src/proto/quickfix.pro, src/ex_docmd.c, src/testdir/test_quickfix.vim, runtime/doc/quickfix.txt Patch 7.4.1998 问题: When writing buffer lines to a job there is no NL to NUL conversion. 解决方案: Make it work symmetrical with writing lines from a job into a buffer. 相关文件: src/channel.c, src/proto/channel.pro, src/netbeans.c Patch 7.4.1999 问题: evalcmd() doesn't work recursively. 解决方案: Use redir_evalcmd instead of redir_vname. 相关文件: src/message.c, src/eval.c, src/globals.h, src/proto/eval.pro, src/testdir/test_evalcmd.vim Patch 7.4.2000 (after 7.4.1999) 问题: Evalcmd test fails. 解决方案: Add missing piece. 相关文件: src/ex_docmd.c Patch 7.4.2001 (after 7.4.2000) 问题: Tiny build fails. (Tony Mechelynck) 解决方案: Add #ifdef. 相关文件: src/ex_docmd.c Patch 7.4.2002 问题: Crash when passing number to filter() or map(). 解决方案: Convert to a string. (Ozaki Kiichi) 相关文件: src/eval.c, src/testdir/test_filter_map.vim Patch 7.4.2003 问题: Still cursor flickering when a callback updates the screen. (David Samvelyan) 解决方案: Put the cursor in the right position after updating the screen. 相关文件: src/screen.c Patch 7.4.2004 问题: GUI: cursor displayed in the wrong position. 解决方案: Correct screen_cur_col and screen_cur_row. 相关文件: src/screen.c Patch 7.4.2005 问题: After using evalcmd() message output is in the wrong position. (Christian Brabandt) 解决方案: Reset msg_col. 相关文件: src/eval.c Patch 7.4.2006 问题: Crash when using tabnext in BufUnload autocmd. (Norio Takagi) 解决方案: First check that the current buffer is the right one. (Hirohito Higashi) 相关文件: src/buffer.c, src/testdir/test_autocmd.vim Patch 7.4.2007 问题: Running the tests leaves a viminfo file behind. 解决方案: Make the viminfo option empty. 相关文件: src/testdir/runtest.vim Patch 7.4.2008 问题: evalcmd() has a confusing name. 解决方案: Rename to execute(). Make silent optional. Support a list of commands. 相关文件: src/eval.c, src/ex_docmd.c, src/message.c, src/globals.h, src/proto/eval.pro, src/Makefile, src/testdir/test_evalcmd.vim, src/testdir/test_execute_func.vim, src/testdir/test_alot.vim, runtime/doc/eval.txt Patch 7.4.2009 (after 7.4.2008) 问题: Messages test fails. 解决方案: Don't set redir_execute before returning. Add missing version number. 相关文件: src/eval.c Patch 7.4.2010 问题: There is a :cbottom command but no :lbottom command. 解决方案: Add :lbottom. (Yegappan Lakshmanan) 相关文件: runtime/doc/index.txt, runtime/doc/quickfix.txt, src/ex_cmds.h, src/quickfix.c, src/testdir/test_quickfix.vim Patch 7.4.2011 问题: It is not easy to get a list of command arguments. 解决方案: Add getcompletion(). (Yegappan Lakshmanan) 相关文件: runtime/doc/eval.txt, src/eval.c, src/ex_docmd.c, src/proto/ex_docmd.pro, src/testdir/test_cmdline.vim Patch 7.4.2012 (after 7.4.2011) 问题: Test for getcompletion() does not pass on all systems. 解决方案: Only test what is supported. 相关文件: src/testdir/test_cmdline.vim Patch 7.4.2013 问题: Using "noinsert" in 'completeopt' breaks redo. 解决方案: Set compl_curr_match. (Shougo Matsu, closes #874) 相关文件: src/edit.c, src/testdir/test_popup.vim Patch 7.4.2014 问题: Using "noinsert" in 'completeopt' does not insert match. 解决方案: Set compl_enter_selects. (Shougo Matsu, closes #875) 相关文件: src/edit.c, src/testdir/test_popup.vim Patch 7.4.2015 问题: When a file gets a name when writing it 'acd' is not effective. (Dan Church) 解决方案: Invoke DO_AUTOCHDIR after writing the file. (Allen Haim, closes #777, closes #803) Add test_autochdir() to enable 'acd' before "starting" is reset. 相关文件: src/ex_cmds.c, src/buffer.c, src/eval.c, src/globals.h, src/Makefile, src/testdir/test_autochdir.vim, src/testdir/Make_all.mak Patch 7.4.2016 问题: Warning from MinGW about _WIN32_WINNT redefined. (John Marriott) 解决方案: First undefine it. (Ken Takata) 相关文件: src/Make_cyg_ming.mak Patch 7.4.2017 问题: When there are many errors adding them to the quickfix list takes a long time. 解决方案: Add BLN_NOOPT. Don't call buf_valid() in buf_copy_options(). Remember the last file name used. When going through the buffer list start from the end of the list. Only call buf_valid() when autocommands were executed. 相关文件: src/buffer.c, src/option.c, src/quickfix.c, src/vim.h Patch 7.4.2018 问题: buf_valid() can be slow when there are many buffers. 解决方案: Add bufref_valid(), only go through the buffer list when a buffer was freed. 相关文件: src/structs.h, src/buffer.c, src/quickfix.c, src/proto/buffer.pro Patch 7.4.2019 问题: When ignoring case utf_fold() may consume a lot of time. 解决方案: Optimize for ASCII. 相关文件: src/mbyte.c Patch 7.4.2020 问题: Can't build without +autocmd feature. 解决方案: Adjust #ifdefs. 相关文件: src/buffer.c Patch 7.4.2021 问题: Still too many buf_valid() calls. 解决方案: Make au_new_curbuf a bufref. Use bufref_valid() in more places. 相关文件: src/ex_cmds.c, src/buffer.c, src/globals.h Patch 7.4.2022 问题: Warnings from 64 bit compiler. 解决方案: Add type casts. (Mike Williams) 相关文件: src/eval.c Patch 7.4.2023 问题: buflist_findname_stat() may find a dummy buffer. 解决方案: Set the BF_DUMMY flag after loading a dummy buffer. Start finding buffers from the end of the list. 相关文件: src/quickfix.c, src/buffer.c Patch 7.4.2024 问题: More buf_valid() calls can be optimized. 解决方案: Use bufref_valid() instead. 相关文件: src/buffer.c, src/ex_cmds.c, src/structs.h, src/channel.c, src/diff.c, src/eval.c, src/ex_cmds2.c, src/ex_docmd.c, src/ex_getln.c, src/fileio.c, src/main.c, src/misc2.c, src/netbeans.c, src/quickfix.c, src/spell.c, src/term.c, src/if_py_both.h, src/window.c, src/proto/buffer.pro, src/proto/window.pro Patch 7.4.2025 问题: The cursor blinking stops or is irregular when receiving date over a channel and writing it in a buffer, and when updating the status line. (Ramel Eshed) 解决方案: Make it a bit better by flushing GUI output. Don't redraw the cursor after updating the screen if the blink state is off. 相关文件: src/gui_gtk_x11.c, src/screen.c Patch 7.4.2026 问题: Reference counting for callbacks isn't right. 解决方案: Add free_callback(). (Ken Takata) Fix reference count. 相关文件: src/channel.c, src/eval.c, src/ex_cmds2.c, src/proto/eval.pro Patch 7.4.2027 问题: Can't build with +eval but without +menu. 解决方案: Add #ifdef. (John Marriott) 相关文件: src/eval.c Patch 7.4.2028 问题: cppcheck warns for using index before limits check. 解决方案: Swap the expressions. (Dominique Pelle) 相关文件: src/mbyte.c Patch 7.4.2029 问题: printf() does not work with 64 bit numbers. 解决方案: use the "L" length modifier. (Ken Takata) 相关文件: src/message.c, src/testdir/test_expr.vim Patch 7.4.2030 问题: ARCH must be set properly when using MinGW. 解决方案: Detect the default value of ARCH from the current compiler. (Ken Takata) 相关文件: src/Make_cyg_ming.mak Patch 7.4.2031 问题: The list_lbr_utf8 test fails if ~/.vim/syntax/c.vim sets 'textwidth' to a non-zero value. (Oyvind A. Holm) 解决方案: Add a setup.vim file that sets 'runtimepath' and $HOME to a safe value. (partly by Christian Brabandt, closes #912) 相关文件: src/testdir/setup.vim, src/testdir/amiga.vim, src/testdir/dos.vim, src/testdir/unix.vim, src/testdir/vms.vim, src/testdir/runtest.vim Patch 7.4.2032 (after 7.4.2030) 问题: Build fails with 64 bit MinGW. (Axel Bender) 解决方案: Handle dash vs. underscore. (Ken Takata, Hirohito Higashi) 相关文件: src/Make_cyg_ming.mak Patch 7.4.2033 问题: 'cscopequickfix' option does not accept new value "a". 解决方案: Adjust list of command characters. (Ken Takata) 相关文件: src/option.h, src/Makefile, src/testdir/test_cscope.vim, src/testdir/Make_all.mak Patch 7.4.2034 (after 7.4.2032) 问题: Build fails with some version of MinGW. (illusorypan) 解决方案: Recognize mingw32. (Ken Takata, closes #921) 相关文件: src/Make_cyg_ming.mak Patch 7.4.2035 问题: On Solaris with ZFS the ACL may get removed. 解决方案: Always restore the ACL for Solaris ZFS. (Danek Duvall) 相关文件: src/fileio.c Patch 7.4.2036 问题: Looking up a buffer by number is slow if there are many. 解决方案: Use a hashtab. 相关文件: src/structs.h, src/buffer.c Patch 7.4.2037 (after 7.4.2036) 问题: Small build fails. 解决方案: Adjust #ifdefs. 相关文件: src/hashtab.c Patch 7.4.2038 (after 7.4.2036) 问题: Small build still fails. 解决方案: Adjust more #ifdefs. 相关文件: src/globals.h, src/buffer.c Patch 7.4.2039 问题: The Netbeans integration is not tested. 解决方案: Add a first Netbeans test. 相关文件: src/testdir/test_netbeans.vim, src/testdir/test_netbeans.py, src/testdir/Make_all.mak, src/Makefile, src/testdir/test_channel.vim, src/testdir/shared.vim Patch 7.4.2040 问题: New files missing from distribution. 解决方案: Add new test scripts. 相关文件: Filelist Patch 7.4.2041 问题: Netbeans file authentication not tested. 解决方案: Add a test. 相关文件: src/testdir/test_netbeans.vim Patch 7.4.2042 问题: GTK: display updating is not done properly and can be slow. 解决方案: Use gdk_display_flush() instead of gdk_display_sync(). Don't call gdk_window_process_updates(). (Kazunobu Kuriyama) 相关文件: src/gui_gtk_x11.c Patch 7.4.2043 问题: setbuvfar() causes a screen redraw. 解决方案: Only use aucmd_prepbuf() for options. 相关文件: src/eval.c Patch 7.4.2044 问题: filter() and map() either require a string or defining a function. 解决方案: Support lambda, a short way to define a function that evaluates an expression. (Yasuhiro Matsumoto, Ken Takata) 相关文件: runtime/doc/eval.txt, src/eval.c, src/testdir/test_alot.vim, src/Makefile, src/testdir/test_channel.vim, src/testdir/test_lambda.vim Patch 7.4.2045 问题: Memory leak when using a function callback. 解决方案: Don't save the function name when it's in the partial. 相关文件: src/channel.c Patch 7.4.2046 问题: The qf_init_ext() function is too big. 解决方案: Refactor it. (Yegappan Lakshmanan) 相关文件: src/quickfix.c Patch 7.4.2047 问题: Compiler warning for initializing a struct. 解决方案: Initialize in another way. (Anton Lindqvist) 相关文件: src/quickfix.c Patch 7.4.2048 问题: There is still code and help for unsupported systems. 解决方案: Remove the code and text. (Hirohito Higashi) 相关文件: runtime/doc/eval.txt, runtime/lang/menu_sk_sk.vim, runtime/menu.vim, runtime/optwin.vim, src/Make_bc5.mak, src/ex_docmd.c, src/feature.h, src/fileio.c, src/globals.h, src/main.c, src/memfile.c, src/memline.c, src/misc1.c, src/misc2.c, src/option.c, src/option.h, src/os_unix.c, src/os_unix.h, src/proto.h, src/term.c, src/undo.c, src/version.c, src/vim.h, src/xxd/xxd.c Patch 7.4.2049 问题: There is no way to get a list of the error lists. 解决方案: Add ":chistory" and ":lhistory". 相关文件: src/ex_cmds.h, src/quickfix.c, src/ex_docmd.c, src/message.c, src/proto/quickfix.pro, src/testdir/test_quickfix.vim Patch 7.4.2050 问题: When using ":vimgrep" may end up with duplicate buffers. 解决方案: When adding an error list entry pass the buffer number if possible. 相关文件: src/quickfix.c, src/testdir/test_quickfix.vim Patch 7.4.2051 问题: No proper testing of trunc_string(). 解决方案: Add a unittest for message.c. 相关文件: src/Makefile, src/message.c, src/message_test.c, src/main.c, src/proto/main.pro, src/structs.h Patch 7.4.2052 问题: Coverage report is messed up by the unittests. 解决方案: Add a separate test target for script tests. Use that when collecting coverage information. 相关文件: src/Makefile Patch 7.4.2053 问题: Can't run scripttests in the top directory. 解决方案: Add targets to the top Makefile. 相关文件: Makefile Patch 7.4.2054 (after 7.4.2048) 问题: Wrong part of #ifdef removed. 解决方案: Use the right part. (Hirohito Higashi) 相关文件: src/os_unix.c Patch 7.4.2055 问题: eval.c is too big 解决方案: Move Dictionary functions to dict.c 相关文件: src/eval.c, src/dict.c, src/vim.h, src/globals.h, src/proto/eval.pro, src/proto/dict.pro, src/Makefile, Filelist Patch 7.4.2056 (after 7.4.2055) 问题: Build fails. 解决方案: Add missing changes. 相关文件: src/proto.h Patch 7.4.2057 问题: eval.c is too big. 解决方案: Move List functions to list.c 相关文件: src/eval.c, src/dict.c, src/list.c, src/proto.h, src/Makefile, src/globals.h, src/proto/eval.pro, src/proto/list.pro, Filelist Patch 7.4.2058 问题: eval.c is too big. 解决方案: Move user functions to userfunc.c 相关文件: src/userfunc.c, src/eval.c, src/vim.h, src/globals.h, src/structs.h, src/proto.h, src/Makefile, src/proto/eval.pro, src/proto/userfunc.pro, Filelist Patch 7.4.2059 问题: Non-Unix builds fail. 解决方案: Update Makefiles for new files. 相关文件: src/Make_bc5.mak, src/Make_cyg_ming.mak, src/Make_dice.mak, src/Make_ivc.mak, src/Make_manx.mak, src/Make_morph.mak, src/Make_mvc.mak, src/Make_sas.mak Patch 7.4.2060 (after 7.4.2059) 问题: Wrong file name. 解决方案: Fix typo. 相关文件: src/Make_mvc.mak Patch 7.4.2061 问题: qf_init_ext() is too big. 解决方案: Move code to qf_parse_line() (Yegappan Lakshmanan) 相关文件: src/quickfix.c, src/testdir/test_quickfix.vim Patch 7.4.2062 问题: Using dummy variable to compute struct member offset. 解决方案: Use offsetof(). 相关文件: src/globals.h, src/macros.h, src/vim.h, src/spell.c Patch 7.4.2063 问题: eval.c is still too big. 解决方案: Split off internal functions to evalfunc.c. 相关文件: src/eval.c, src/evalfunc.c, src/list.c, src/proto.h, src/globals.h, src/vim.h, src/proto/eval.pro, src/proto/evalfunc.pro, src/proto/list.pro, src/Makefile, Filelist, src/Make_bc5.mak, src/Make_cyg_ming.mak, src/Make_dice.mak, src/Make_ivc.mak, src/Make_manx.mak, src/Make_morph.mak, src/Make_mvc.mak, src/Make_sas.mak Patch 7.4.2064 问题: Coverity warns for possible buffer overflow. 解决方案: Use vim_strcat() instead of strcat(). 相关文件: src/quickfix.c Patch 7.4.2065 问题: Compiler warns for uninitialized variable. (John Marriott) 解决方案: Set lnum to the right value. 相关文件: src/evalfunc.c Patch 7.4.2066 问题: getcompletion() not well tested. 解决方案: Add more testing. 相关文件: src/testdir/test_cmdline.vim Patch 7.4.2067 问题: Compiler warning for char/char_u conversion. (Tony Mechelynck) Inefficient code. 解决方案: Use more lines to fill with spaces. (Nikolai Pavlov) Add type cast. 相关文件: src/quickfix.c Patch 7.4.2068 问题: Not all arguments of trunc_string() are tested. Memory access error when running the message tests. 解决方案: Add another test case. (Yegappan Lakshmanan) Make it easy to run unittests with valgrind. Fix the access error. 相关文件: src/message.c, src/message_test.c, src/Makefile Patch 7.4.2069 问题: spell.c is too big. 解决方案: Split it in spell file handling and spell checking. 相关文件: src/spell.c, src/spellfile.c, src/spell.h, src/Makefile, src/proto/spell.pro, src/proto/spellfile.pro, src/proto.h Filelist, src/Make_bc5.mak, src/Make_cyg_ming.mak, src/Make_dice.mak, src/Make_ivc.mak, src/Make_manx.mak, src/Make_morph.mak, src/Make_mvc.mak, src/Make_sas.mak Patch 7.4.2070 (after 7.4.2069) 问题: Missing change to include file. 解决方案: Include the spell header file. 相关文件: src/vim.h Patch 7.4.2071 问题: The return value of type() is difficult to use. 解决方案: Define v:t_ constants. (Ken Takata) 相关文件: runtime/doc/eval.txt, src/eval.c, src/evalfunc.c, src/testdir/test_channel.vim, src/testdir/test_viml.vim, src/vim.h Patch 7.4.2072 问题: substitute() does not support a Funcref argument. 解决方案: Support a Funcref like it supports a string starting with "\=". 相关文件: src/evalfunc.c, src/regexp.c, src/eval.c, src/proto/eval.pro, src/proto/regexp.pro, src/testdir/test_expr.vim Patch 7.4.2073 问题: rgb.txt is read for every color name. 解决方案: Load rgb.txt once. (Christian Brabandt) Add a test. 相关文件: runtime/rgb.txt, src/term.c, src/testdir/test_syn_attr.vim Patch 7.4.2074 问题: One more place using a dummy variable. 解决方案: Use offsetof(). (Ken Takata) 相关文件: src/userfunc.c Patch 7.4.2075 问题: No autocommand event to initialize a window or tab page. 解决方案: Add WinNew and TabNew events. (partly by Felipe Morales) 相关文件: src/fileio.c, src/window.c, src/vim.h, src/testdir/test_autocmd.vim, runtime/doc/autocmd.txt Patch 7.4.2076 问题: Syntax error when dict has '>' key. 解决方案: Check for endchar. (Ken Takata) 相关文件: src/userfunc.c, src/testdir/test_lambda.vim Patch 7.4.2077 问题: Cannot update 'tabline' when a tab was closed. 解决方案: Add the TabClosed autocmd event. (partly by Felipe Morales) 相关文件: src/fileio.c, src/window.c, src/vim.h, src/testdir/test_autocmd.vim, runtime/doc/autocmd.txt Patch 7.4.2078 问题: Running checks in po directory fails. 解决方案: Add colors used in syntax.c to the builtin color table. 相关文件: src/term.c Patch 7.4.2079 问题: Netbeans test fails on non-Unix systems. 解决方案: Only do the permission check on Unix systems. 相关文件: src/testdir/test_netbeans.vim Patch 7.4.2080 问题: When using PERROR() on some systems assert_fails() does not see the error. 解决方案: Make PERROR() always report the error. 相关文件: src/vim.h, src/message.c, src/proto/message.pro Patch 7.4.2081 问题: Line numbers in the error list are not always adjusted. 解决方案: Set b_has_qf_entry properly. (Yegappan Lakshmanan) 相关文件: src/quickfix.c, src/structs.h, src/testdir/test_quickfix.vim Patch 7.4.2082 问题: Not much test coverage for digraphs. 解决方案: Add a new style digraph test. (Christian Brabandt) 相关文件: src/Makefile, src/testdir/test_alot.vim, src/testdir/test_digraph.vim Patch 7.4.2083 问题: Coverity complains about not restoring a value. 解决方案: Restore the value, although it's not really needed. Change return to jump to cleanup, might leak memory. 相关文件: src/userfunc.c Patch 7.4.2084 问题: New digraph test makes testing hang. 解决方案: Don't set "nocp". 相关文件: src/testdir/test_digraph.vim Patch 7.4.2085 问题: Digraph tests fails on some systems. 解决方案: Run it separately and set 'encoding' early. 相关文件: src/testdir/Make_all.mak, src/testdir/test_alot.vim, src/testdir/test_digraph.vim Patch 7.4.2086 问题: Using the system default encoding makes tests unpredictable. 解决方案: Always use utf-8 or latin1 in the new style tests. Remove setting encoding and scriptencoding where it is not needed. 相关文件: src/testdir/runtest.vim, src/testdir/test_channel.vim, src/testdir/test_digraph.vim, src/testdir/test_expand_dllpath.vim, src/testdir/test_expr_utf8.vim, src/testdir/test_json.vim, src/testdir/test_matchadd_conceal_utf8.vim, src/testdir/test_regexp_utf8.vim, src/testdir/test_visual.vim, src/testdir/test_alot_utf8.vim, Patch 7.4.2087 问题: Digraph code test coverage is still low. 解决方案: Add more tests. (Christian Brabandt) 相关文件: src/testdir/test_digraph.vim Patch 7.4.2088 (after 7.4.2087) 问题: Keymap test fails with normal features. 解决方案: Bail out if the keymap feature is not supported. 相关文件: src/testdir/test_digraph.vim Patch 7.4.2089 问题: Color handling of X11 GUIs is too complicated. 解决方案: Simplify the code. Use RGBA where appropriate. (Kazunobu Kuriyama) 相关文件: src/gui.h, src/gui_beval.c, src/gui_gtk_x11.c, src/netbeans.c Patch 7.4.2090 问题: Using submatch() in a lambda passed to substitute() is verbose. 解决方案: Use a static list and pass it as an optional argument to the function. Fix memory leak. 相关文件: src/structs.h, src/list.c, src/userfunc.c, src/channel.c, src/eval.c, src/evalfunc.c, src/ex_cmds2.c, src/regexp.c, src/proto/list.pro, src/proto/userfunc.pro, src/testdir/test_expr.vim, runtime/doc/eval.txt Patch 7.4.2091 问题: Coverity reports a resource leak when out of memory. 解决方案: Close the file before returning. 相关文件: src/term.c Patch 7.4.2092 问题: GTK 3 build fails with older GTK version. 解决方案: Check the pango version. (Kazunobu Kuriyama) 相关文件: src/gui_beval.c Patch 7.4.2093 问题: Netbeans test fails once in a while. Leaving log file behind. 解决方案: Add it to the list of flaky tests. Disable logfile. 相关文件: src/testdir/runtest.vim, src/testdir/test_channel.vim Patch 7.4.2094 问题: The color allocation in X11 is overly complicated. 解决方案: Remove find_closest_color(), XAllocColor() already does this. (Kazunobu Kuriyama) 相关文件: src/gui_x11.c Patch 7.4.2095 问题: Man test fails when run with the GUI. 解决方案: Adjust for different behavior of GUI. Add assert_inrange(). 相关文件: src/eval.c, src/evalfunc.c, src/proto/eval.pro, src/testdir/test_assert.vim, src/testdir/test_man.vim, runtime/doc/eval.txt Patch 7.4.2096 问题: Lambda functions show up with completion. 解决方案: Don't show lambda functions. (Ken Takata) 相关文件: src/userfunc.c, src/testdir/test_cmdline.vim Patch 7.4.2097 问题: Warning from 64 bit compiler. 解决方案: use size_t instead of int. (Mike Williams) 相关文件: src/message.c Patch 7.4.2098 问题: Text object tests are old style. 解决方案: Turn them into new style tests. (James McCoy, closes #941) 相关文件: src/testdir/Make_all.mak, src/testdir/test_textobjects.in, src/testdir/test_textobjects.ok, src/testdir/test_textobjects.vim, src/Makefile Patch 7.4.2099 问题: When a keymap is active only "(lang)" is displayed. (Ilya Dogolazky) 解决方案: Show the keymap name. (Dmitri Vereshchagin, closes #933) 相关文件: src/buffer.c, src/proto/screen.pro, src/screen.c Patch 7.4.2100 问题: "cgn" and "dgn" do not work correctly with a single character match and the replacement includes the searched pattern. (John Beckett) 解决方案: If the match is found in the wrong column try in the next column. Turn the test into new style. (Christian Brabandt) 相关文件: src/search.c, src/testdir/Make_all.mak, src/Makefile, src/testdir/test53.in, src/testdir/test53.ok, src/testdir/test_gn.vim Patch 7.4.2101 问题: Looping over windows, buffers and tab pages is inconsistent. 解决方案: Use FOR_ALL_ macros everywhere. (Yegappan Lakshmanan) 相关文件: src/buffer.c, src/diff.c, src/edit.c, src/eval.c, src/evalfunc.c, src/ex_cmds.c, src/ex_cmds2.c, src/ex_docmd.c, src/fileio.c, src/globals.h, src/gui.c, src/gui_mac.c, src/if_lua.c, src/if_mzsch.c, src/if_perl.xs, src/if_ruby.c, src/if_tcl.c, src/main.c, src/mark.c, src/memfile.c, src/memline.c, src/misc1.c, src/move.c, src/netbeans.c, src/normal.c, src/option.c, src/quickfix.c, src/screen.c, src/spell.c, src/term.c, src/window.c, src/workshop.c Patch 7.4.2102 (after 7.4.2101) 问题: Tiny build with GUI fails. 解决方案: Revert one FOR_ALL_ change. 相关文件: src/gui.c Patch 7.4.2103 问题: Can't have "augroup END" right after ":au!". 解决方案: Check for the bar character before the command argument. 相关文件: src/fileio.c, src/testdir/test_autocmd.vim, runtime/doc/autocmd.txt Patch 7.4.2104 问题: Code duplication when unreferencing a function. 解决方案: De-duplicate. 相关文件: src/userfunc.c Patch 7.4.2105 问题: Configure reports default features to be "normal" while it is "huge". 解决方案: Change the default text. Build with newer autoconf. 相关文件: src/configure.in, src/auto/configure Patch 7.4.2106 问题: Clang warns about missing field in initializer. 解决方案: Define COMMA and use it. (Kazunobu Kuriyama) 相关文件: src/ex_cmds.c, src/globals.h, src/vim.h Patch 7.4.2107 (after 7.4.2106) 问题: Misplaced equal sign. 解决方案: Remove it. 相关文件: src/globals.h Patch 7.4.2108 问题: Netbeans test is flaky. 解决方案: Wait for the cursor to be positioned. 相关文件: src/testdir/test_netbeans.vim Patch 7.4.2109 问题: Setting 'display' to "lastline" is a drastic change, while omitting it results in lots of "@" lines. 解决方案: Add "truncate" to show "@@@" for a truncated line. 相关文件: src/option.h, src/screen.c, runtime/doc/options.txt Patch 7.4.2110 问题: When there is an CmdUndefined autocmd then the error for a missing command is E464 instead of E492. (Manuel Ortega) 解决方案: Don't let the pointer be NULL. 相关文件: src/ex_docmd.c, src/testdir/test_usercommands.vim Patch 7.4.2111 问题: Defaults are very conservative. 解决方案: Move settings from vimrc_example.vim to defaults.vim. Load defaults.vim if no .vimrc was found. 相关文件: src/main.c, src/version.c, src/os_amiga.h, src/os_dos.h, src/os_mac.h, src/os_unix.h, src/feature.h, src/Makefile, runtime/vimrc_example.vim, runtime/defaults.vim, runtime/evim.vim, Filelist, runtime/doc/starting.txt Patch 7.4.2112 问题: getcompletion(.., 'dir') returns a match with trailing "*" when there are no matches. (Chdiza) 解决方案: Return an empty list when there are no matches. Add a trailing slash to directories. (Yegappan Lakshmanan) Add tests for no matches. (closes #947) 相关文件: src/evalfunc.c, src/testdir/test_cmdline.vim Patch 7.4.2113 问题: Test for undo is flaky. 解决方案: Turn it into a new style test. Use test_settime() to avoid flakyness. 相关文件: src/Makefile, src/undo.c, src/testdir/test61.in, src/testdir/test61.ok, src/testdir/test_undo.vim, src/testdir/test_undolevels.vim, src/testdir/Make_all.mak, src/testdir/test_alot.vim Patch 7.4.2114 问题: Tiny build fails. 解决方案: Always include vim_time(). 相关文件: src/ex_cmds.c Patch 7.4.2115 问题: Loading defaults.vim with -C argument. 解决方案: Don't load the defaults script with -C argument. Test sourcing the defaults script. Set 'display' to "truncate". 相关文件: src/main.c, src/Makefile, runtime/defaults.vim, src/testdir/test_startup.vim, src/testdir/Make_all.mak Patch 7.4.2116 问题: The default vimrc for Windows is very conservative. 解决方案: Use the defaults.vim in the Windows installer. 相关文件: src/dosinst.c Patch 7.4.2117 问题: Deleting an augroup that still has autocmds does not give a warning. The next defined augroup takes its place. 解决方案: Give a warning and prevent the index being used for another group name. 相关文件: src/fileio.c, src/testdir/test_autocmd.vim Patch 7.4.2118 问题: Mac: can't build with tiny features. 解决方案: Don't define FEAT_CLIPBOARD unconditionally. (Kazunobu Kuriyama) 相关文件: src/vim.h Patch 7.4.2119 问题: Closures are not supported. 解决方案: Capture variables in lambdas from the outer scope. (Yasuhiro Matsumoto, Ken Takata) 相关文件: runtime/doc/eval.txt, src/eval.c, src/ex_cmds2.c, src/globals.h, src/proto/eval.pro, src/proto/userfunc.pro, src/testdir/test_lambda.vim, src/userfunc.c Patch 7.4.2120 问题: User defined functions can't be a closure. 解决方案: Add the "closure" argument. Allow using :unlet on a bound variable. (Yasuhiro Matsumoto, Ken Takata) 相关文件: runtime/doc/eval.txt, src/testdir/test_lambda.vim, src/userfunc.c, src/eval.c src/proto/userfunc.pro Patch 7.4.2121 问题: No easy way to check if lambda and closure are supported. 解决方案: Add the +lambda feature. 相关文件: src/evalfunc.c, src/version.c, src/testdir/test_lambda.vim Patch 7.4.2122 (after 7.4.2118) 问题: Mac: don't get +clipboard in huge build. 解决方案: Move #define down below including feature.h 相关文件: src/vim.h Patch 7.4.2123 问题: No new style test for diff mode. 解决方案: Add a test. Check that folds are in sync. 相关文件: src/Makefile, src/testdir/test_diffmode.vim, src/testdir/Make_all.mak, src/testdir/test47.in, src/testdir/test47.ok Patch 7.4.2124 问题: diffmode test leaves files behind, breaking another test. 解决方案: Delete the files. 相关文件: src/testdir/test_diffmode.vim Patch 7.4.2125 问题: Compiler warning for loss of data. 解决方案: Add a type cast. (Christian Brabandt) 相关文件: src/message.c Patch 7.4.2126 问题: No tests for :diffget and :diffput 解决方案: Add tests. 相关文件: src/testdir/test_diffmode.vim Patch 7.4.2127 问题: The short form of ":noswapfile" is ":noswap" instead of ":nos". (Kent Sibilev) 解决方案: Only require three characters. Add a test for the short forms. 相关文件: src/ex_docmd.c, src/testdir/test_usercommands.vim Patch 7.4.2128 问题: Memory leak when saving for undo fails. 解决方案: Free allocated memory. (Hirohito Higashi) 相关文件: src/ex_cmds.c Patch 7.4.2129 问题: Memory leak when using timer_start(). (Dominique Pelle) 解决方案: Don't copy the callback when using a partial. 相关文件: src/evalfunc.c Patch 7.4.2130 问题: Pending timers cause false memory leak reports. 解决方案: Free all timers on exit. 相关文件: src/ex_cmds2.c, src/proto/ex_cmds2.pro, src/misc2.c Patch 7.4.2131 问题: More memory leaks when using partial, e.g. for "exit-cb". 解决方案: Don't copy the callback when using a partial. 相关文件: src/channel.c Patch 7.4.2132 问题: test_partial has memory leaks reported. 解决方案: Add a note about why this happens. 相关文件: src/testdir/test_partial.vim Patch 7.4.2133 (after 7.4.2128) 问题: Can't build with tiny features. 解决方案: Add #ifdef. 相关文件: src/ex_cmds.c Patch 7.4.2134 问题: No error for using function() badly. 解决方案: Check for passing wrong function name. (Ken Takata) 相关文件: src/eval.c, src/evalfunc.c, src/proto/userfunc.pro, src/testdir/test_expr.vim, src/userfunc.c, src/vim.h Patch 7.4.2135 问题: Various tiny issues. 解决方案: Update comments, white space, etc. 相关文件: src/diff.c, src/digraph.c, src/testdir/test80.in, src/testdir/test_channel.vim, src/testdir/Makefile, runtime/menu.vim, src/INSTALLpc.txt, src/xpm/README.txt Patch 7.4.2136 问题: Closure function fails. 解决方案: Don't reset uf_scoped when it points to another funccal. 相关文件: src/userfunc.c, src/testdir/test_lambda.vim Patch 7.4.2137 问题: Using function() with a name will find another function when it is redefined. 解决方案: Add funcref(). Refer to lambda using a partial. Fix several reference counting issues. 相关文件: src/vim.h, src/structs.h, src/userfunc.c, src/eval.c, src/evalfunc.c, src/channel.c, src/proto/eval.pro, src/proto/userfunc.pro, src/if_mzsch.c, src/regexp.c, src/misc2.c, src/if_py_both.h, src/testdir/test_expr.vim, runtime/doc/eval.txt Patch 7.4.2138 问题: Test 86 and 87 fail. 解决方案: Call func_ref() also for regular functions. 相关文件: src/if_py_both.h Patch 7.4.2139 问题: :delfunction causes illegal memory access. 解决方案: Correct logic when deciding to free a function. 相关文件: src/userfunc.c, src/testdir/test_lambda.vim Patch 7.4.2140 问题: Tiny build fails. 解决方案: Add dummy typedefs. 相关文件: src/structs.h Patch 7.4.2141 问题: Coverity reports bogus NULL check. 解决方案: When checking for a variable in the funccal scope don't pass the varname. 相关文件: src/userfunc.c, src/proto/userfunc.pro, src/eval.c Patch 7.4.2142 问题: Leaking memory when redefining a function. 解决方案: Don't increment the function reference count when it's found by name. Don't remove the wrong function from the hashtab. More reference counting fixes. 相关文件: src/structs.h, src/userfunc.c Patch 7.4.2143 问题: A funccal is garbage collected while it can still be used. 解决方案: Set copyID in all referenced functions. Do not list lambda functions with ":function". 相关文件: src/userfunc.c, src/proto/userfunc.pro, src/eval.c, src/testdir/test_lambda.vim Patch 7.4.2144 问题: On MS-Windows quickfix does not handle a line with 1023 bytes ending in CR-LF properly. 解决方案: Don't consider CR a line break. (Ken Takata) 相关文件: src/quickfix.c Patch 7.4.2145 问题: Win32: Using CreateThread/ExitThread is not safe. 解决方案: Use _beginthreadex and return from the thread. (Ken Takata) 相关文件: src/os_win32.c Patch 7.4.2146 问题: Not enough testing for popup menu. CTRL-E does not always work properly. 解决方案: Add more tests. When using CTRL-E check if the popup menu is visible. (Christian Brabandt) 相关文件: src/edit.c, src/testdir/test_popup.vim Patch 7.4.2147 (after 7.4.2146) 问题: test_alot fails. 解决方案: Close window. 相关文件: src/testdir/test_popup.vim Patch 7.4.2148 问题: Not much testing for cscope. 解决方案: Add a test that uses the cscope program. (Christian Brabandt) 相关文件: src/testdir/test_cscope.vim Patch 7.4.2149 问题: If a test leaves a window open a following test may fail. 解决方案: Always close extra windows after running a test. 相关文件: src/testdir/runtest.vim, src/testdir/test_popup.vim Patch 7.4.2150 问题: Warning with MinGW 64. (John Marriott) 解决方案: Change return type. (Ken Takata) 相关文件: src/os_win32.c Patch 7.4.2151 问题: Quickfix test fails on MS-Windows. 解决方案: Close the help window. (Christian Brabandt) 相关文件: src/testdir/test_quickfix.vim Patch 7.4.2152 问题: No proper translation of messages with a count. 解决方案: Use ngettext(). (Sergey Alyoshin) 相关文件: src/evalfunc.c, src/fold.c, src/os_win32.c, src/screen.c, src/vim.h Patch 7.4.2153 问题: GUI test isn't testing much. 解决方案: Turn into a new style test. Execute a shell command. 相关文件: src/testdir/test_gui.vim, src/testdir/test16.in, src/testdir/test16.ok, src/testdir/Make_all.mak, src/Makefile, src/testdir/Make_vms.mms Patch 7.4.2154 问题: Test_communicate() fails sometimes. 解决方案: Add it to the flaky tests. 相关文件: src/testdir/runtest.vim Patch 7.4.2155 问题: Quotes make GUI test fail on MS-Windows. 解决方案: Remove quotes, strip white space. 相关文件: src/testdir/test_gui.vim Patch 7.4.2156 问题: Compiler warning. 解决方案: Add type cast. (Ken Takata, Mike Williams) 相关文件: src/os_win32.c Patch 7.4.2157 问题: Test_job_start_fails() is expected to report memory leaks, making it hard to see other leaks in test_partial. 解决方案: Move Test_job_start_fails() to a separate test file. 相关文件: src/testdir/test_partial.vim, src/testdir/test_job_fails.vim, src/Makefile, src/testdir/Make_all.mak Patch 7.4.2158 问题: Result of getcompletion('', 'cscope') depends on previous completion. (Christian Brabandt) 解决方案: Call set_context_in_cscope_cmd(). 相关文件: src/evalfunc.c, src/testdir/test_cmdline.vim Patch 7.4.2159 问题: Insufficient testing for cscope. 解决方案: Add more tests. (Dominique Pelle) 相关文件: src/testdir/test_cscope.vim Patch 7.4.2160 问题: setmatches() mixes up values. (Nikolai Pavlov) 解决方案: Save the string instead of reusing a shared buffer. 相关文件: src/dict.c, src/evalfunc.c, src/testdir/test_expr.vim, Patch 7.4.2161 (after 7.4.2160) 问题: Expression test fails without conceal feature. 解决方案: Only check "conceal" with the conceal feature. 相关文件: src/testdir/test_expr.vim Patch 7.4.2162 问题: Result of getcompletion('', 'sign') depends on previous completion. 解决方案: Call set_context_in_sign_cmd(). (Dominique Pelle) 相关文件: src/evalfunc.c, src/testdir/test_cmdline.vim Patch 7.4.2163 问题: match() and related functions tested with old style test. 解决方案: Convert to new style test. (Hirohito Higashi) 相关文件: src/Makefile, src/testdir/Make_all.mak, src/testdir/test63.in, src/testdir/test63.ok, src/testdir/test_alot.vim, src/testdir/test_match.vim, src/testdir/test_matchstrpos.vim Patch 7.4.2164 问题: It is not possible to use plugins in an "after" directory to tune the behavior of a package. 解决方案: First load plugins from non-after directories, then packages and finally plugins in after directories. Reset 'loadplugins' before executing --cmd arguments. 相关文件: src/main.c, src/vim.h, src/ex_cmds2.c, src/testdir/Makefile, src/testdir/shared.vim, src/testdir/test_startup.vim, src/testdir/setup.vim, runtime/doc/starting.txt Patch 7.4.2165 (after 7.4.2164) 问题: Startup test fails on MS-Windows. 解决方案: Don't check output if RunVim() returns zero. 相关文件: src/testdir/test_startup.vim Patch 7.4.2166 (after 7.4.2164) 问题: Small build can't run startup test. 解决方案: Skip the test. 相关文件: src/testdir/test_startup.vim Patch 7.4.2167 (after 7.4.2164) 问题: Small build can't run tests. 解决方案: Don't try setting 'packpath'. 相关文件: src/testdir/setup.vim Patch 7.4.2168 问题: Not running the startup test on MS-Windows. 解决方案: Write vimcmd. 相关文件: src/testdir/Make_ming.mak, src/testdir/Make_dos.mak Patch 7.4.2169 (after 7.4.2168) 问题: Startup test gets stuck on MS-Windows. 解决方案: Use double quotes. 相关文件: src/testdir/shared.vim, src/testdir/test_startup.vim Patch 7.4.2170 问题: Cannot get information about timers. 解决方案: Add timer_info(). 相关文件: src/evalfunc.c, src/ex_cmds2.c, src/proto/ex_cmds2.pro, runtime/doc/eval.txt Patch 7.4.2171 (after 7.4.2170) 问题: MS-Windows build fails. 解决方案: Add QueryPerformanceCounter(). 相关文件: src/ex_cmds2.c Patch 7.4.2172 问题: No test for "vim --help". 解决方案: Add a test. 相关文件: src/testdir/test_startup.vim, src/testdir/shared.vim Patch 7.4.2173 (after 7.4.2172) 问题: Can't test help on MS-Windows. 解决方案: Skip the test. 相关文件: src/testdir/test_startup.vim Patch 7.4.2174 问题: Adding duplicate flags to 'whichwrap' leaves commas behind. 解决方案: Also remove the commas. (Naruhiko Nishino) 相关文件: src/Makefile, src/option.c, src/testdir/Make_all.mak, src/testdir/test_alot.vim, src/testdir/test_options.in, src/testdir/test_options.ok, src/testdir/test_options.vim Patch 7.4.2175 问题: Insufficient testing of cscope. 解决方案: Add more tests. (Dominique Pelle) 相关文件: src/testdir/test_cscope.vim Patch 7.4.2176 问题: #ifdefs in main() are complicated. 解决方案: Always define vim_main2(). Move params to the file level. (suggested by Ken Takata) 相关文件: src/main.c, src/structs.h, src/vim.h, src/if_mzsch.c, src/proto/if_mzsch.pro Patch 7.4.2177 问题: No testing for -C and -N command line flags, file arguments, startuptime. 解决方案: Add tests. 相关文件: src/testdir/test_startup.vim, src/testdir/shared.vim Patch 7.4.2178 问题: No test for reading from stdin. 解决方案: Add a test. 相关文件: src/testdir/test_startup.vim, src/testdir/shared.vim Patch 7.4.2179 (after 7.4.2178) 问题: Reading from stdin test fails on MS-Windows. 解决方案: Strip the extra space. 相关文件: src/testdir/test_startup.vim Patch 7.4.2180 问题: There is no easy way to stop all timers. There is no way to temporary pause a timer. 解决方案: Add timer_stopall() and timer_pause(). 相关文件: src/evalfunc.c, src/ex_cmds2.c, src/proto/ex_cmds2.pro, src/structs.h, src/testdir/test_timers.vim, src/testdir/shared.vim, runtime/doc/eval.txt Patch 7.4.2181 问题: Compiler warning for unused variable. 解决方案: Remove it. (Dominique Pelle) 相关文件: src/ex_cmds2.c Patch 7.4.2182 问题: Color Grey40 used in startup but not in the short list. 解决方案: Add Grey40 to the builtin colors. 相关文件: src/term.c Patch 7.4.2183 问题: Sign tests are old style. 解决方案: Turn them into new style tests. (Dominique Pelle) 相关文件: src/Makefile, src/testdir/Make_all.mak, src/testdir/test_signs.in, src/testdir/test_signs.ok, src/testdir/test_signs.vim, Patch 7.4.2184 问题: Tests that use RunVim() do not actually perform the test. 解决方案: Use "return" instead of "call". (Ken Takata) 相关文件: src/testdir/shared.vim Patch 7.4.2185 问题: Test glob2regpat does not test much. 解决方案: Add a few more test cases. (Dominique Pelle) 相关文件: src/testdir/test_glob2regpat.vim Patch 7.4.2186 问题: Timers test is flaky. 解决方案: Relax the sleep time check. 相关文件: src/testdir/test_timers.vim Patch 7.4.2187 (after 7.4.2185) 问题: glob2regpat test fails on Windows. 解决方案: Remove the checks that use backslashes. 相关文件: src/testdir/test_glob2regpat.vim Patch 7.4.2188 (after 7.4.2146) 问题: Completion does not work properly with some plugins. 解决方案: Revert the part related to typing CTRL-E. (closes #972) 相关文件: src/edit.c, src/testdir/test_popup.vim Patch 7.4.2189 问题: Cannot detect encoding in a fifo. 解决方案: Extend the stdin way of detecting encoding to fifo. Add a test for detecting encoding on stdin and fifo. (Ken Takata) 相关文件: src/buffer.c, src/fileio.c, src/Makefile, src/testdir/Make_all.mak, src/testdir/test_startup_utf8.vim, src/vim.h Patch 7.4.2190 问题: When startup test fails it's not easy to find out why. GUI test fails with Gnome. 解决方案: Add the help entry matches to a list an assert that. Set $HOME for Gnome to create .gnome2 directory. 相关文件: src/testdir/test_startup.vim, src/testdir/test_gui.vim Patch 7.4.2191 问题: No automatic prototype for vim_main2(). 解决方案: Move the #endif. (Ken Takata) 相关文件: src/main.c, src/vim.h, src/proto/main.pro Patch 7.4.2192 问题: Generating prototypes with Cygwin doesn't work well. 解决方案: Change #ifdefs. (Ken Takata) 相关文件: src/gui.h, src/gui_w32.c, src/ops.c, src/proto/fileio.pro, src/proto/message.pro, src/proto/normal.pro, src/proto/ops.pro, src/vim.h Patch 7.4.2193 问题: With Gnome when the GUI can't start test_startup hangs. 解决方案: Call gui_mch_early_init_check(). (Hirohito Higashi) 相关文件: src/gui.c, src/gui_gtk_x11.c, src/proto/gui_gtk_x11.pro Patch 7.4.2194 问题: Sign tests don't cover enough. 解决方案: Add more test cases. (Dominique Pelle) 相关文件: src/testdir/test_signs.vim Patch 7.4.2195 问题: MS-Windows: The vimrun program does not support Unicode. 解决方案: Use GetCommandLineW(). Cleanup old #ifdefs. (Ken Takata) 相关文件: src/vimrun.c Patch 7.4.2196 问题: glob2regpat test doesn't test everything on MS-Windows. 解决方案: Add patterns with backslash handling. 相关文件: src/testdir/test_glob2regpat.vim Patch 7.4.2197 问题: All functions are freed on exit, which may hide leaks. 解决方案: Only free named functions, not reference counted ones. 相关文件: src/userfunc.c Patch 7.4.2198 问题: Test alot sometimes fails under valgrind. (Dominique Pelle) 解决方案: Avoid passing a callback with the wrong number of arguments. 相关文件: src/testdir/test_partial.vim Patch 7.4.2199 问题: In the GUI the cursor is hidden when redrawing any window, causing flicker. 解决方案: Only undraw the cursor when updating the window it's in. 相关文件: src/screen.c, src/gui.c, src/proto/gui.pro, src/gui_gtk_x11.c Patch 7.4.2200 问题: Cannot get all information about a quickfix list. 解决方案: Add an optional argument to get/set loc/qf list(). (Yegappan Lakshmanan) 相关文件: runtime/doc/eval.txt, src/evalfunc.c, src/proto/quickfix.pro, src/quickfix.c, src/tag.c, src/testdir/test_quickfix.vim Patch 7.4.2201 问题: The sign column disappears when the last sign is deleted. 解决方案: Add the 'signcolumn' option. (Christian Brabandt) 相关文件: runtime/doc/options.txt, runtime/optwin.vim, src/edit.c, src/move.c, src/option.c, src/option.h, src/proto/option.pro, src/screen.c, src/structs.h, src/testdir/test_options.vim Patch 7.4.2202 问题: Build fails with small features. 解决方案: Correct option initialization. 相关文件: src/option.c Patch 7.4.2203 问题: Test fails with normal features. 解决方案: Check is signs are supported. 相关文件: src/testdir/test_options.vim Patch 7.4.2204 问题: It is not easy to get information about buffers, windows and tabpages. 解决方案: Add getbufinfo(), getwininfo() and gettabinfo(). (Yegappan Lakshmanan) 相关文件: runtime/doc/eval.txt, runtime/doc/usr_41.txt, src/dict.c, src/evalfunc.c, src/option.c, src/proto/dict.pro, src/proto/option.pro, src/proto/window.pro, src/testdir/Make_all.mak, src/testdir/test_bufwintabinfo.vim, src/window.c, src/Makefile Patch 7.4.2205 问题: 'wildignore' always applies to getcompletion(). 解决方案: Add an option to use 'wildignore' or not. (Yegappan Lakshmanan) 相关文件: runtime/doc/eval.txt, src/evalfunc.c, src/testdir/test_cmdline.vim Patch 7.4.2206 问题: Warning for unused function. 解决方案: Put the function inside #ifdef. (John Marriott) 相关文件: src/evalfunc.c Patch 7.4.2207 问题: The +xpm feature is not sorted properly in :version output. 解决方案: Move it up. (Tony Mechelynck) 相关文件: src/version.c Patch 7.4.2208 问题: Test for mappings is old style. 解决方案: Convert the test to new style. 相关文件: src/testdir/test_mapping.vim, src/testdir/test_mapping.in, src/testdir/test_mapping.ok, src/Makefile, src/testdir/test_alot.vim, src/testdir/Make_all.mak Patch 7.4.2209 问题: Cannot map <M-">. (Stephen Riehm) 解决方案: Solve the memory access problem in another way. (Dominique Pelle) Allow for using <M-\"> in a string. 相关文件: src/eval.c, src/gui_mac.c, src/misc2.c, src/option.c, src/proto/misc2.pro, src/syntax.c, src/term.c, src/testdir/test_mapping.vim Patch 7.4.2210 问题: On OSX configure mixes up a Python framework and the Unix layout. 解决方案: Make configure check properly. (Tim D. Smith, closes #980) 相关文件: src/configure.in, src/auto/configure Patch 7.4.2211 问题: Mouse support is not automatically enabled with simple term. 解决方案: Recognize "st" and other names. (Manuel Schiller, closes #963) 相关文件: src/os_unix.c Patch 7.4.2212 问题: Mark " is not set when closing a window in another tab. (Guraga) 解决方案: Check all tabs for the window to be valid. (based on patch by Hirohito Higashi, closes #974) 相关文件: src/window.c, src/proto/window.pro, src/buffer.c, src/testdir/test_viminfo.vim Patch 7.4.2213 问题: Cannot highlight the "~" lines at the end of a window differently. 解决方案: Add the EndOfBuffer highlighting. (Marco Hinz, James McCoy) 相关文件: runtime/doc/options.txt, runtime/doc/syntax.txt, src/option.c, src/screen.c, src/syntax.c, src/vim.h Patch 7.4.2214 问题: A font that uses ligatures messes up the screen display. 解决方案: Put spaces between characters when building the glyph table. (based on a patch from Manuel Schiller) 相关文件: src/gui_gtk_x11.c Patch 7.4.2215 问题: It's not easy to find out if a window is a quickfix or location list window. 解决方案: Add "loclist" and "quickfix" entries to the dict returned by getwininfo(). (Yegappan Lakshmanan) 相关文件: runtime/doc/eval.txt, src/evalfunc.c, src/testdir/test_bufwintabinfo.vim Patch 7.4.2216 (after 7.4.2215) 问题: Test fails without the +sign feature. 解决方案: Only check for signcolumn with the +sign feature. 相关文件: src/testdir/test_bufwintabinfo.vim Patch 7.4.2217 问题: When using matchaddpos() a character after the end of the line can be highlighted. 解决方案: Only highlight existing characters. (Hirohito Higashi) 相关文件: src/screen.c, src/structs.h, src/testdir/test_match.vim Patch 7.4.2218 问题: Can't build with +timers when +digraph is not included. 解决方案: Change #ifdef for e_number_exp. (Damien) 相关文件: src/globals.h Patch 7.4.2219 问题: Recursive call to substitute gets stuck in sandbox. (Nikolai Pavlov) 解决方案: Handle the recursive call. (Christian Brabandt, closes #950) Add a test. 相关文件: src/ex_cmds.c, src/testdir/test_regexp_latin.vim Patch 7.4.2220 问题: printf() gives an error when the argument for %s is not a string. (Ozaki Kiichi) 解决方案: Behave like invoking string() on the argument. (Ken Takata) 相关文件: runtime/doc/eval.txt, src/message.c, src/testdir/test_expr.vim Patch 7.4.2221 问题: printf() does not support binary format. 解决方案: Add %b and %B. (Ozaki Kiichi) 相关文件: runtime/doc/eval.txt, src/message.c, src/testdir/test_expr.vim Patch 7.4.2222 问题: Sourcing a script where a character has 0x80 as a second byte does not work. (Filipe L B Correia) 解决方案: Turn 0x80 into K_SPECIAL KS_SPECIAL KE_FILLER. (Christian Brabandt, closes #728) Add a test case. 相关文件: src/getchar.c, src/proto/getchar.pro, src/misc1.c, src/testdir/test_regexp_utf8.vim Patch 7.4.2223 问题: Buffer overflow when using latin1 character with feedkeys(). 解决方案: Check for an illegal character. Add a test. 相关文件: src/testdir/test_regexp_utf8.vim, src/testdir/test_source_utf8.vim, src/testdir/test_alot_utf8.vim, src/Makefile, src/getchar.c, src/macros.h, src/evalfunc.c, src/os_unix.c, src/os_win32.c, src/spell.c, Patch 7.4.2224 问题: Compiler warnings with older compiler and 64 bit numbers. 解决方案: Add "LL" to large values. (Mike Williams) 相关文件: src/eval.c, src/evalfunc.c Patch 7.4.2225 问题: Crash when placing a sign in a deleted buffer. 解决方案: Check for missing buffer name. (Dominique Pelle). Add a test. 相关文件: src/ex_cmds.c, src/testdir/test_signs.vim Patch 7.4.2226 问题: The field names used by getbufinfo(), gettabinfo() and getwininfo() are not consistent. 解决方案: Use bufnr, winnr and tabnr. (Yegappan Lakshmanan) 相关文件: runtime/doc/eval.txt, src/evalfunc.c, src/testdir/test_bufwintabinfo.vim Patch 7.4.2227 问题: Tab page tests are old style. 解决方案: Change into new style tests. (Hirohito Higashi) 相关文件: src/Makefile, src/testdir/Make_all.mak, src/testdir/test62.in, src/testdir/test62.ok, src/testdir/test_alot.vim, src/testdir/test_tabpage.vim Patch 7.4.2228 问题: Test files have inconsistent modelines. 解决方案: Don't set 'tabstop' to 2, use 'sts' and 'sw'. 相关文件: src/testdir/README.txt, src/testdir/test_backspace_opt.vim, src/testdir/test_digraph.vim, src/testdir/test_gn.vim src/testdir/test_help_tagjump.vim, src/testdir/test_increment_dbcs.vim, src/testdir/test_increment.vim, src/testdir/test_match.vim, src/testdir/test_tagjump.vim, src/testdir/test_window_cmd.vim, src/testdir/test_regexp_latin.vim, src/testdir/test_timers.vim Patch 7.4.2229 问题: Startup test fails on Solaris. 解决方案: Recognize a character device. (Danek Duvall) 相关文件: src/buffer.c, src/fileio.c, src/proto/fileio.pro, src/vim.h Patch 7.4.2230 问题: There is no equivalent of 'smartcase' for a tag search. 解决方案: Add value "followscs" and "smart" to 'tagcase'. (Christian Brabandt, closes #712) Turn tagcase test into new style. 相关文件: runtime/doc/options.txt, runtime/doc/tagsrch.txt, src/option.h, src/tag.c, src/search.c, src/proto/search.pro, src/testdir/test_tagcase.in, src/testdir/test_tagcase.ok, src/testdir/test_tagcase.vim, src/Makefile, src/testdir/Make_all.mak, src/testdir/test_alot.vim Patch 7.4.2231 问题: ":oldfiles" output is a very long list. 解决方案: Add a pattern argument. (Coot, closes #575) 相关文件: runtime/doc/starting.txt, src/ex_cmds.h, src/eval.c, src/ex_cmds.c, src/proto/eval.pro, src/proto/ex_cmds.pro, src/testdir/test_viminfo.vim Patch 7.4.2232 问题: The default ttimeoutlen is very long. 解决方案: Use "100". (Hirohito Higashi) 相关文件: runtime/defaults.vim Patch 7.4.2233 问题: Crash when using funcref() with invalid name. (Dominique Pelle) 解决方案: Check for NULL translated name. 相关文件: src/evalfunc.c, src/testdir/test_expr.vim Patch 7.4.2234 问题: Can't build with +eval but without +quickfix. (John Marriott) 解决方案: Move skip_vimgrep_pat() to separate #ifdef block. 相关文件: src/quickfix.c Patch 7.4.2235 问题: submatch() does not check for a valid argument. 解决方案: Give an error if the argument is out of range. (Dominique Pelle) 相关文件: src/evalfunc.c, src/testdir/test_expr.vim Patch 7.4.2236 问题: The 'langnoremap' option leads to double negatives. And it does not work for the last character of a mapping. 解决方案: Add 'langremap' with the opposite value. Keep 'langnoremap' for backwards compatibility. Make it work for the last character of a mapping. Make the test work. 相关文件: runtime/doc/options.txt, runtime/defaults.vim, src/option.c, src/option.h, src/macros.h, src/testdir/test_mapping.vim Patch 7.4.2237 问题: Can't use "." and "$" with ":tab". 解决方案: Support a range for ":tab". (Hirohito Higashi) 相关文件: runtime/doc/tabpage.txt, src/ex_docmd.c, src/testdir/test_tabpage.vim Patch 7.4.2238 问题: With SGR mouse reporting (suckless terminal) the mouse release and scroll up/down is confused. 解决方案: Don't see a release as a scroll up/down. (Ralph Eastwood) 相关文件: src/term.c Patch 7.4.2239 问题: Warning for missing declaration of skip_vimgrep_pat(). (John Marriott) 解决方案: Move it to another file. 相关文件: src/quickfix.c, src/proto/quickfix.pro, src/ex_cmds.c, src/proto/ex_cmds.pro Patch 7.4.2240 问题: Tests using the sleep time can be flaky. 解决方案: Use reltime() if available. (Partly by Shane Harper) 相关文件: src/testdir/shared.vim, src/testdir/test_timers.vim Patch 7.4.2241 (after 7.4.2240) 问题: Timer test sometimes fails. 解决方案: Increase the maximum time for repeating timer. 相关文件: src/testdir/test_timers.vim Patch 7.4.2242 (after 7.4.2240) 问题: Timer test sometimes fails. 解决方案: Increase the maximum time for callback timer test. 相关文件: src/testdir/test_timers.vim Patch 7.4.2243 问题: Warning for assigning negative value to unsigned. (Danek Duvall) 解决方案: Make cterm_normal_fg_gui_color and _bg_ guicolor_T, cast to long_u only when an unsigned is needed. 相关文件: src/structs.h, src/globals.h, src/screen.c, src/term.c, src/syntax.c, src/gui_gtk_x11.c, src/gui.c, src/gui_mac.c, src/gui_photon.c, src/gui_w32.c, src/gui_x11.c, src/proto/term.pro, src/proto/gui_gtk_x11.pro, src/proto/gui_mac.pro, src/proto/gui_photon.pro, src/proto/gui_w32.pro, src/proto/gui_x11.pro Patch 7.4.2244 问题: Adding pattern to ":oldfiles" is not a generic solution. 解决方案: Add the ":filter /pat/ cmd" command modifier. Only works for some commands right now. 相关文件: src/structs.h, src/ex_docmd.c, src/ex_cmds.h, src/message.c, src/proto/message.pro, runtime/doc/starting.txt, runtime/doc/various.txt, src/testdir/test_viminfo.vim, src/testdir/test_alot.vim, src/testdir/test_filter_cmd.vim, src/Makefile Patch 7.4.2245 (after 7.4.2244) 问题: Filter test fails. 解决方案: Include missing changes. 相关文件: src/buffer.c Patch 7.4.2246 (after 7.4.2244) 问题: Oldfiles test fails. 解决方案: Include missing changes. 相关文件: src/ex_cmds.c Patch 7.4.2247 (after 7.4.2244) 问题: Tiny build fails. (Tony Mechelynck) 解决方案: Remove #ifdef. 相关文件: src/ex_cmds.c Patch 7.4.2248 问题: When cancelling the :ptjump prompt a preview window is opened for a following command. 解决方案: Reset g_do_tagpreview. (Hirohito Higashi) Add a test. Avoid that the test runner gets stuck in trying to close a window. 相关文件: src/tag.c, src/testdir/test_tagjump.vim, src/testdir/runtest.vim Patch 7.4.2249 问题: Missing colon in error message. 解决方案: Add the colon. (Dominique Pelle) 相关文件: src/userfunc.c Patch 7.4.2250 问题: Some error messages cannot be translated. 解决方案: Enclose them in _() and N_(). (Dominique Pelle) 相关文件: src/channel.c, src/evalfunc.c, src/ex_cmds.c, src/spell.c, src/window.c Patch 7.4.2251 问题: In rare cases diffing 4 buffers is not enough. 解决方案: Raise the limit to 8. (closes #1000) 相关文件: src/structs.h, runtime/doc/diff.txt Patch 7.4.2252 问题: Compiler warnings for signed/unsigned in expression. 解决方案: Remove type cast. (Dominique Pelle) 相关文件: src/vim.h Patch 7.4.2253 问题: Check for Windows 3.1 will always return false. (Christian Brabandt) 解决方案: Remove the dead code. 相关文件: src/gui_w32.c, src/evalfunc.c, src/ex_cmds.c, src/option.c, src/os_win32.c, src/version.c, src/proto/gui_w32.pro Patch 7.4.2254 问题: Compiler warnings in MzScheme code. 解决方案: Add UNUSED. Remove unreachable code. 相关文件: src/if_mzsch.c Patch 7.4.2255 问题: The script that checks translations can't handle plurals. 解决方案: Check for plural msgid and msgstr entries. Leave the cursor on the first error. 相关文件: src/po/check.vim Patch 7.4.2256 问题: Coverity complains about null pointer check. 解决方案: Remove wrong and superfluous error check. 相关文件: src/eval.c Patch 7.4.2257 问题: Coverity complains about not checking for NULL. 解决方案: Check for out of memory. 相关文件: src/if_py_both.h Patch 7.4.2258 问题: Two JSON messages are sent without a separator. 解决方案: Separate messages with a NL. (closes #1001) 相关文件: src/json.c, src/channel.c, src/vim.h, src/testdir/test_channel.py, src/testdir/test_channel.vim, runtime/doc/channel.txt Patch 7.4.2259 问题: With 'incsearch' can only see the next match. 解决方案: Make CTRL-N/CTRL-P move to the previous/next match. (Christian Brabandt) 相关文件: runtime/doc/cmdline.txt, src/ex_getln.c, src/testdir/Make_all.mak, src/testdir/test_search.vim, src/Makefile Patch 7.4.2260 (after 7.4.2258) 问题: Channel test is flaky. 解决方案: Add a newline to separate JSON messages. 相关文件: src/testdir/test_channel.vim Patch 7.4.2261 (after 7.4.2259) 问题: Build fails with small features. 解决方案: Move "else" inside the #ifdef. 相关文件: src/ex_getln.c Patch 7.4.2262 问题: Fail to read register content from viminfo if it is 438 characters long. (John Chen) 解决方案: Adjust the check for line wrapping. (closes #1010) 相关文件: src/testdir/test_viminfo.vim, src/ex_cmds.c Patch 7.4.2263 问题: :filter does not work for many commands. Can only get matching messages. 解决方案: Make :filter work for :command, :map, :list, :number and :print. Make ":filter!" show non-matching lines. 相关文件: src/getchar.c, src/ex_cmds.c, src/ex_cmds.h, src/ex_docmd.c, src/message.c, src/structs.h, src/testdir/test_filter_cmd.vim Patch 7.4.2264 问题: When adding entries to an empty quickfix list the title is reset. 解决方案: Improve handling of the title. (Yegappan Lakshmanan) 相关文件: src/testdir/test_quickfix.vim, src/quickfix.c Patch 7.4.2265 问题: printf() isn't tested much. 解决方案: Add more tests for printf(). (Dominique Pelle) 相关文件: src/testdir/test_expr.vim Patch 7.4.2266 (after 7.4.2265) 问题: printf() test fails on Windows. "-inf" is not used. 解决方案: Check for Windows-specific values for "nan". Add sign to "inf" when appropriate. 相关文件: src/message.c, src/testdir/test_expr.vim Patch 7.4.2267 (after 7.4.2266) 问题: Build fails on MS-Windows. 解决方案: Add define to get isinf(). 相关文件: src/message.c Patch 7.4.2268 (after 7.4.2259) 问题: Using CTRL-N and CTRL-P for incsearch shadows completion keys. 解决方案: Use CTRL-T and CTRL-G instead. 相关文件: runtime/doc/cmdline.txt, src/ex_getln.c, src/testdir/test_search.vim Patch 7.4.2269 问题: Using 'hlsearch' highlighting instead of matchpos if there is no search match. 解决方案: Pass NULL as last item to next_search_hl() when searching for 'hlsearch' match. (Shane Harper, closes #1013) 相关文件: src/screen.c, src/testdir/test_match.vim. Patch 7.4.2270 问题: Insufficient testing for NUL bytes on a raw channel. 解决方案: Add a test for writing and reading. 相关文件: src/testdir/test_channel.vim Patch 7.4.2271 问题: Netbeans test doesn't read settings from file. 解决方案: Use "-Xnbauth". 相关文件: src/testdir/test_netbeans.vim Patch 7.4.2272 问题: getbufinfo(), getwininfo() and gettabinfo() are inefficient. 解决方案: Instead of making a copy of the variables dictionary, use a reference. 相关文件: src/evalfunc.c Patch 7.4.2273 问题: getwininfo() and getbufinfo() are inefficient. 解决方案: Do not make a copy of all window/buffer-local options. Make it possible to get them with gettabwinvar() or getbufvar(). 相关文件: src/evalfunc.c, src/eval.c, src/testdir/test_bufwintabinfo.vim, runtime/doc/eval.txt Patch 7.4.2274 问题: Command line completion on "find **/filename" drops sub-directory. 解决方案: Handle this case separately. (Harm te Hennepe, closes #932, closes #939) 相关文件: src/misc1.c, src/testdir/test_cmdline.vim Patch 7.4.2275 问题: ":diffoff!" does not remove filler lines. 解决方案: Force a redraw and invalidate the cursor. (closes #1014) 相关文件: src/diff.c, src/testdir/test_diffmode.vim Patch 7.4.2276 问题: Command line test fails on Windows when run twice. 解决方案: Wipe the buffer so that the directory can be deleted. 相关文件: src/testdir/test_cmdline.vim Patch 7.4.2277 问题: Memory leak in getbufinfo() when there is a sign. (Dominique Pelle) 解决方案: Remove extra vim_strsave(). 相关文件: src/evalfunc.c Patch 7.4.2278 问题: New users have no idea of the 'scrolloff' option. 解决方案: Set 'scrolloff' in defaults.vim. 相关文件: runtime/defaults.vim Patch 7.4.2279 问题: Starting diff mode with the cursor in the last line might end up only showing one closed fold. (John Beckett) 解决方案: Scroll the window to show the same relative cursor position. 相关文件: src/diff.c, src/window.c, src/proto/window.pro Patch 7.4.2280 问题: printf() doesn't handle infinity float values correctly. 解决方案: Add a table with possible infinity values. (Dominique Pelle) 相关文件: src/message.c, src/testdir/test_expr.vim Patch 7.4.2281 问题: Timer test fails sometimes. 解决方案: Reduce minimum time by 1 msec. 相关文件: src/testdir/test_timers.vim Patch 7.4.2282 问题: When a child process is very fast waiting 10 msec for it is noticeable. (Ramel Eshed) 解决方案: Start waiting for 1 msec and gradually increase. 相关文件: src/os_unix.c Patch 7.4.2283 问题: Part of ":oldfiles" command isn't cleared. (Lifepillar) 解决方案: Clear the rest of the line. (closes 1018) 相关文件: src/ex_cmds.c Patch 7.4.2284 问题: Comment in scope header file is outdated. (KillTheMule) 解决方案: Point to the help instead. (closes #1017) 相关文件: src/if_cscope.h Patch 7.4.2285 问题: Generated files are outdated. 解决方案: Generate the files. Avoid errors when generating prototypes. 相关文件: src/if_mzsch.h, src/Makefile, src/option.h, src/os_mac_conv.c, src/os_amiga.c, src/vim.h, src/structs.h, src/os_win32.c, src/if_lua.c, src/proto/mbyte.pro Patch 7.4.2286 问题: The tee program isn't included. Makefile contains build instructions that don't work. 解决方案: Update the Filelist and build instructions. Remove build instructions for DOS and old Windows. Add the tee program. 相关文件: Filelist, Makefile, nsis/gvim.nsi Patch 7.4.2287 问题: The callback passed to ch_sendraw() is not used. 解决方案: Pass the read part, not the send part. (haya14busa, closes #1019) 相关文件: src/channel.c, src/testdir/test_channel.vim Patch 7.4.2288 问题: MS-Windows build instructions are clumsy. "dosbin" doesn't build. 解决方案: Add rename.bat. Fix building "dosbin". 相关文件: Makefile, Filelist, rename.bat Patch 7.4.2289 问题: When installing and $DESTDIR is set the icons probably won't be installed. 解决方案: Create the icon directories if $DESTDIR is not empty. (Danek Duvall) 相关文件: src/Makefile Patch 7.4.2290 问题: Compiler warning in tiny build. (Tony Mechelynck) 解决方案: Add #ifdef around infinity_str(). 相关文件: src/message.c Patch 7.4.2291 问题: printf() handles floats wrong when there is a sign. 解决方案: Fix placing the sign. Add tests. (Dominique Pelle) 相关文件: src/testdir/test_expr.vim, runtime/doc/eval.txt, src/message.c Patch 7.4.2292 (after 7.4.2291) 问题: Not all systems understand %F in printf(). 解决方案: Use %f. 相关文件: src/message.c Patch 7.4.2293 问题: Modelines in source code are inconsistent. 解决方案: Use the same line in most files. Add 'noet'. (Naruhiko Nishino) 相关文件: src/alloc.h, src/arabic.c, src/arabic.h, src/ascii.h, src/blowfish.c, src/buffer.c, src/channel.c, src/charset.c, src/crypt.c, src/crypt_zip.c, src/dict.c, src/diff.c, src/digraph.c, src/dosinst.c, src/dosinst.h, src/edit.c, src/eval.c, src/evalfunc.c, src/ex_cmds.c, src/ex_cmds.h, src/ex_cmds2.c, src/ex_docmd.c, src/ex_eval.c, src/ex_getln.c, src/farsi.c, src/farsi.h, src/feature.h, src/fileio.c, src/fold.c, src/getchar.c, src/glbl_ime.cpp, src/glbl_ime.h, src/globals.h, src/gui.c, src/gui.h, src/gui_at_fs.c, src/gui_at_sb.c, src/gui_at_sb.h, src/gui_athena.c, src/gui_beval.c, src/gui_beval.h, src/gui_gtk.c, src/gui_gtk_f.c, src/gui_gtk_f.h, src/gui_gtk_vms.h, src/gui_gtk_x11.c, src/gui_mac.c, src/gui_motif.c, src/gui_photon.c, src/gui_w32.c, src/gui_x11.c, src/gui_x11_pm.h, src/gui_xmdlg.c, src/gui_xmebw.c, src/gui_xmebw.h, src/gui_xmebwp.h, src/hangulin.c, src/hardcopy.c, src/hashtab.c, src/if_cscope.c, src/if_cscope.h, src/if_mzsch.c, src/if_mzsch.h, src/if_ole.cpp, src/if_perl.xs, src/if_perlsfio.c, src/if_python3.c, src/if_ruby.c, src/if_tcl.c, src/if_xcmdsrv.c, src/integration.c, src/integration.h, src/iscygpty.c, src/json.c, src/json_test.c, src/keymap.h, src/list.c, src/macros.h, src/main.c, src/mark.c, src/mbyte.c, src/memfile.c, src/memfile_test.c, src/memline.c, src/menu.c, src/message.c, src/message_test.c, src/misc1.c, src/misc2.c, src/move.c, src/nbdebug.c, src/nbdebug.h, src/netbeans.c, src/normal.c, src/ops.c, src/option.c, src/option.h, src/os_amiga.c, src/os_amiga.h, src/os_beos.c, src/os_beos.h, src/os_dos.h, src/os_mac.h, src/os_mac_conv.c, src/os_macosx.m, src/os_mint.h, src/os_mswin.c, src/os_qnx.c, src/os_qnx.h, src/os_unix.c, src/os_unix.h, src/os_unixx.h, src/os_vms.c, src/os_w32dll.c, src/os_w32exe.c, src/os_win32.c, src/os_win32.h, src/popupmnu.c, src/proto.h, src/pty.c, src/quickfix.c, src/regexp.c, src/regexp.h, src/regexp_nfa.c, src/screen.c, src/search.c, src/sha256.c, src/spell.c, src/spell.h, src/spellfile.c, src/structs.h, src/syntax.c, src/tag.c, src/term.c, src/term.h, src/termlib.c, src/ui.c, src/undo.c, src/uninstal.c, src/userfunc.c, src/version.c, src/version.h, src/vim.h, src/vim.rc, src/vimio.h, src/vimrun.c, src/winclip.c, src/window.c, src/workshop.c, src/workshop.h, src/wsdebug.c, src/wsdebug.h, src/xpm_w32.c Patch 7.4.2294 问题: Sign test fails on MS-Windows when using the distributed zip archives. 解决方案: Create dummy files instead of relying on files in the pixmaps directory. 相关文件: src/testdir/test_signs.vim Patch 7.4.2295 (after 7.4.2293) 问题: Cscope test fails. 解决方案: Avoid checking for specific line and column numbers. 相关文件: src/testdir/test_cscope.vim Patch 7.4.2296 问题: No tests for :undolist and "U" command. 解决方案: Add tests. (Dominique Pelle) 相关文件: src/testdir/test_undo.vim Patch 7.4.2297 问题: When starting a job that reads from a buffer and reaching the end, the job hangs. 解决方案: Close the pipe or socket when all lines were read. 相关文件: src/channel.c, src/testdir/test_channel.vim Patch 7.4.2298 问题: It is not possible to close the "in" part of a channel. 解决方案: Add ch_close_in(). 相关文件: src/evalfunc.c, src/channel.c, src/proto/channel.pro, src/testdir/test_channel.vim, runtime/doc/eval.txt, runtime/doc/channel.txt Patch 7.4.2299 问题: QuickFixCmdPre and QuickFixCmdPost autocommands are not always triggered. 解决方案: Also trigger on ":cexpr", ":cbuffer", etc. (Yegappan Lakshmanan) 相关文件: src/quickfix.c, src/testdir/test_quickfix.vim Patch 7.4.2300 问题: Get warning for deleting autocommand group when the autocommand using the group is scheduled for deletion. (Pavol Juhas) 解决方案: Check for deleted autocommand. 相关文件: src/fileio.c, src/testdir/test_autocmd.vim Patch 7.4.2301 问题: MS-Windows: some files remain after testing. 解决方案: Close the channel output file. Wait for the file handle to be closed before deleting the file. 相关文件: src/os_win32.c, src/testdir/test_channel.vim Patch 7.4.2302 问题: Default interface versions for MS-Windows are outdated. 解决方案: Use Active Perl 5.24, Python 3.5.2. Could only make it work with Ruby 1.9.2. 相关文件: src/bigvim.bat, src/bigvim64.bat, src/Make_mvc.mak Patch 7.4.2303 问题: When using "is" the mode isn't always updated. 解决方案: Redraw the command line. (Christian Brabandt) 相关文件: src/search.c Patch 7.4.2304 问题: In a timer callback the timer itself can't be found or stopped. (Thinca) 解决方案: Do not remove the timer from the list, remember whether it was freed. 相关文件: src/ex_cmds2.c, src/testdir/test_timers.vim Patch 7.4.2305 问题: Marks, writefile and nested function tests are old style. 解决方案: Turn them into new style tests. (Yegappan Lakshmanan) 相关文件: src/testdir/Make_all.mak, src/testdir/test_marks.in, src/testdir/test_marks.ok, src/testdir/test_marks.vim, src/testdir/test_nested_function.in, src/testdir/test_nested_function.ok, src/testdir/test_nested_function.vim, src/testdir/test_writefile.in, src/testdir/test_writefile.ok, src/testdir/test_writefile.vim, src/Makefile Patch 7.4.2306 问题: Default value for 'langremap' is wrong. 解决方案: Set the right value. (Jürgen Krämer) Add a test. 相关文件: src/option.c, src/testdir/test_mapping.vim Patch 7.4.2307 问题: Several tests are old style. 解决方案: Turn them into new style tests. (Yegappan Lakshmanan) 相关文件: src/testdir/Make_all.mak, src/testdir/test102.in, src/testdir/test102.ok, src/testdir/test46.in, src/testdir/test46.ok, src/testdir/test81.in, src/testdir/test81.ok, src/testdir/test_charsearch.in, src/testdir/test_charsearch.ok, src/testdir/test_charsearch.vim, src/testdir/test_fnameescape.vim, src/testdir/test_substitute.vim, src/Makefile Patch 7.4.2308 (after 7.4.2307) 问题: Old charsearch test still listed in Makefile. 解决方案: Remove the line. 相关文件: src/testdir/Make_all.mak Patch 7.4.2309 问题: Crash when doing tabnext in a BufUnload autocmd. (Dominique Pelle) 解决方案: When detecting that the tab page changed, don't just abort but delete the window where w_buffer is NULL. 相关文件: src/window.c, src/testdir/test_tabpage.vim Patch 7.4.2310 (after 7.4.2304) 问题: Accessing freed memory when a timer does not repeat. 解决方案: Free after removing it. (Dominique Pelle) 相关文件: src/ex_cmds2.c Patch 7.4.2311 问题: Appveyor 64 bit build still using Python 3.4 解决方案: Switch to Python 3.5. (Ken Takata, closes #1032) 相关文件: appveyor.yml, src/appveyor.bat Patch 7.4.2312 问题: Crash when autocommand moves to another tab. (Dominique Pelle) 解决方案: When navigating to another window halfway the :edit command go back to the right window. 相关文件: src/buffer.c, src/ex_cmds.c, src/ex_getln.c, src/ex_docmd.c, src/window.c, src/proto/ex_getln.pro, src/testdir/test_tabpage.vim Patch 7.4.2313 问题: Crash when deleting an augroup and listing an autocommand. (Dominique Pelle) 解决方案: Make sure deleted_augroup is valid. 相关文件: src/fileio.c, src/testdir/test_autocmd.vim Patch 7.4.2314 问题: No error when deleting an augroup while it's the current one. 解决方案: Disallow deleting an augroup when it's the current one. 相关文件: src/fileio.c, src/testdir/test_autocmd.vim Patch 7.4.2315 问题: Insufficient testing for Normal mode commands. 解决方案: Add a big test. (Christian Brabandt, closes #1029) 相关文件: src/Makefile, src/testdir/Make_all.mak, src/testdir/test_normal.vim Patch 7.4.2316 问题: Channel sort test is flaky. 解决方案: Add a check the output has been read. 相关文件: src/testdir/test_channel.vim Patch 7.4.2317 (after 7.4.2315) 问题: Normal mode tests fail on MS-Windows. 解决方案: Do some tests only on Unix. Set 'fileformat' to "unix". 相关文件: src/testdir/test_normal.vim Patch 7.4.2318 问题: When 'incsearch' is not set CTRL-T and CTRL-G are not inserted as before. 解决方案: Move #ifdef and don't use goto. 相关文件: src/ex_getln.c Patch 7.4.2319 问题: No way for a system wide vimrc to stop loading defaults.vim. (Christian Hesse) 解决方案: Bail out of defaults.vim if skip_defaults_vim was set. 相关文件: runtime/defaults.vim Patch 7.4.2320 问题: Redraw problem when using 'incsearch'. 解决方案: Save the current view when deleting characters. (Christian Brabandt) Fix that the '" mark is set in the wrong position. Don't change the search start when using BS. 相关文件: src/ex_getln.c, src/normal.c, src/testdir/test_search.vim Patch 7.4.2321 问题: When a test is commented out we forget about it. 解决方案: Let a test throw an exception with "Skipped" and list skipped test functions. (Christian Brabandt) 相关文件: src/testdir/Makefile, src/testdir/runtest.vim, src/testdir/test_popup.vim, src/testdir/README.txt Patch 7.4.2322 问题: Access memory beyond the end of the line. (Dominique Pelle) 解决方案: Adjust the cursor column. 相关文件: src/move.c, src/testdir/test_normal.vim Patch 7.4.2323 问题: Using freed memory when using 'formatexpr'. (Dominique Pelle) 解决方案: Make a copy of 'formatexpr' before evaluating it. 相关文件: src/ops.c, src/testdir/test_normal.vim Patch 7.4.2324 问题: Crash when editing a new buffer and BufUnload autocommand wipes out the new buffer. (Norio Takagi) 解决方案: Don't allow wiping out this buffer. (partly by Hirohito Higashi) Move old style test13 into test_autocmd. Avoid ml_get error when editing a file. 相关文件: src/structs.h, src/buffer.c, src/ex_cmds.c, src/ex_docmd.c, src/window.c, src/testdir/test13.in, src/testdir/test13.ok, src/testdir/test_autocmd.vim, src/testdir/Make_all.mak, src/Makefile Patch 7.4.2325 (after 7.4.2324) 问题: Tiny build fails. 解决方案: Add #ifdef. 相关文件: src/buffer.c Patch 7.4.2326 问题: Illegal memory access when Visual selection starts in invalid position. (Dominique Pelle) 解决方案: Correct position when needed. 相关文件: src/normal.c, src/misc2.c, src/proto/misc2.pro Patch 7.4.2327 问题: Freeing a variable that is on the stack. 解决方案: Don't free res_tv or err_tv. (Ozaki Kiichi) 相关文件: src/channel.c Patch 7.4.2328 问题: Crash when BufWinLeave autocmd goes to another tab page. (Hirohito Higashi) 解决方案: Make close_buffer() go back to the right window. 相关文件: src/buffer.c, src/testdir/test_autocmd.vim Patch 7.4.2329 问题: Error for min() and max() contains %s. (Nikolai Pavlov) 解决方案: Pass the function name. (closes #1040) 相关文件: src/evalfunc.c, src/testdir/test_expr.vim Patch 7.4.2330 问题: Coverity complains about not checking curwin to be NULL. 解决方案: Use firstwin to avoid the warning. 相关文件: src/buffer.c Patch 7.4.2331 问题: Using CTRL-X CTRL-V to complete a command line from Insert mode does not work after entering an expression on the command line. 解决方案: Don't use "ccline" when not actually using a command line. (test by Hirohito Higashi) 相关文件: src/edit.c, src/ex_getln.c, src/proto/ex_getln.pro, src/testdir/test_popup.vim Patch 7.4.2332 问题: Crash when stop_timer() is called in a callback of a callback. Vim hangs when the timer callback uses too much time. 解决方案: Set tr_id to -1 when a timer is to be deleted. Don't keep calling callbacks forever. (Ozaki Kiichi) 相关文件: src/evalfunc.c, src/ex_cmds2.c, src/structs.h, src/proto/ex_cmds2.pro, src/testdir/test_timers.vim Patch 7.4.2333 问题: Outdated comments in test. 解决方案: Cleanup normal mode test. (Christian Brabandt) 相关文件: src/testdir/test_normal.vim Patch 7.4.2334 问题: On MS-Windows test_getcwd leaves Xtopdir behind. 解决方案: Set 'noswapfile'. (Michael Soyka) 相关文件: src/testdir/test_getcwd.in Patch 7.4.2335 问题: taglist() is slow. (Luc Hermitte) 解决方案: Check for CTRL-C less often when doing a linear search. (closes #1044) 相关文件: src/tag.c Patch 7.4.2336 问题: Running normal mode tests leave a couple of files behind. (Yegappan Lakshmanan) 解决方案: Delete the files. (Christian Brabandt) 相关文件: src/testdir/test_normal.vim Patch 7.4.2337 问题: taglist() is still slow. (Luc Hermitte) 解决方案: Check for CTRL-C less often when finding duplicates. 相关文件: src/tag.c Patch 7.4.2338 问题: Can't build with small features. (John Marriott) 解决方案: Nearly always define FEAT_TAG_BINS. 相关文件: src/feature.h, src/tag.c Patch 7.4.2339 问题: Tab page test fails when run as fake root. 解决方案: Check 'buftype' instead of 'filetype'. (James McCoy, closes #1042) 相关文件: src/testdir/test_tabpage.vim Patch 7.4.2340 问题: MS-Windows: Building with Ruby uses old version. 解决方案: Update to 2.2.X. Use clearer name for the API version. (Ken Takata) 相关文件: Makefile, src/INSTALLpc.txt, src/Make_cyg_ming.mak, src/Make_mvc.mak, src/bigvim.bat Patch 7.4.2341 问题: Tiny things. Test doesn't clean up properly. 解决方案: Adjust comment and white space. Restore option value. 相关文件: src/ex_cmds.c, src/message.c, src/testdir/test_autocmd.vim Patch 7.4.2342 问题: Typo in MS-Windows build script. 解决方案: change "w2" to "22". 相关文件: src/bigvim.bat Patch 7.4.2343 问题: Too many old style tests. 解决方案: Turn several into new style tests. (Yegappan Lakshmanan) 相关文件: src/testdir/Make_all.mak, src/testdir/test101.in, src/testdir/test101.ok, src/testdir/test18.in, src/testdir/test18.ok, src/testdir/test2.in, src/testdir/test2.ok, src/testdir/test21.in, src/testdir/test21.ok, src/testdir/test6.in, src/testdir/test6.ok, src/testdir/test_arglist.vim, src/testdir/test_charsearch.vim, src/testdir/test_fnameescape.vim, src/testdir/test_gf.vim, src/testdir/test_hlsearch.vim, src/testdir/test_smartindent.vim, src/testdir/test_tagjump.vim, src/Makefile Patch 7.4.2344 问题: The "Reading from channel output..." message can be unwanted. Appending to a buffer leaves an empty first line behind. 解决方案: Add the "out_msg" and "err_msg" options. Writing the first line overwrites the first, empty line. 相关文件: src/structs.h, src/channel.c, src/testdir/test_channel.vim, runtime/doc/channel.txt Patch 7.4.2345 (after 7.4.2340) 问题: For MinGW RUBY_API_VER_LONG isn't set correctly. Many default version numbers are outdated. 解决方案: Set RUBY_API_VER_LONG to RUBY_VER_LONG. Use latest stable releases for defaults. (Ken Takata) 相关文件: src/Make_cyg_ming.mak, src/Make_mvc.mak Patch 7.4.2346 问题: Autocommand test fails when run directly, passes when run as part of test_alot. 解决方案: Add command to make the cursor move. Close a tab page. 相关文件: src/testdir/test_autocmd.vim Patch 7.4.2347 问题: Crash when closing a buffer while Visual mode is active. (Dominique Pelle) 解决方案: Adjust the position before computing the number of lines. When closing the current buffer stop Visual mode. 相关文件: src/buffer.c, src/normal.c, src/testdir/test_normal.vim Patch 7.4.2348 问题: Crash on exit when EXITFREE is defined. (Dominique Pelle) 解决方案: Don't access curwin when exiting. 相关文件: src/buffer.c Patch 7.4.2349 问题: Valgrind reports using uninitialized memory. (Dominique Pelle) 解决方案: Check the length before checking for a NUL. 相关文件: src/message.c Patch 7.4.2350 问题: Test 86 and 87 fail with some version of Python. 解决方案: Unify "can't" and "cannot". Unify quotes. 相关文件: src/testdir/test86.in, src/testdir/test86.ok, src/testdir/test87.in, src/testdir/test87.ok Patch 7.4.2351 问题: Netbeans test fails when run from unpacked MS-Windows sources. 解决方案: Open README.txt instead of Makefile. 相关文件: src/testdir/test_netbeans.py, src/testdir/test_netbeans.vim Patch 7.4.2352 问题: Netbeans test fails in shadow directory. 解决方案: Also copy README.txt to the shadow directory. 相关文件: src/Makefile Patch 7.4.2353 问题: Not enough test coverage for Normal mode commands. 解决方案: Add more tests. (Christian Brabandt) 相关文件: src/testdir/test_normal.vim Patch 7.4.2354 问题: The example that explains nested backreferences does not work properly with the new regexp engine. (Harm te Hennepe) 解决方案: Also save the end position when adding a state. (closes #990) 相关文件: src/regexp_nfa.c, src/testdir/test_regexp_latin.vim Patch 7.4.2355 问题: Regexp fails to match when using "\>\)\?". (Ramel) 解决方案: When a state is already in the list, but addstate_here() is used and the existing state comes later, add the new state anyway. 相关文件: src/regexp_nfa.c, src/testdir/test_regexp_latin.vim Patch 7.4.2356 问题: Reading past end of line when using previous substitute pattern. (Dominique Pelle) 解决方案: Don't set "pat" only set "searchstr". 相关文件: src/search.c, src/testdir/test_search.vim Patch 7.4.2357 问题: Attempt to read history entry while not initialized. 解决方案: Skip when the index is negative. 相关文件: src/ex_getln.c Patch 7.4.2358 问题: Compiler warnings with Solaris Studio when using GTK3. (Danek Duvall) 解决方案: Define FUNC2GENERIC depending on the system. (Kazunobu Kuriyama) 相关文件: src/gui.h, src/gui_beval.c, src/gui_gtk_f.c Patch 7.4.2359 问题: Memory leak in timer_start(). 解决方案: Check the right field to be NULL. 相关文件: src/evalfunc.c, src/testdir/test_timers.vim Patch 7.4.2360 问题: Invalid memory access when formatting. (Dominique Pelle) 解决方案: Make sure cursor line and column are associated. 相关文件: src/misc1.c Patch 7.4.2361 问题: Checking for last_timer_id to overflow is not reliable. (Ozaki Kiichi) 解决方案: Check for the number not going up. 相关文件: src/ex_cmds2.c Patch 7.4.2362 问题: Illegal memory access with ":1@". (Dominique Pelle) 解决方案: Correct cursor column after setting the line number. Also avoid calling end_visual_mode() when not in Visual mode. 相关文件: src/ex_docmd.c, src/buffer.c Patch 7.4.2363 问题: Superfluous function prototypes. 解决方案: Remove them. 相关文件: src/regexp.c Patch 7.4.2364 问题: Sort test sometimes fails. 解决方案: Add it to the list of flaky tests. 相关文件: src/testdir/runtest.vim Patch 7.4.2365 问题: Needless line break. Confusing directory name. 解决方案: Remove line break. Prepend "../" to "tools". 相关文件: Makefile, src/normal.c Patch 7.4.2366 问题: MS-Windows gvim.exe does not have DirectX support. 解决方案: Add the DIRECTX to the script. 相关文件: src/bigvim.bat Patch 7.4.2367 (after 7.4.2364) 问题: Test runner misses a comma. 解决方案: Add the comma. 相关文件: src/testdir/runtest.vim Patch 8.0.0001 问题: Intro screen still mentions version7. (Paul) 解决方案: Change it to version8. 相关文件: src/version.c Patch 8.0.0002 问题: The netrw plugin does not work. 解决方案: Make it accept version 8.0. 相关文件: runtime/autoload/netrw.vim Patch 8.0.0003 问题: getwinvar() returns wrong Value of boolean and number options, especially non big endian systems. (James McCoy) 解决方案: Cast the pointer to long or int. (closes #1060) 相关文件: src/option.c, src/testdir/test_bufwintabinfo.vim Patch 8.0.0004 问题: A string argument for function() that is not a function name results in an error message with NULL. (Christian Brabandt) 解决方案: Use the argument for the error message. 相关文件: src/evalfunc.c, src/testdir/test_expr.vim Patch 8.0.0005 问题: Netbeans test fails with Python 3. (Jonathonf) 解决方案: Encode the string before sending it. (closes #1070) 相关文件: src/testdir/test_netbeans.py Patch 8.0.0006 问题: ":lb" is interpreted as ":lbottom" while the documentation says it means ":lbuffer". 解决方案: Adjust the order of the commands. (haya14busa, closes #1093) 相关文件: src/ex_cmds.h Patch 8.0.0007 问题: Vim 7.4 is still mentioned in a few places. 解决方案: Update to Vim 8. (Uncle Bill, closes #1094) 相关文件: src/INSTALLpc.txt, src/vimtutor, uninstal.txt Patch 8.0.0008 问题: Popup complete test is disabled. 解决方案: Enable the test and change the assert. (Hirohito Higashi) 相关文件: src/testdir/test_popup.vim Patch 8.0.0009 问题: Unnecessary workaround for AppVeyor. 解决方案: Revert patch 7.4.990. (Christian Brabandt) 相关文件: appveyor.yml Patch 8.0.0010 问题: Crash when editing file that starts with crypt header. (igor2x) 解决方案: Check for length of text. (Christian Brabandt) Add a test. 相关文件: src/fileio.c, src/testdir/test_crypt.vim, src/Makefile, src/testdir/Make_all.mak Patch 8.0.0011 问题: On OSX Test_pipe_through_sort_all() sometimes fails. 解决方案: Add the test to the list of flaky tests. 相关文件: src/testdir/runtest.vim Patch 8.0.0012 问题: Typos in comments. 解决方案: Change "its" to "it's". (Matthew Brener, closes #1088) 相关文件: src/evalfunc.c, src/main.aap, src/nbdebug.c, src/netbeans.c, src/quickfix.c, src/workshop.c, src/wsdebug.c Patch 8.0.0013 (after 8.0.0011) 问题: Missing comma in list. 解决方案: Add the comma. 相关文件: src/testdir/runtest.vim Patch 8.0.0014 问题: Crypt tests are old style. 解决方案: Convert to new style. 相关文件: src/testdir/test71.in, src/testdir/test71.ok, src/testdir/test71a.in, src/testdir/test_crypt.vim, src/Makefile, src/testdir/Make_all.mak Patch 8.0.0015 问题: Can't tell which part of a channel has "buffered" status. 解决方案: Add an optional argument to ch_status(). Let ch_info() also return "buffered" for out_status and err_status. 相关文件: src/evalfunc.c, src/channel.c, src/proto/channel.pro, src/testdir/test_channel.vim, runtime/doc/eval.txt Patch 8.0.0016 (after 8.0.0015) 问题: Build fails. 解决方案: Include missing change. 相关文件: src/eval.c Patch 8.0.0017 问题: Cannot get the number of the current quickfix or location list. 解决方案: Use the current list if "nr" in "what" is zero. (Yegappan Lakshmanan) Remove debug command from test. 相关文件: src/quickfix.c, src/testdir/test_quickfix.vim, runtime/doc/eval.txt Patch 8.0.0018 问题: When using ":sleep" channel input is not handled. 解决方案: When there is a channel check for input also when not in raw mode. Check every 100 msec. 相关文件: src/channel.c, src/proto/channel.pro, src/ui.c, src/proto/ui.pro, src/ex_docmd.c, src/os_amiga.c, src/proto/os_amiga.pro, src/os_unix.c, src/proto/os_unix.pro, src/os_win32.c, src/proto/os_win32.pro Patch 8.0.0019 问题: Test_command_count is old style. 解决方案: Turn it into a new style test. (Naruhiko Nishino) Use more assert functions. 相关文件: src/Makefile, src/testdir/Make_all.mak, src/testdir/test_alot.vim, src/testdir/test_autocmd.vim, src/testdir/test_command_count.in, src/testdir/test_command_count.ok, src/testdir/test_command_count.vim Patch 8.0.0020 问题: The regexp engines are not reentrant. 解决方案: Add regexec_T and save/restore the state when needed. 相关文件: src/regexp.c, src/regexp_nfa.c, src/testdir/test_expr.vim, runtime/doc/eval.txt, runtime/doc/change.txt Patch 8.0.0021 问题: In the GUI when redrawing the cursor it may be on the second half of a double byte character. 解决方案: Correct the cursor column. (Yasuhiro Matsumoto) 相关文件: src/screen.c Patch 8.0.0022 问题: If a channel in NL mode is missing the NL at the end the remaining characters are dropped. 解决方案: When the channel is closed use the remaining text. (Ozaki Kiichi) 相关文件: src/channel.c, src/testdir/test_channel.vim Patch 8.0.0023 问题: "gd" and "gD" may find a match in a comment or string. 解决方案: Ignore matches in comments and strings. (Anton Lindqvist) 相关文件: src/normal.c, src/testdir/test_goto.vim Patch 8.0.0024 问题: When the netbeans channel closes, "DETACH" is put in the output part. (Ozaki Kiichi) 解决方案: Write "DETACH" in the socket part. 相关文件: src/channel.c, src/testdir/test_netbeans.vim Patch 8.0.0025 问题: Inconsistent use of spaces vs tabs in gd test. 解决方案: Use tabs. (Anton Lindqvist) 相关文件: src/testdir/test_goto.vim Patch 8.0.0026 问题: Error format with %W, %C and %Z does not work. (Gerd Wachsmuth) 解决方案: Skip code when qf_multiignore is set. (Lcd) 相关文件: src/quickfix.c, src/testdir/test_quickfix.vim Patch 8.0.0027 问题: A channel is closed when reading on stderr or stdout fails, but there may still be something to read on another part. 解决方案: Turn ch_to_be_closed into a bitfield. (Ozaki Kiichi) 相关文件: src/channel.c, src/eval.c, src/structs.h, src/proto/channel.pro, src/testdir/test_channel.vim Patch 8.0.0028 问题: Superfluous semicolons. 解决方案: Remove them. (Ozaki Kiichi) 相关文件: src/ex_cmds2.c Patch 8.0.0029 问题: Code for MS-Windows is complicated because of the exceptions for old systems. 解决方案: Drop support for MS-Windows older than Windows XP. (Ken Takata) 相关文件: runtime/doc/gui_w32.txt, runtime/doc/os_win32.txt, runtime/doc/todo.txt, src/GvimExt/Makefile, src/Make_mvc.mak, src/evalfunc.c, src/ex_cmds.c, src/ex_docmd.c, src/gui_w32.c, src/if_cscope.c, src/misc1.c, src/misc2.c, src/option.c, src/os_mswin.c, src/os_win32.c, src/os_win32.h, src/proto/os_mswin.pro, src/proto/os_win32.pro, src/version.c Patch 8.0.0030 问题: Mouse mode is not automatically detected for tmux. 解决方案: Check for 'term' to be "tmux". (Michael Henry) 相关文件: src/os_unix.c Patch 8.0.0031 问题: After ":bwipeout" 'fileformat' is not set to the right default. 解决方案: Get the default from 'fileformats'. (Mike Williams) 相关文件: src/option.c, src/Makefile, src/testdir/test_fileformat.vim, src/testdir/test_alot.vim Patch 8.0.0032 问题: Tests may change the input file when something goes wrong. 解决方案: Avoid writing the input file. 相关文件: src/testdir/test51.in, src/testdir/test67.in, src/testdir/test97.in, src/testdir/test_tabpage.vim Patch 8.0.0033 问题: Cannot use overlapping positions with matchaddpos(). 解决方案: Check end of match. (Ozaki Kiichi) Add a test (Hirohito Higashi) 相关文件: src/screen.c, src/testdir/test_match.vim Patch 8.0.0034 问题: No completion for ":messages". 解决方案: Complete "clear" argument. (Hirohito Higashi) 相关文件: src/ex_docmd.c, src/ex_getln.c, src/proto/ex_docmd.pro, src/testdir/test_cmdline.vim, src/vim.h, runtime/doc/eval.txt, runtime/doc/map.txt Patch 8.0.0035 (after 7.4.2013) 问题: Order of matches for 'omnifunc' is messed up. (Danny Su) 解决方案: Do not set compl_curr_match when called from complete_check(). (closes #1168) 相关文件: src/edit.c, src/evalfunc.c, src/proto/edit.pro, src/search.c, src/spell.c, src/tag.c, src/testdir/test76.in, src/testdir/test76.ok, src/testdir/test_popup.vim, src/Makefile, src/testdir/Make_all.mak Patch 8.0.0036 问题: Detecting that a job has finished may take a while. 解决方案: Check for a finished job more often (Ozaki Kiichi) 相关文件: src/channel.c, src/os_unix.c, src/os_win32.c, src/proto/os_unix.pro, src/proto/os_win32.pro, src/testdir/test_channel.vim Patch 8.0.0037 问题: Get E924 when switching tabs. () 解决方案: Use win_valid_any_tab() instead of win_valid(). (Martin Vuille, closes #1167, closes #1171) 相关文件: src/quickfix.c, src/testdir/test_quickfix.vim Patch 8.0.0038 问题: OPEN_CHR_FILES not defined for FreeBSD using Debian userland files. 解决方案: Check for __FreeBSD_kernel__. (James McCoy, closes #1166) 相关文件: src/vim.h Patch 8.0.0039 问题: When Vim 8 reads an old viminfo and exits, the next time marks are not read from viminfo. (Ned Batchelder) 解决方案: Set a mark when it wasn't set before, even when the timestamp is zero. (closes #1170) 相关文件: src/mark.c, src/testdir/test_viminfo.vim Patch 8.0.0040 (after 8.0.0033) 问题: Whole line highlighting with matchaddpos() does not work. 解决方案: Check for zero length. (Hirohito Higashi) 相关文件: src/screen.c, src/testdir/test_match.vim Patch 8.0.0041 问题: When using Insert mode completion but not actually inserting anything an undo item is still created. (Tommy Allen) 解决方案: Do not call stop_arrow() when not inserting anything. 相关文件: src/edit.c, src/testdir/test_popup.vim Patch 8.0.0042 (after 8.0.0041) 问题: When using Insert mode completion with 'completeopt' containing "noinsert" change is not saved for undo. (Tommy Allen) 解决方案: Call stop_arrow() before inserting for pressing Enter. 相关文件: src/edit.c, src/testdir/test_popup.vim Patch 8.0.0043 (after 8.0.0041) 问题: When using Insert mode completion with 'completeopt' containing "noinsert" with CTRL-N the change is not saved for undo. (Tommy Allen) 解决方案: Call stop_arrow() before inserting for any key. 相关文件: src/edit.c, src/testdir/test_popup.vim Patch 8.0.0044 问题: In diff mode the cursor may end up below the last line, resulting in an ml_get error. 解决方案: Check the line to be valid. 相关文件: src/move.c, src/diff.c, src/proto/diff.pro, src/testdir/test_diffmode.vim Patch 8.0.0045 问题: Calling job_stop() right after job_start() does not work. 解决方案: Block signals while fork is still busy. (Ozaki Kiichi, closes #1155) 相关文件: src/auto/configure, src/config.h.in, src/configure.in, src/os_unix.c, src/testdir/test_channel.vim Patch 8.0.0046 问题: Using NUL instead of NULL. 解决方案: Change to NULL. (Dominique Pelle) 相关文件: src/ex_cmds.c, src/json.c Patch 8.0.0047 问题: Crash when using the preview window from an unnamed buffer. (lifepillar) 解决方案: Do not clear the wrong buffer. (closes #1200) 相关文件: src/popupmnu.c Patch 8.0.0048 问题: On Windows job_stop() stops cmd.exe, not the processes it runs. (Linwei) 解决方案: Iterate over all processes and terminate the one where the parent is the job process. (Yasuhiro Matsumoto, closes #1184) 相关文件: src/os_win32.c, src/structs.h Patch 8.0.0049 问题: When a match ends in part of concealed text highlighting, it might mess up concealing by resetting prev_syntax_id. 解决方案: Do not reset prev_syntax_id and add a test to verify. (Christian Brabandt, closes #1092) 相关文件: src/screen.c, src/testdir/test_matchadd_conceal.vim Patch 8.0.0050 问题: An exiting job is detected with a large latency. 解决方案: Check for pending job more often. (Ozaki Kiichi) Change the double loop in mch_inchar() into one. 相关文件: src/channel.c, src/os_unix.c, src/testdir/shared.vim, src/testdir/test_channel.vim Patch 8.0.0051 (after 8.0.0048) 问题: New code for job_stop() breaks channel test on AppVeyor. 解决方案: Revert the change. 相关文件: src/os_win32.c, src/structs.h Patch 8.0.0052 (after 8.0.0049) 问题: Conceal test passes even without the bug fix. 解决方案: Add a redraw command. (Christian Brabandt) 相关文件: src/testdir/test_matchadd_conceal.vim Patch 8.0.0053 (after 8.0.0047) 问题: No test for what 8.0.0047 fixes. 解决方案: Add a test. (Hirohito Higashi) 相关文件: src/testdir/test_popup.vim Patch 8.0.0054 (after 8.0.0051) 问题: On Windows job_stop() stops cmd.exe, not the processes it runs. (Linwei) 解决方案: Iterate over all processes and terminate the one where the parent is the job process. Now only when there is no job object. (Yasuhiro Matsumoto, closes #1203) 相关文件: src/os_win32.c Patch 8.0.0055 问题: Minor comment and style deficiencies. 解决方案: Update comments and fix style. 相关文件: src/buffer.c, src/misc2.c, src/os_unix.c Patch 8.0.0056 问题: When setting 'filetype' there is no check for a valid name. 解决方案: Only allow valid characters in 'filetype', 'syntax' and 'keymap'. 相关文件: src/option.c, src/testdir/test_options.vim Patch 8.0.0057 (after 8.0.0056) 问题: Tests fail without the 'keymap' features. 解决方案: Check for feature in test. 相关文件: src/testdir/test_options.vim Patch 8.0.0058 问题: Positioning of the popup menu is not good. 解决方案: Position it better. (Hirohito Higashi) 相关文件: src/popupmnu.c Patch 8.0.0059 问题: Vim does not build on VMS systems. 解决方案: Various changes for VMS. (Zoltan Arpadffy) 相关文件: src/json.c, src/macros.h, src/Make_vms.mms, src/os_unix.c, src/os_unix.h, src/os_vms.c, src/os_vms_conf.h, src/proto/os_vms.pro, src/testdir/Make_vms.mms Patch 8.0.0060 问题: When using an Ex command for 'keywordprg' it is escaped as with a shell command. (Romain Lafourcade) 解决方案: Escape for an Ex command. (closes #1175) 相关文件: src/normal.c, src/testdir/test_normal.vim Patch 8.0.0061 (after 8.0.0058) 问题: Compiler warning for unused variable. 解决方案: Add #ifdef. (John Marriott) 相关文件: src/popupmnu.c Patch 8.0.0062 问题: No digraph for HORIZONTAL ELLIPSIS. 解决方案: Use ",.". (Hans Ginzel, closes #1226) 相关文件: src/digraph.c, runtime/doc/digraph.txt Patch 8.0.0063 问题: Compiler warning for comparing with unsigned. (Zoltan Arpadffy) 解决方案: Change <= to ==. 相关文件: src/undo.c Patch 8.0.0064 (after 8.0.0060) 问题: Normal test fails on MS-Windows. 解决方案: Don't try using an illegal file name. 相关文件: src/testdir/test_normal.vim Patch 8.0.0065 (after 8.0.0056) 问题: Compiler warning for unused function in tiny build. (Tony Mechelynck) 解决方案: Add #ifdef. 相关文件: src/option.c Patch 8.0.0066 问题: when calling an operator function when 'linebreak' is set, it is internally reset before calling the operator function. 解决方案: Restore 'linebreak' before calling op_function(). (Christian Brabandt) 相关文件: src/normal.c, src/testdir/test_normal.vim Patch 8.0.0067 问题: VMS has a problem with infinity. 解决方案: Avoid an overflow. (Zoltan Arpadffy) 相关文件: src/json.c, src/macros.h Patch 8.0.0068 问题: Checking did_throw after executing autocommands is wrong. (Daniel Hahler) 解决方案: Call aborting() instead, and only when autocommands were executed. 相关文件: src/quickfix.c, src/if_cscope.c, src/testdir/test_quickfix.vim Patch 8.0.0069 问题: Compiler warning for self-comparison. 解决方案: Define ONE_WINDOW and add #ifdef. 相关文件: src/globals.h, src/buffer.c, src/ex_docmd.c, src/move.c, src/screen.c, src/quickfix.c, src/window.c Patch 8.0.0070 问题: Tests referred in Makefile that no longer exist. 解决方案: Remove test71 and test74 entries. (Michael Soyka) 相关文件: src/testdir/Mak_ming.mak Patch 8.0.0071 问题: Exit value from a shell command is wrong. (Hexchain Tong) 解决方案: Do not check for ended jobs while waiting for a shell command. (ichizok, closes #1196) 相关文件: src/os_unix.c Patch 8.0.0072 问题: MS-Windows: Crash with long font name. (Henry Hu) 解决方案: Fix comparing with LF_FACESIZE. (Ken Takata, closes #1243) 相关文件: src/os_mswin.c Patch 8.0.0073 (after 8.0.0069) 问题: More comparisons between firstwin and lastwin. 解决方案: Use ONE_WINDOW for consistency. (Hirohito Higashi) 相关文件: src/buffer.c, src/ex_cmds.c, src/ex_docmd.c, src/option.c, src/window.c Patch 8.0.0074 问题: Cannot make Vim fail on an internal error. 解决方案: Add IEMSG() and IEMSG2(). (Dominique Pelle) Avoid reporting an internal error without mentioning where. 相关文件: src/globals.h, src/blowfish.c, src/dict.c, src/edit.c, src/eval.c, src/evalfunc.c, src/ex_eval.c, src/getchar.c, src/gui_beval.c, src/gui_w32.c, src/hangulin.c, src/hashtab.c, src/if_cscope.c, src/json.c, src/memfile.c, src/memline.c, src/message.c, src/misc2.c, src/option.c, src/quickfix.c, src/regexp.c, src/spell.c, src/undo.c, src/userfunc.c, src/vim.h, src/window.c, src/proto/misc2.pro, src/proto/message.pro, src/Makefile Patch 8.0.0075 问题: Using number for exception type lacks type checking. 解决方案: Use an enum. 相关文件: src/structs.h, src/ex_docmd.c, src/ex_eval.c, src/proto/ex_eval.pro Patch 8.0.0076 问题: Channel log has double parens ()(). 解决方案: Remove () for write_buf_line. (Yasuhiro Matsumoto) 相关文件: src/channel.c Patch 8.0.0077 问题: The GUI code is not tested by Travis. 解决方案: Install the virtual framebuffer. 相关文件: .travis.yml Patch 8.0.0078 问题: Accessing freed memory in quickfix. 解决方案: Reset pointer when freeing 'errorformat'. (Dominique Pelle) 相关文件: src/quickfix.c, src/testdir/test_quickfix.vim Patch 8.0.0079 问题: Accessing freed memory in quickfix. (Dominique Pelle) 解决方案: Do not free the current list when adding to it. 相关文件: src/quickfix.c, src/testdir/test_quickfix.vim Patch 8.0.0080 问题: The OS X build fails on Travis. 解决方案: Skip the virtual framebuffer on OS X. 相关文件: .travis.yml Patch 8.0.0081 问题: Inconsistent function names. 解决方案: Rename do_cscope to ex_cscope. Clean up comments. 相关文件: src/ex_cmds.h, src/if_cscope.c, src/ex_docmd.c, src/proto/if_cscope.pro Patch 8.0.0082 问题: Extension for configure should be ".ac". 解决方案: Rename configure.in to configure.ac. (James McCoy, closes #1173) 相关文件: src/configure.in, src/configure.ac, Filelist, src/Makefile, src/blowfish.c, src/channel.c, src/config.h.in, src/main.aap, src/os_unix.c, src/INSTALL, src/mysign Patch 8.0.0083 问题: Using freed memory with win_getid(). (Dominique Pelle) 解决方案: For the current tab use curwin. 相关文件: src/window.c, src/testdir/test_window_id.vim Patch 8.0.0084 问题: Using freed memory when adding to a quickfix list. (Dominique Pelle) 解决方案: Clear the directory name. 相关文件: src/quickfix.c, src/testdir/test_quickfix.vim Patch 8.0.0085 问题: Using freed memory with recursive function call. (Dominique Pelle) 解决方案: Make a copy of the function name. 相关文件: src/eval.c, src/testdir/test_nested_function.vim Patch 8.0.0086 问题: Cannot add a comment after ":hide". (Norio Takagi) 解决方案: Make it work, add a test. (Hirohito Higashi) 相关文件: src/Makefile, src/ex_cmds.h, src/ex_docmd.c, src/testdir/Make_all.mak, src/testdir/test_hide.vim Patch 8.0.0087 问题: When the channel callback gets job info the job may already have been deleted. (lifepillar) 解决方案: Do not delete the job when the channel is still useful. (ichizok, closes #1242, closes #1245) 相关文件: src/channel.c, src/eval.c, src/os_unix.c, src/os_win32.c, src/structs.h, src/testdir/test_channel.vim Patch 8.0.0088 问题: When a test fails in Setup or Teardown the problem is not reported. 解决方案: Add a try/catch. (Hirohito Higashi) 相关文件: src/testdir/runtest.vim Patch 8.0.0089 问题: Various problems with GTK 3.22.2. 解决方案: Fix the problems, add #ifdefs. (Kazunobu Kuriyama) 相关文件: src/gui_beval.c, src/gui_gtk.c, src/gui_gtk_x11.c Patch 8.0.0090 问题: Cursor moved after last character when using 'breakindent'. 解决方案: Fix the cursor positioning. Turn the breakindent test into new style. (Christian Brabandt) 相关文件: src/screen.c, src/testdir/Make_all.mak, src/testdir/test_breakindent.in, src/testdir/test_breakindent.ok, src/testdir/test_breakindent.vim, src/Makefile Patch 8.0.0091 问题: Test_help_complete sometimes fails in MS-Windows console. 解决方案: Use getcompletion() instead of feedkeys() and command line completion. (Hirohito Higashi) 相关文件: src/testdir/test_help_tagjump.vim Patch 8.0.0092 问题: C indenting does not support nested namespaces that C++ 17 has. 解决方案: Add check that passes double colon inside a name. (Pauli, closes #1214) 相关文件: src/misc1.c, src/testdir/test3.in, src/testdir/test3.ok Patch 8.0.0093 问题: Not using multiprocess build feature. 解决方案: Enable multiprocess build with MSVC 10. (Ken Takata) 相关文件: src/Make_mvc.mak Patch 8.0.0094 问题: When vimrun.exe is not found the error message is not properly encoded. 解决方案: Use utf-16 and MessageBoxW(). (Ken Takata) 相关文件: src/os_win32.c Patch 8.0.0095 问题: Problems with GTK 3.22.2 fixed in 3.22.4. 解决方案: Adjust the #ifdefs. (Kazunobu Kuriyama) 相关文件: src/gui_gtk_x11.c Patch 8.0.0096 问题: When the input or output is not a tty Vim appears to hang. 解决方案: Add the --ttyfail argument. Also add the "ttyin" and "ttyout" features to be able to check in Vim script. 相关文件: src/globals.h, src/structs.h, src/main.c, src/evalfunc.c, runtime/doc/starting.txt, runtime/doc/eval.txt Patch 8.0.0097 问题: When a channel callback consumes a lot of time Vim becomes unresponsive. (skywind) 解决方案: Bail out of checking channel readahead after 100 msec. 相关文件: src/os_unix.c, src/misc2.c, src/vim.h, src/os_win32.c, src/channel.c Patch 8.0.0098 (after 8.0.0097) 问题: Can't build on MS-Windows. 解决方案: Add missing parenthesis. 相关文件: src/vim.h Patch 8.0.0099 问题: Popup menu always appears above the cursor when it is in the lower half of the screen. (Matt Gardner) 解决方案: Compute the available space better. (Hirohito Higashi, closes #1241) 相关文件: src/popupmnu.c Patch 8.0.0100 问题: Options that are a file name may contain non-filename characters. 解决方案: Check for more invalid characters. 相关文件: src/option.c Patch 8.0.0101 问题: Some options are not strictly checked. 解决方案: Add flags for stricter checks. 相关文件: src/option.c Patch 8.0.0102 (after 8.0.0101) 问题: Cannot set 'dictionary' to a path. 解决方案: Allow for slash and backslash. Add a test (partly by Daisuke Suzuki, closes #1279, closes #1284) 相关文件: src/option.c, src/testdir/test_options.vim Patch 8.0.0103 问题: May not process channel readahead. (skywind) 解决方案: If there is readahead don't block on input. 相关文件: src/channel.c, src/proto/channel.pro, src/os_unix.c, src/os_win32.c, src/misc2.c Patch 8.0.0104 问题: Value of 'thesaurus' option not checked properly. 解决方案: Add P_NDNAME flag. (Daisuke Suzuki) 相关文件: src/option.c, src/testdir/test_options.vim Patch 8.0.0105 问题: When using ch_read() with zero timeout, can't tell the difference between reading an empty line and nothing available. 解决方案: Add ch_canread(). 相关文件: src/evalfunc.c, src/channel.c, src/proto/channel.pro, src/testdir/test_channel.vim, src/testdir/shared.vim, runtime/doc/eval.txt, runtime/doc/channel.txt Patch 8.0.0106 (after 8.0.0100) 问题: Cannot use a semicolon in 'backupext'. (Jeff) 解决方案: Allow for a few more characters when "secure" isn't set. 相关文件: src/option.c Patch 8.0.0107 问题: When reading channel output in a timer, messages may go missing. (Skywind) 解决方案: Add the "drop" option. Write error messages in the channel log. Don't have ch_canread() check for the channel being open. 相关文件: src/structs.h, src/channel.c, src/message.c, src/evalfunc.c, src/proto/channel.pro, runtime/doc/channel.txt Patch 8.0.0108 (after 8.0.0107) 问题: The channel "drop" option is not tested. 解决方案: Add a test. 相关文件: src/testdir/test_channel.vim Patch 8.0.0109 问题: Still checking if memcmp() exists while every system should have it now. 解决方案: Remove vim_memcmp(). (James McCoy, closes #1295) 相关文件: src/config.h.in, src/configure.ac, src/misc2.c, src/os_vms_conf.h, src/osdef1.h.in, src/search.c, src/tag.c, src/vim.h Patch 8.0.0110 问题: Drop command doesn't use existing window. 解决方案: Check the window width properly. (Hirohito Higashi) 相关文件: src/buffer.c, src/testdir/test_tabpage.vim Patch 8.0.0111 问题: The :history command is not tested. 解决方案: Add tests. (Dominique Pelle) 相关文件: runtime/doc/cmdline.txt, src/testdir/test_history.vim Patch 8.0.0112 问题: Tests 92 and 93 are old style. 解决方案: Make test92 and test93 new style. (Hirohito Higashi, closes #1289) 相关文件: src/Makefile, src/testdir/Make_all.mak, src/testdir/Make_vms.mms, src/testdir/test92.in, src/testdir/test92.ok, src/testdir/test93.in, src/testdir/test93.ok, src/testdir/test_mksession.vim, src/testdir/test_mksession_utf8.vim Patch 8.0.0113 问题: MS-Windows: message box to prompt for saving changes may appear on the wrong monitor. 解决方案: Adjust the CenterWindow function. (Ken Takata) 相关文件: src/gui_w32.c Patch 8.0.0114 问题: Coding style not optimal. 解决方案: Add spaces. (Ken Takata) 相关文件: src/gui_w32.c, src/os_mswin.c Patch 8.0.0115 问题: When building with Cygwin libwinpthread isn't found. 解决方案: Link winpthread statically. (jmmerz, closes #1255, closes #1256) 相关文件: src/Make_cyg_ming.mak Patch 8.0.0116 问题: When reading English help and using CTRl-] the language from 'helplang' is used. 解决方案: Make help tag jumps keep the language. (Tatsuki, test by Hirohito Higashi, closes #1249) 相关文件: src/tag.c, src/testdir/test_help_tagjump.vim Patch 8.0.0117 问题: Parallel make fails. (J. Lewis Muir) 解决方案: Make sure the objects directory exists. (closes #1259) 相关文件: src/Makefile Patch 8.0.0118 问题: "make proto" adds extra function prototype. 解决方案: Add #ifdef. 相关文件: src/misc2.c Patch 8.0.0119 问题: No test for using CTRL-R on the command line. 解决方案: Add a test. (Dominique Pelle) And some more. 相关文件: src/testdir/test_cmdline.vim Patch 8.0.0120 问题: Channel test is still flaky on OS X. 解决方案: Set the drop argument to "never". 相关文件: src/testdir/test_channel.vim Patch 8.0.0121 问题: Setting 'cursorline' changes the curswant column. (Daniel Hahler) 解决方案: Add the P_RWINONLY flag. (closes #1297) 相关文件: src/option.c, src/testdir/test_goto.vim Patch 8.0.0122 问题: Channel test is still flaky on OS X. 解决方案: Add a short sleep. 相关文件: src/testdir/test_channel.py Patch 8.0.0123 问题: Modern Sun compilers define "__sun" instead of "sun". 解决方案: Use __sun. (closes #1296) 相关文件: src/mbyte.c, src/pty.c, src/os_unixx.h, src/vim.h Patch 8.0.0124 问题: Internal error for assert_inrange(1, 1). 解决方案: Adjust number of allowed arguments. (Dominique Pelle) 相关文件: src/evalfunc.c, src/testdir/test_assert.vim Patch 8.0.0125 问题: Not enough testing for entering Ex commands. 解决方案: Add test for CTRL-\ e {expr}. (Dominique Pelle) 相关文件: src/testdir/test_cmdline.vim Patch 8.0.0126 问题: Display problem with 'foldcolumn' and a wide character. (esiegerman) 解决方案: Don't use "extra" but an allocated buffer. (Christian Brabandt, closes #1310) 相关文件: src/screen.c, src/testdir/Make_all.mak, src/Makefile, src/testdir/test_display.vim Patch 8.0.0127 问题: Cancelling completion still inserts text when formatting is done for 'textwidth'. (lacygoill) 解决方案: Don't format when CTRL-E was typed. (Hirohito Higashi, closes #1312) 相关文件: src/edit.c, src/testdir/test_popup.vim Patch 8.0.0128 (after 8.0.0126) 问题: Display test fails on MS-Windows. 解决方案: Set 'isprint' to "@". 相关文件: src/testdir/test_display.vim Patch 8.0.0129 问题: Parallel make still doesn't work. (Lewis Muir) 解决方案: Define OBJ_MAIN. 相关文件: src/Makefile Patch 8.0.0130 问题: Configure uses "ushort" while the Vim code doesn't. 解决方案: Use "unsigned short" instead. (Fredrik Fornwall, closes #1314) 相关文件: src/configure.ac, src/auto/configure Patch 8.0.0131 问题: Not enough test coverage for syntax commands. 解决方案: Add more tests. (Dominique Pelle) 相关文件: src/testdir/test_syntax.vim Patch 8.0.0132 (after 8.0.0131) 问题: Test fails because of using :finish. 解决方案: Change to return. 相关文件: src/testdir/test_syntax.vim Patch 8.0.0133 问题: "2;'(" causes ml_get errors in an empty buffer. (Dominique Pelle) 解决方案: Check the cursor line earlier. 相关文件: src/ex_docmd.c, src/testdir/test_cmdline.vim Patch 8.0.0134 问题: Null pointer access reported by UBsan. 解决方案: Check curwin->w_buffer is not NULL. (Yegappan Lakshmanan) 相关文件: src/ex_cmds.c Patch 8.0.0135 问题: An address relative to the current line, ":.,+3y", does not work properly on a closed fold. (Efraim Yawitz) 解决方案: Correct for including the closed fold. (Christian Brabandt) 相关文件: src/ex_docmd.c, src/testdir/test_fold.vim, src/testdir/Make_all.mak, src/Makefile Patch 8.0.0136 问题: When using indent folding and changing indent the wrong fold is opened. (Jonathan Fudger) 解决方案: Open the fold under the cursor a bit later. (Christian Brabandt) 相关文件: src/ops.c, src/testdir/test_fold.vim Patch 8.0.0137 问题: When 'maxfuncdepth' is set above 200 the nesting is limited to 200. (Brett Stahlman) 解决方案: Allow for Ex command recursion depending on 'maxfuncdepth'. 相关文件: src/ex_docmd.c, src/testdir/test_nested_function.vim Patch 8.0.0138 (after 8.0.0137) 问题: Small build fails. 解决方案: Add #ifdef. 相关文件: src/ex_docmd.c Patch 8.0.0139 (after 8.0.0135) 问题: Warning for unused argument. 解决方案: Add UNUSED. 相关文件: src/ex_docmd.c Patch 8.0.0140 问题: Pasting inserted text in Visual mode does not work properly. (Matthew Malcomson) 解决方案: Stop Visual mode before stuffing the inserted text. (Christian Brabandt, from neovim #5709) 相关文件: src/ops.c, src/testdir/test_visual.vim Patch 8.0.0141 (after 8.0.0137) 问题: Nested function test fails on AppVeyor. 解决方案: Disable the test on Windows for now. 相关文件: src/testdir/test_nested_function.vim Patch 8.0.0142 问题: Normal colors are wrong with 'termguicolors'. 解决方案: Initialize to INVALCOLOR instead of zero. (Ben Jackson, closes #1344) 相关文件: src/syntax.c Patch 8.0.0143 问题: Line number of current buffer in getbufinfo() is wrong. 解决方案: For the current buffer use the current line number. (Ken Takata) 相关文件: src/evalfunc.c Patch 8.0.0144 问题: When using MSVC the GvimExt directory is cleaned twice. 解决方案: Remove the lines. (Ken Takata) 相关文件: src/Make_mvc.mak Patch 8.0.0145 问题: Running tests on MS-Windows is a little bit noisy. 解决方案: Redirect some output to "nul". (Ken Takata) 相关文件: src/testdir/Make_dos.mak Patch 8.0.0146 问题: When using 'termguicolors' on MS-Windows the RGB definition causes the colors to be wrong. 解决方案: Undefined RGB and use our own. (Gabriel Barta) 相关文件: src/term.c Patch 8.0.0147 问题: searchpair() does not work when 'magic' is off. (Chris Paul) 解决方案: Add \m in the pattern. (Christian Brabandt, closes #1341) 相关文件: src/evalfunc.c, src/testdir/test_search.vim Patch 8.0.0148 问题: When a C preprocessor statement has two line continuations the following line does not have the right indent. (Ken Takata) 解决方案: Add the indent of the previous continuation line. (Hirohito Higashi) 相关文件: src/misc1.c, src/testdir/test3.in, src/testdir/test3.ok Patch 8.0.0149 问题: ":earlier" and ":later" do not work after startup or reading the undo file. 解决方案: Use absolute time stamps instead of relative to the Vim start time. (Christian Brabandt, Pavel Juhas, closes #1300, closes #1254) 相关文件: src/testdir/test_undo.vim, src/undo.c Patch 8.0.0150 问题: When the pattern of :filter does not have a separator then completion of the command fails. 解决方案: Skip over the pattern. (Ozaki Kiichi, clodes #1299) 相关文件: src/ex_docmd.c, src/testdir/test_filter_cmd.vim Patch 8.0.0151 问题: To pass buffer content to system() and systemlist() one has to first create a string or list. 解决方案: Allow passing a buffer number. (LemonBoy, closes #1240) 相关文件: runtime/doc/eval.txt, src/Makefile, src/evalfunc.c, src/testdir/Make_all.mak, src/testdir/test_system.vim Patch 8.0.0152 问题: Running the channel test creates channellog. 解决方案: Delete the debug line. 相关文件: src/testdir/test_channel.vim Patch 8.0.0153 (after 8.0.0151) 问题: system() test fails on MS-Windows. 解决方案: Deal with extra space and CR. 相关文件: src/testdir/test_system.vim Patch 8.0.0154 (after 8.0.0151) 问题: system() test fails on OS/X. 解决方案: Deal with leading spaces. 相关文件: src/testdir/test_system.vim Patch 8.0.0155 问题: When sorting zero elements a NULL pointer is passed to qsort(), which ubsan warns for. 解决方案: Don't call qsort() if there are no elements. (Dominique Pelle) 相关文件: src/syntax.c Patch 8.0.0156 问题: Several float functions are not covered by tests. 解决方案: Add float tests. (Dominique Pelle) 相关文件: src/Makefile, src/testdir/test_alot.vim, src/testdir/test_float_func.vim Patch 8.0.0157 问题: No command line completion for ":syntax spell" and ":syntax sync". 解决方案: Implement the completion. (Dominique Pelle) 相关文件: src/syntax.c, src/testdir/test_syntax.vim Patch 8.0.0158 (after 8.0.0156) 问题: On MS-Windows some float functions return a different value when passed unusual values. strtod() doesn't work for "inf" and "nan". 解决方案: Accept both results. Fix str2float() for MS-Windows. Also reorder assert function arguments. 相关文件: src/testdir/test_float_func.vim, src/eval.c Patch 8.0.0159 问题: Using a NULL pointer when using feedkeys() to trigger drawing a tabline. 解决方案: Skip drawing a tabline if TabPageIdxs is NULL. (Dominique Pelle) Also fix recursing into getcmdline() from the cmd window. 相关文件: src/screen.c, src/ex_getln.c Patch 8.0.0160 问题: EMSG() is sometimes used for internal errors. 解决方案: Change them to IEMSG(). (Dominique Pelle) And a few more. 相关文件: src/regexp_nfa.c, src/channel.c, src/eval.c Patch 8.0.0161 (after 8.0.0159) 问题: Build fails when using small features. 解决方案: Update #ifdef for using save_ccline. (Hirohito Higashi) 相关文件: src/ex_getln.c Patch 8.0.0162 问题: Build error on Fedora 23 with small features and gnome2. 解决方案: Undefine ngettext(). (Hirohito Higashi) 相关文件: src/gui_gtk.c, src/gui_gtk_x11.c Patch 8.0.0163 问题: Ruby 2.4 no longer supports rb_cFixnum. 解决方案: move rb_cFixnum into an #ifdef. (Kazuki Sakamoto, closes #1365) 相关文件: src/if_ruby.c Patch 8.0.0164 问题: Outdated and misplaced comments. 解决方案: Fix the comments. 相关文件: src/charset.c, src/getchar.c, src/list.c, src/misc2.c, src/testdir/README.txt Patch 8.0.0165 问题: Ubsan warns for integer overflow. 解决方案: Swap two conditions. (Dominique Pelle) 相关文件: src/regexp_nfa.c Patch 8.0.0166 问题: JSON with a duplicate key gives an internal error. (Lcd) 解决方案: Give a normal error. Avoid an error when parsing JSON from a remote client fails. 相关文件: src/evalfunc.c, src/json.c, src/channel.c, src/testdir/test_json.vim Patch 8.0.0167 问题: str2nr() and str2float() do not always work with negative values. 解决方案: Be more flexible about handling signs. (LemonBoy, closes #1332) Add more tests. 相关文件: src/evalfunc.c, src/testdir/test_float_func.vim, src/testdir/test_functions.vim, src/testdir/test_alot.vim, src/Makefile Patch 8.0.0168 问题: Still some float functionality is not covered by tests. 解决方案: Add more tests. (Dominique Pelle, closes #1364) 相关文件: src/testdir/test_float_func.vim Patch 8.0.0169 问题: For complicated string json_decode() may run out of stack space. 解决方案: Change the recursive solution into an iterative solution. 相关文件: src/json.c Patch 8.0.0170 (after 8.0.0169) 问题: Channel test fails for using freed memory. 解决方案: Fix memory use in json_decode(). 相关文件: src/json.c Patch 8.0.0171 问题: JS style JSON does not support single quotes. 解决方案: Allow for single quotes. (Yasuhiro Matsumoto, closes #1371) 相关文件: src/json.c, src/testdir/test_json.vim, src/json_test.c, runtime/doc/eval.txt Patch 8.0.0172 (after 8.0.0159) 问题: The command selected in the command line window is not executed. (Andrey Starodubtsev) 解决方案: Save and restore the command line at a lower level. (closes #1370) 相关文件: src/ex_getln.c, src/testdir/test_history.vim Patch 8.0.0173 问题: When compiling with EBCDIC defined the build fails. (Yaroslav Kuzmin) 解决方案: Move sortFunctions() to the right file. Avoid warning for redefining __SUSV3. 相关文件: src/eval.c, src/evalfunc.c, src/os_unixx.h Patch 8.0.0174 问题: For completion "locale -a" is executed on MS-Windows, even though it most likely won't work. 解决方案: Skip executing "locale -a" on MS-Windows. (Ken Takata) 相关文件: src/ex_cmds2.c Patch 8.0.0175 问题: Setting language in gvim on MS-Windows does not work when libintl.dll is dynamically linked with msvcrt.dll. 解决方案: Use putenv() from libintl as well. (Ken Takata, closes #1082) 相关文件: src/mbyte.c, src/misc1.c, src/os_win32.c, src/proto/os_win32.pro, src/vim.h Patch 8.0.0176 问题: Using :change in between :function and :endfunction fails. 解决方案: Recognize :change inside a function. (ichizok, closes #1374) 相关文件: src/userfunc.c, src/testdir/test_viml.vim Patch 8.0.0177 问题: When opening a buffer on a directory and inside a try/catch then the BufEnter event is not triggered. 解决方案: Return NOTDONE from readfile() for a directory and deal with the three possible return values. (Justin M. Keyes, closes #1375, closes #1353) 相关文件: src/buffer.c, src/ex_cmds.c, src/ex_docmd.c, src/fileio.c, src/memline.c Patch 8.0.0178 问题: test_command_count may fail when a previous test interferes, seen on MS-Windows. 解决方案: Run it separately. 相关文件: src/testdir/test_alot.vim, src/testdir/Make_all.mak Patch 8.0.0179 问题: 'formatprg' is a global option but the value may depend on the type of buffer. (Sung Pae) 解决方案: Make 'formatprg' global-local. (closes #1380) 相关文件: src/structs.h, src/option.h, src/option.c, src/normal.c, runtime/doc/options.txt, src/testdir/test_normal.vim Patch 8.0.0180 问题: Error E937 is used both for duplicate key in JSON and for trying to delete a buffer that is in use. 解决方案: Rename the JSON error to E938. (Norio Takagi, closes #1376) 相关文件: src/json.c, src/testdir/test_json.vim Patch 8.0.0181 问题: When 'cursorbind' and 'cursorcolumn' are both on, the column highlignt in non-current windows is wrong. 解决方案: Add validate_cursor(). (Masanori Misono, closes #1372) 相关文件: src/move.c Patch 8.0.0182 问题: When 'cursorbind' and 'cursorline' are set, but 'cursorcolumn' is not, then the cursor line highlighting is not updated. (Hirohito Higashi) 解决方案: Call redraw_later() with NOT_VALID. 相关文件: src/move.c Patch 8.0.0183 问题: Ubsan warns for using a pointer that is not aligned. 解决方案: First copy the address. (Yegappan Lakshmanan) 相关文件: src/channel.c Patch 8.0.0184 问题: When in Ex mode and an error is caught by try-catch, Vim still exits with a non-zero exit code. 解决方案: Don't set ex_exitval when inside a try-catch. (partly by Christian Brabandt) 相关文件: src/message.c, src/testdir/test_system.vim Patch 8.0.0185 (after 8.0.0184) 问题: The system() test fails on MS-Windows. 解决方案: Skip the test on MS-Windows. 相关文件: src/testdir/test_system.vim Patch 8.0.0186 问题: The error message from assert_notequal() is confusing. 解决方案: Only mention the expected value. 相关文件: src/eval.c, src/testdir/test_assert.vim Patch 8.0.0187 问题: Building with a new Ruby version fails. 解决方案: Use ruby_sysinit() instead of NtInitialize(). (Tomas Volf, closes #1382) 相关文件: src/if_ruby.c Patch 8.0.0188 (after 8.0.0182) 问题: Using NOT_VALID for redraw_later() to update the cursor line/column highlighting is not efficient. 解决方案: Call validate_cursor() when 'cul' or 'cuc' is set. 相关文件: src/move.c Patch 8.0.0189 问题: There are no tests for the :profile command. 解决方案: Add tests. (Dominique Pelle, closes #1383) 相关文件: src/Makefile, src/testdir/Make_all.mak, src/testdir/test_profile.vim Patch 8.0.0190 问题: Detecting duplicate tags uses a slow linear search. 解决方案: Use a much faster hash table solution. (James McCoy, closes #1046) But don't add hi_keylen, it makes hash tables 50% bigger. 相关文件: src/tag.c Patch 8.0.0191 (after 8.0.0187) 问题: Some systems do not have ruby_sysinit(), causing the build to fail. 解决方案: Clean up how ruby_sysinit() and NtInitialize() are used. (Taro Muraoka) 相关文件: src/if_ruby.c Patch 8.0.0192 (after 8.0.0190) 问题: Build fails with tiny features. 解决方案: Change #ifdef for hash_clear(). Avoid warning for unused argument. 相关文件: src/hashtab.c, src/if_cscope.c Patch 8.0.0193 (after 8.0.0188) 问题: Accidentally removed #ifdef. 解决方案: Put it back. (Masanori Misono) 相关文件: src/move.c Patch 8.0.0194 (after 8.0.0189) 问题: Profile tests fails if total and self time are equal. 解决方案: Make one time optional. 相关文件: src/testdir/test_profile.vim Patch 8.0.0195 (after 8.0.0190) 问题: Jumping to a tag that is a static item in the current file fails. (Kazunobu Kuriyama) 解决方案: Make sure the first byte of the tag key is not NUL. (Suggested by James McCoy, closes #1387) 相关文件: src/tag.c, src/testdir/test_tagjump.vim Patch 8.0.0196 (after 8.0.0194) 问题: The test for :profile is slow and does not work on MS-Windows. 解决方案: Use the "-es" argument. (Dominique Pelle) Swap single and double quotes for system() 相关文件: src/testdir/test_profile.vim Patch 8.0.0197 问题: On MS-Windows the system() test skips a few parts. 解决方案: Swap single and double quotes for the command. 相关文件: src/testdir/test_system.vim Patch 8.0.0198 问题: Some syntax arguments take effect even after "if 0". (Taylor Venable) 解决方案: Properly skip the syntax statements. Make "syn case" and "syn conceal" report the current state. Fix that "syn clear" didn't reset the conceal flag. Add tests for :syntax skipping properly. 相关文件: src/syntax.c, src/testdir/test_syntax.vim Patch 8.0.0199 问题: Warning for an unused parameter when the libcall feature is disabled. Warning for a function type cast when compiling with -pedantic. 解决方案: Add UNUSED. Use a different type cast. (Damien Molinier) 相关文件: src/evalfunc.c, src/os_unix.c Patch 8.0.0200 问题: Some syntax arguments are not tested. 解决方案: Add more syntax command tests. 相关文件: src/testdir/test_syntax.vim Patch 8.0.0201 问题: When completing a group name for a highlight or syntax command cleared groups are included. 解决方案: Skip groups that have been cleared. 相关文件: src/syntax.c, src/testdir/test_syntax.vim Patch 8.0.0202 问题: No test for invalid syntax group name. 解决方案: Add a test for group name error and warning. 相关文件: src/testdir/test_syntax.vim Patch 8.0.0203 问题: Order of complication flags is sometimes wrong. 解决方案: Put interface-specific flags before ALL_CFLAGS. (idea by Yousong Zhou, closes #1100) 相关文件: src/Makefile Patch 8.0.0204 问题: Compiler warns for uninitialized variable. (Tony Mechelynck) 解决方案: When skipping set "id" to -1. 相关文件: src/syntax.c Patch 8.0.0205 问题: After :undojoin some commands don't work properly, such as :redo. (Matthew Malcomson) 解决方案: Don't set curbuf->b_u_curhead. (closes #1390) 相关文件: src/undo.c, src/testdir/test_undo.vim Patch 8.0.0206 问题: Test coverage for :retab insufficient. 解决方案: Add test for :retab. (Dominique Pelle, closes #1391) 相关文件: src/Makefile, src/testdir/Make_all.mak, src/testdir/test_retab.vim Patch 8.0.0207 问题: Leaking file descriptor when system() cannot find the buffer. (Coverity) 解决方案: Close the file descriptor. (Dominique Pelle, closes #1398) 相关文件: src/evalfunc.c Patch 8.0.0208 问题: Internally used commands for CTRL-Z and mouse click end up in history. (Matthew Malcomson) 解决方案: Use do_cmdline_cmd() instead of stuffing them in the readahead buffer. (James McCoy, closes #1395) 相关文件: src/edit.c, src/normal.c Patch 8.0.0209 问题: When using :substitute with the "c" flag and 'cursorbind' is set the cursor is not updated in other windows. 解决方案: Call do_check_cursorbind(). (Masanori Misono) 相关文件: src/ex_cmds.c Patch 8.0.0210 问题: Vim does not support bracketed paste, as implemented by xterm and other terminals. 解决方案: Add t_BE, t_BD, t_PS and t_PE. 相关文件: src/term.c, src/term.h, src/option.c, src/misc2.c, src/keymap.h, src/edit.c, src/normal.c, src/evalfunc.c, src/getchar.c, src/vim.h, src/proto/edit.pro, runtime/doc/term.txt Patch 8.0.0211 (after 8.0.0210) 问题: Build fails if the multi-byte feature is disabled. 解决方案: Change #ifdef around ins_char_bytes. 相关文件: src/misc1.c Patch 8.0.0212 问题: The buffer used to store a key name theoretically could be too small. (Coverity) 解决方案: Count all possible modifier characters. Add a check for the length just in case. 相关文件: src/keymap.h, src/misc2.c Patch 8.0.0213 问题: The Netbeans "specialKeys" command does not check if the argument fits in the buffer. (Coverity) 解决方案: Add a length check. 相关文件: src/netbeans.c Patch 8.0.0214 问题: Leaking memory when syntax cluster id is unknown. (Coverity) 解决方案: Free the memory. 相关文件: src/syntax.c Patch 8.0.0215 问题: When a Cscope line contains CTRL-L a NULL pointer may be used. (Coverity) 解决方案: Don't check for an emacs tag in a cscope line. 相关文件: src/tag.c Patch 8.0.0216 问题: When decoding JSON with a JS style object the JSON test may use a NULL pointer. (Coverity) 解决方案: Check for a NULL pointer. 相关文件: src/json.c, src/json_test.c Patch 8.0.0217 (after 8.0.0215) 问题: Build fails without the cscope feature. 解决方案: Add #ifdef. 相关文件: src/tag.c Patch 8.0.0218 问题: No command line completion for :cexpr, :cgetexpr, :caddexpr, etc. 解决方案: Make completion work. (Yegappan Lakshmanan) Add a test. 相关文件: src/ex_docmd.c, src/testdir/test_cmdline.vim Patch 8.0.0219 问题: Ubsan reports errors for integer overflow. 解决方案: Define macros for minimum and maximum values. Select an expression based on the value. (Mike Williams) 相关文件: src/charset.c, src/eval.c, src/evalfunc.c, src/structs.h, src/testdir/test_viml.vim Patch 8.0.0220 问题: Completion for :match does not show "none" and other missing highlight names. 解决方案: Skip over cleared entries before checking the index to be at the end. 相关文件: src/syntax.c, src/testdir/test_cmdline.vim Patch 8.0.0221 问题: Checking if PROTO is defined inside a function has no effect. 解决方案: Remove the check for PROTO. (Hirohito Higashi) 相关文件: src/misc1.c Patch 8.0.0222 问题: When a multi-byte character ends in a zero byte, putting blockwise text puts it before the character instead of after it. 解决方案: Use int instead of char for the character under the cursor. (Luchr, closes #1403) Add a test. 相关文件: src/ops.c, src/testdir/test_put.vim, src/Makefile, src/testdir/test_alot.vim Patch 8.0.0223 问题: Coverity gets confused by the flags passed to find_tags() and warns about uninitialized variable. 解决方案: Disallow using cscope and help tags at the same time. 相关文件: src/tag.c Patch 8.0.0224 问题: When 'fileformats' is changed in a BufReadPre auto command, it does not take effect in readfile(). (Gary Johnson) 解决方案: Check the value of 'fileformats' after executing auto commands. (Christian Brabandt) 相关文件: src/fileio.c, src/testdir/test_fileformat.vim Patch 8.0.0225 问题: When a block is visually selected and put is used on the end of the selection only one line is changed. 解决方案: Check for the end properly. (Christian Brabandt, neovim issue 5781) 相关文件: src/ops.c, src/testdir/test_put.vim Patch 8.0.0226 问题: The test for patch 8.0.0224 misses the CR characters and passes even without the fix. (Christian Brabandt) 解决方案: Use double quotes and \<CR>. 相关文件: src/testidr/test_fileformat.vim Patch 8.0.0227 问题: Crash when 'fileformat' is forced to "dos" and the first line in the file is empty and does not have a CR character. 解决方案: Don't check for CR before the start of the buffer. 相关文件: src/fileio.c, src/testidr/test_fileformat.vim Patch 8.0.0228 (after 8.0.0210) 问题: When pasting test in an xterm on the command line it is surrounded by <PasteStart> and <PasteEnd>. (Johannes Kaltenbach) 解决方案: Add missing changes. 相关文件: src/ex_getln.c, src/term.c Patch 8.0.0229 (after 8.0.0179) 问题: When freeing a buffer the local value of the 'formatprg' option is not cleared. 解决方案: Add missing change. 相关文件: src/buffer.c Patch 8.0.0230 (after 8.0.0210) 问题: When using bracketed paste line breaks are not respected. 解决方案: Turn CR characters into a line break if the text is being inserted. (closes #1404) 相关文件: src/edit.c Patch 8.0.0231 问题: There are no tests for bracketed paste mode. 解决方案: Add a test. Fix repeating with "normal .". 相关文件: src/edit.c, src/testdir/test_paste.vim, src/Makefile, src/testdir/Make_all.mak Patch 8.0.0232 问题: Pasting in Insert mode does not work when bracketed paste is used and 'esckeys' is off. 解决方案: When 'esckeys' is off disable bracketed paste in Insert mode. 相关文件: src/edit.c Patch 8.0.0233 (after 8.0.0231) 问题: The paste test fails if the GUI is being used. 解决方案: Skip the test in the GUI. 相关文件: src/testdir/test_paste.vim Patch 8.0.0234 (after 8.0.0225) 问题: When several lines are visually selected and one of them is short, using put may cause a crash. (Axel Bender) 解决方案: Check for a short line. (Christian Brabandt) 相关文件: src/ops.c, src/testdir/test_put.vim Patch 8.0.0235 问题: Memory leak detected when running tests for diff mode. 解决方案: Free p_extra_free. 相关文件: src/screen.c Patch 8.0.0236 (after 8.0.0234) 问题: Gcc complains that a variable may be used uninitialized. Confusion between variable and label name. (John Marriott) 解决方案: Initialize it. Rename end to end_lnum. 相关文件: src/ops.c Patch 8.0.0237 问题: When setting wildoptions=tagfile the completion context is not set correctly. (desjardins) 解决方案: Check for EXPAND_TAGS_LISTFILES. (Christian Brabandt, closes #1399) 相关文件: src/ex_getln.c, src/testdir/test_cmdline.vim Patch 8.0.0238 问题: When using bracketed paste autoindent causes indent to be increased. 解决方案: Disable 'ai' and set 'paste' temporarily. (Ken Takata) 相关文件: src/edit.c, src/testdir/test_paste.vim Patch 8.0.0239 问题: The address sanitizer sometimes finds errors, but it needs to be run manually. 解决方案: Add an environment to Travis with clang and the address sanitizer. (Christian Brabandt) Also include changes only on github. 相关文件: .travis.yml Patch 8.0.0240 (after 8.0.0239) 问题: The clang build on CI fails with one configuration. 解决方案: Redo a previous patch that was accidentally reverted. 相关文件: .travis.yml Patch 8.0.0241 问题: Vim defines a mch_memmove() function but it doesn't work, thus is always unused. 解决方案: Remove the mch_memmove implementation. (suggested by Dominique Pelle) 相关文件: src/os_unix.h, src/misc2.c, src/vim.h Patch 8.0.0242 问题: Completion of user defined functions is not covered by tests. 解决方案: Add tests. Also test various errors of user-defined commands. (Dominique Pelle, closes #1413) 相关文件: src/testdir/test_usercommands.vim Patch 8.0.0243 问题: When making a character lower case with tolower() changes the byte count, it is not made lower case. 解决方案: Add strlow_save(). (Dominique Pelle, closes #1406) 相关文件: src/evalfunc.c, src/misc2.c, src/proto/misc2.pro, src/testdir/test_functions.vim Patch 8.0.0244 问题: When the user sets t_BE empty after startup to disable bracketed paste, this has no direct effect. 解决方案: When t_BE is made empty write t_BD. When t_BE is made non-empty write the new value. 相关文件: src/option.c Patch 8.0.0245 问题: The generated zh_CN.cp936.po message file is not encoded properly. 解决方案: Instead of using zh_CN.po as input, use zh_CN.UTF-8.po. 相关文件: src/po/Makefile Patch 8.0.0246 问题: Compiler warnings for int to pointer conversion. 解决方案: Fix macro for mch_memmove(). (John Marriott) 相关文件: src/vim.h Patch 8.0.0247 问题: Under some circumstances, one needs to type Ctrl-N or Ctrl-P twice to have a menu entry selected. (Lifepillar) 解决方案: call ins_compl_free(). (Christian Brabandt, closes #1411) 相关文件: src/edit.c, src/testdir/test_popup.vim Patch 8.0.0248 问题: vim_strcat() cannot handle overlapping arguments. 解决方案: Use mch_memmove() instead of strcpy(). (Justin M Keyes, closes #1415) 相关文件: src/misc2.c Patch 8.0.0249 问题: When two submits happen quick after each other, the tests for the first one may error out. 解决方案: Use a git depth of 10 instead of 1. (Christian Brabandt) 相关文件: .travis.yml Patch 8.0.0250 问题: When virtcol() gets a column that is not the first byte of a multi-byte character the result is unpredictable. (Christian Ludwig) 解决方案: Correct the column to the first byte of a multi-byte character. Change the utf-8 test to new style. 相关文件: src/charset.c, src/testdir/test_utf8.in, src/testdir/test_utf8.ok, src/testdir/test_utf8.vim, src/Makefile, src/testdir/Make_all.mak, src/testdir/test_alot_utf8.vim Patch 8.0.0251 问题: It is not so easy to write a script that works with both Python 2 and Python 3, even when the Python code works with both. 解决方案: Add 'pyxversion', :pyx, etc. (Marc Weber, Ken Takata) 相关文件: Filelist, runtime/doc/eval.txt, runtime/doc/if_pyth.txt, runtime/doc/index.txt, runtime/doc/options.txt, runtime/optwin.vim, runtime/doc/quickref.txt, runtime/doc/usr_41.txt, src/Makefile, src/evalfunc.c, src/ex_cmds.h, src/ex_cmds2.c, src/ex_docmd.c, src/if_python.c, src/if_python3.c, src/option.c, src/option.h, src/proto/ex_cmds2.pro, src/testdir/Make_all.mak, src/testdir/pyxfile/py2_magic.py, src/testdir/pyxfile/py2_shebang.py, src/testdir/pyxfile/py3_magic.py, src/testdir/pyxfile/py3_shebang.py, src/testdir/pyxfile/pyx.py, src/testdir/test_pyx2.vim, src/testdir/test_pyx3.vim src/userfunc.c Patch 8.0.0252 问题: Characters below 256 that are not one byte are not always recognized as word characters. 解决方案: Make vim_iswordc() and vim_iswordp() work the same way. Add a test for this. (Ozaki Kiichi) 相关文件: src/Makefile, src/charset.c, src/kword_test.c, src/mbyte.c, src/proto/mbyte.pro Patch 8.0.0253 问题: When creating a session when 'winminheight' is 2 or larger and loading that session gives an error. 解决方案: Also set 'winminheight' before setting 'winheight' to 1. (Rafael Bodill, neovim #5717) 相关文件: src/ex_docmd.c, src/testdir/test_mksession.vim Patch 8.0.0254 问题: When using an assert function one can either specify a message or get a message about what failed, not both. 解决方案: Concatenate the error with the message. 相关文件: src/eval.c, src/testdir/test_assert.vim Patch 8.0.0255 问题: When calling setpos() with a buffer argument it often is ignored. (Matthew Malcomson) 解决方案: Make the buffer argument work for all marks local to a buffer. (neovim #5713) Add more tests. 相关文件: src/mark.c, src/testdir/test_marks.vim, runtime/doc/eval.txt Patch 8.0.0256 (after 8.0.0255) 问题: Tests fail because some changes were not included. 解决方案: Add changes to evalfunc.c 相关文件: src/evalfunc.c Patch 8.0.0257 (after 8.0.0252) 问题: The keyword test file is not included in the archive. 解决方案: Update the list of files. 相关文件: Filelist Patch 8.0.0258 (after 8.0.0253) 问题: mksession test leaves file behind. 解决方案: Delete the file. Rename files to start with "X". 相关文件: src/testdir/test_mksession.vim Patch 8.0.0259 问题: Tab commands do not handle count correctly. (Ken Hamada) 解决方案: Add ADDR_TABS_RELATIVE. (Hirohito Higashi) 相关文件: runtime/doc/tabpage.txt, src/ex_cmds.h, src/ex_docmd.c, src/testdir/test_tabpage.vim Patch 8.0.0260 问题: Build fails with tiny features. 解决方案: Move get_tabpage_arg() inside #ifdef. 相关文件: src/ex_docmd.c Patch 8.0.0261 问题: Not enough test coverage for eval functions. 解决方案: Add more tests. (Dominique Pelle, closes #1420) 相关文件: src/testdir/test_functions.vim Patch 8.0.0262 问题: Farsi support is barely tested. 解决方案: Add more tests for Farsi. Clean up the code. 相关文件: src/edit.c, src/farsi.c, src/testdir/test_farsi.vim Patch 8.0.0263 问题: Farsi support is not tested enough. 解决方案: Add more tests for Farsi. Clean up the code. 相关文件: src/farsi.c, src/testdir/test_farsi.vim Patch 8.0.0264 问题: Memory error reported by ubsan, probably for using the string returned by execute(). 解决方案: NUL terminate the result of execute(). 相关文件: src/evalfunc.c Patch 8.0.0265 问题: May get ml_get error when :pydo deletes lines or switches to another buffer. (Nikolai Pavlov, issue #1421) 解决方案: Check the buffer and line every time. 相关文件: src/if_py_both.h, src/testdir/test_python2.vim, src/testdir/test_python3.vim, src/Makefile, src/testdir/Make_all.mak Patch 8.0.0266 问题: Compiler warning for using uninitialized variable. 解决方案: Set tab_number also when there is an error. 相关文件: src/ex_docmd.c Patch 8.0.0267 问题: A channel test sometimes fails on Mac. 解决方案: Add the test to the list of flaky tests. 相关文件: src/testdir/runtest.vim Patch 8.0.0268 问题: May get ml_get error when :luado deletes lines or switches to another buffer. (Nikolai Pavlov, issue #1421) 解决方案: Check the buffer and line every time. 相关文件: src/if_lua.c, src/testdir/test_lua.vim, src/Makefile, src/testdir/Make_all.mak Patch 8.0.0269 问题: May get ml_get error when :perldo deletes lines or switches to another buffer. (Nikolai Pavlov, issue #1421) 解决方案: Check the buffer and line every time. 相关文件: src/if_perl.xs, src/testdir/test_perl.vim Patch 8.0.0270 问题: May get ml_get error when :rubydo deletes lines or switches to another buffer. (Nikolai Pavlov, issue #1421) 解决方案: Check the buffer and line every time. 相关文件: src/if_ruby.c, src/testdir/test_ruby.vim Patch 8.0.0271 问题: May get ml_get error when :tcldo deletes lines or switches to another buffer. (Nikolai Pavlov, closes #1421) 解决方案: Check the buffer and line every time. 相关文件: src/if_tcl.c, src/testdir/test_tcl.vim, src/Makefile, src/testdir/Make_all.mak Patch 8.0.0272 问题: Crash on exit is not detected when running tests. 解决方案: Remove the dash before the command. (Dominique Pelle, closes #1425) 相关文件: src/testdir/Makefile Patch 8.0.0273 问题: Dead code detected by Coverity when not using gnome. 解决方案: Rearrange the #ifdefs to avoid dead code. 相关文件: src/gui_gtk_x11.c Patch 8.0.0274 问题: When update_single_line() is called recursively, or another screen update happens while it is busy, errors may occur. 解决方案: Check and update updating_screen. (Christian Brabandt) 相关文件: src/screen.c Patch 8.0.0275 问题: When checking for CTRL-C typed the GUI may detect a screen resize and redraw the screen, causing trouble. 解决方案: Set updating_screen in ui_breakcheck(). 相关文件: src/ui.c Patch 8.0.0276 问题: Checking for FEAT_GUI_GNOME inside GTK 3 code is unnecessary. 解决方案: Remove the #ifdef. (Kazunobu Kuriyama) 相关文件: src/gui_gtk_x11.c Patch 8.0.0277 问题: The GUI test may trigger fontconfig and take a long time. 解决方案: Set $XDG_CACHE_HOME. (Kazunobu Kuriyama) 相关文件: src/testdir/unix.vim, src/testdir/test_gui.vim Patch 8.0.0278 (after 8.0.0277) 问题: GUI test fails on MS-Windows. 解决方案: Check that tester_HOME exists. 相关文件: src/testdir/test_gui.vim Patch 8.0.0279 问题: With MSVC 2015 the dll name is vcruntime140.dll. 解决方案: Check the MSVC version and use the right dll name. (Ken Takata) 相关文件: src/Make_mvc.mak Patch 8.0.0280 问题: On MS-Windows setting an environment variable with multi-byte strings does not work well. 解决方案: Use wputenv when possible. (Taro Muraoka, Ken Takata) 相关文件: src/misc1.c, src/os_win32.c, src/os_win32.h, src/proto/os_win32.pro, src/vim.h Patch 8.0.0281 问题: MS-Windows files are still using ARGSUSED while most other files have UNUSED. 解决方案: Change ARGSUSED to UNUSED or delete it. 相关文件: src/os_win32.c, src/gui_w32.c, src/os_mswin.c, src/os_w32exe.c, src/winclip.c Patch 8.0.0282 问题: When doing a Visual selection and using "I" to go to insert mode, CTRL-O needs to be used twice to go to Normal mode. (Coacher) 解决方案: Check for the return value of edit(). (Christian Brabandt, closes #1290) 相关文件: src/normal.c, src/ops.c Patch 8.0.0283 问题: The return value of mode() does not indicate that completion is active in Replace and Insert mode. (Zhen-Huan (Kenny) Hu) 解决方案: Add "c" or "x" for two kinds of completion. (Yegappan Lakshmanan, closes #1397) Test some more modes. 相关文件: runtime/doc/eval.txt, src/evalfunc.c, src/testdir/test_functions.vim, src/testdir/test_mapping.vim Patch 8.0.0284 问题: The Test_collapse_buffers() test failed once, looks like it is flaky. 解决方案: Add it to the list of flaky tests. 相关文件: src/testdir/runtest.vim Patch 8.0.0285 (after 8.0.0277) 问题: Tests fail with tiny build on Unix. 解决方案: Only set g:tester_HOME when build with the +eval feature. 相关文件: src/testdir/unix.vim Patch 8.0.0286 问题: When concealing is active and the screen is resized in the GUI it is not immediately redrawn. 解决方案: Use update_prepare() and update_finish() from update_single_line(). 相关文件: src/screen.c Patch 8.0.0287 问题: Cannot access the arguments of the current function in debug mode. (Luc Hermitte) 解决方案: use get_funccal(). (Lemonboy, closes #1432, closes #1352) 相关文件: src/userfunc.c Patch 8.0.0288 (after 8.0.0284) 问题: Errors reported while running tests. 解决方案: Put comma in the right place. 相关文件: src/testdir/runtest.vim Patch 8.0.0289 问题: No test for "ga" and :ascii. 解决方案: Add a test. (Dominique Pelle, closes #1429) 相关文件: src/Makefile, src/testdir/test_alot.vim, src/testdir/test_ga.vim Patch 8.0.0290 问题: If a wide character doesn't fit at the end of the screen line, and the line doesn't fit on the screen, then the cursor position may be wrong. (anliting) 解决方案: Don't skip over wide character. (Christian Brabandt, closes #1408) 相关文件: src/screen.c Patch 8.0.0291 (after 8.0.0282) 问题: Visual block insertion does not insert in all lines. 解决方案: Don't bail out of insert too early. Add a test. (Christian Brabandt, closes #1290) 相关文件: src/ops.c, src/testdir/test_visual.vim Patch 8.0.0292 问题: The stat test is a bit slow. 解决方案: Remove a couple of sleep comments and reduce another. 相关文件: src/testdir/test_stat.vim Patch 8.0.0293 问题: Some tests have a one or three second wait. 解决方案: Reset the 'showmode' option. Use a test time of one to disable sleep after an error or warning message. 相关文件: src/misc1.c, src/testdir/runtest.vim, src/testdir/test_normal.vim Patch 8.0.0294 问题: Argument list is not stored correctly in a session file. (lgpasquale) 解决方案: Use "$argadd" instead of "argadd". (closes #1434) 相关文件: src/ex_docmd.c, src/testdir/test_mksession.vim Patch 8.0.0295 (after 8.0.0293) 问题: test_viml hangs. 解决方案: Put resetting 'more' before sourcing the script. 相关文件: src/testdir/runtest.vim Patch 8.0.0296 问题: Bracketed paste can only append, not insert. 解决方案: When the cursor is in the first column insert the text. 相关文件: src/normal.c, src/testdir/test_paste.vim, runtime/doc/term.txt Patch 8.0.0297 问题: Double free on exit when using a closure. (James McCoy) 解决方案: Split free_al_functions in two parts. (closes #1428) 相关文件: src/userfunc.c, src/structs.h Patch 8.0.0298 问题: Ex command range with repeated search does not work. (Bruce DeVisser) 解决方案: Skip over \/, \? and \&. 相关文件: src/ex_docmd.c, src/testdir/test_cmdline.vim Patch 8.0.0299 问题: When the GUI window is resized Vim does not always take over the new size. (Luchr) 解决方案: Reset new_p_guifont in gui_resize_shell(). Call gui_may_resize_shell() in the main loop. 相关文件: src/main.c, src/gui.c Patch 8.0.0300 问题: Cannot stop diffing hidden buffers. (Daniel Hahler) 解决方案: When using :diffoff! make the whole list if diffed buffers empty. (closes #736) 相关文件: src/diff.c, src/testdir/test_diffmode.vim Patch 8.0.0301 问题: No tests for ":set completion" and various errors of the :set command. 解决方案: Add more :set tests. (Dominique Pelle, closes #1440) 相关文件: src/testdir/test_options.vim Patch 8.0.0302 问题: Cannot set terminal key codes with :let. 解决方案: Make it work. 相关文件: src/option.c, src/testdir/test_assign.vim Patch 8.0.0303 问题: Bracketed paste does not work in Visual mode. 解决方案: Delete the text before pasting 相关文件: src/normal.c, src/ops.c, src/proto/ops.pro, src/testdir/test_paste.vim Patch 8.0.0304 (after 8.0.0302) 问题: Assign test fails in the GUI. 解决方案: Skip the test for setting t_k1. 相关文件: src/testdir/test_assign.vim Patch 8.0.0305 问题: Invalid memory access when option has duplicate flag. 解决方案: Correct pointer computation. (Dominique Pelle, closes #1442) 相关文件: src/option.c, src/testdir/test_options.vim Patch 8.0.0306 问题: mode() not sufficiently tested. 解决方案: Add more tests. (Yegappan Lakshmanan) 相关文件: src/testdir/test_functions.vim Patch 8.0.0307 问题: Asan detects a memory error when EXITFREE is defined. (Dominique Pelle) 解决方案: In getvcol() check for ml_get_buf() returning an empty string. Also skip adjusting the scroll position. Set "exiting" in mch_exit() for all systems. 相关文件: src/charset.c, src/window.c, src/os_mswin.c, src/os_win32.c, src/os_amiga.c Patch 8.0.0308 问题: When using a symbolic link, the package path will not be inserted at the right position in 'runtimepath'. (Dugan Chen, Norio Takagi) 解决方案: Resolve symbolic links when finding the right position in 'runtimepath'. (Hirohito Higashi) 相关文件: src/ex_cmds2.c, src/testdir/test_packadd.vim Patch 8.0.0309 问题: Cannot use an empty key in json. 解决方案: Allow for using an empty key. 相关文件: src/json.c, src/testdir/test_json.vim Patch 8.0.0310 问题: Not enough testing for GUI functionality. 解决方案: Add tests for v:windowid and getwinpos[xy](). (Kazunobu Kuriyama) 相关文件: src/testdir/test_gui.vim Patch 8.0.0311 问题: Linebreak tests are old style. 解决方案: Turn the tests into new style. Share utility functions. (Ozaki Kiichi, closes #1444) 相关文件: src/Makefile, src/testdir/Make_all.mak, src/testdir/test_breakindent.vim, src/testdir/test_listlbr.in, src/testdir/test_listlbr.ok, src/testdir/test_listlbr.vim, src/testdir/test_listlbr_utf8.in, src/testdir/test_listlbr_utf8.ok, src/testdir/test_listlbr_utf8.vim, src/testdir/view_util.vim Patch 8.0.0312 问题: When a json message arrives in pieces, the start is dropped and the decoding fails. 解决方案: Do not drop the start when it is still needed. (Kay Zheng) Add a test. Reset the timeout when something is received. 相关文件: src/channel.c, src/testdir/test_channel.vim, src/structs.h, src/testdir/test_channel_pipe.py Patch 8.0.0313 (after 8.0.0310) 问题: Not enough testing for GUI functionality. 解决方案: Add tests for the GUI font. (Kazunobu Kuriyama) 相关文件: src/testdir/test_gui.vim Patch 8.0.0314 问题: getcmdtype(), getcmdpos() and getcmdline() are not tested. 解决方案: Add tests. (Yegappan Lakshmanan) 相关文件: src/testdir/test_cmdline.vim Patch 8.0.0315 问题: ":help :[range]" does not work. (Tony Mechelynck) 解决方案: Translate to insert a backslash. 相关文件: src/ex_cmds.c Patch 8.0.0316 问题: ":help z?" does not work. (Pavol Juhas) 解决方案: Remove exception for z?. 相关文件: src/ex_cmds.c Patch 8.0.0317 问题: No test for setting 'guifont'. 解决方案: Add a test for X11 GUIs. (Kazunobu Kuriyama) 相关文件: src/testdir/test_gui.vim Patch 8.0.0318 问题: Small mistake in 7x13 font name. 解决方案: Use ISO 8859-1 name instead of 10646-1. (Kazunobu Kuriyama) 相关文件: src/testdir/test_gui.vim Patch 8.0.0319 问题: Insert mode completion does not respect "start" in 'backspace'. 解决方案: Check whether backspace can go before where insert started. (Hirohito Higashi) 相关文件: src/edit.c, src/testdir/test_popup.vim Patch 8.0.0320 问题: Warning for unused variable with small build. 解决方案: Change #ifdef to exclude FEAT_CMDWIN. (Kazunobu Kuriyama) 相关文件: src/ex_getln.c Patch 8.0.0321 问题: When using the tiny version trying to load the matchit plugin gives an error. On MS-Windows some default mappings fail. 解决方案: Add a check if the command used is available. (Christian Brabandt) 相关文件: runtime/mswin.vim, runtime/macros/matchit.vim Patch 8.0.0322 问题: Possible overflow with spell file where the tree length is corrupted. 解决方案: Check for an invalid length (suggested by shqking) 相关文件: src/spellfile.c Patch 8.0.0323 问题: When running the command line tests there is a one second wait. 解决方案: Change an Esc to Ctrl-C. (Yegappan Lakshmanan) 相关文件: src/testdir/test_cmdline.vim Patch 8.0.0324 问题: Illegal memory access with "1;y". 解决方案: Call check_cursor() instead of check_cursor_lnum(). (Dominique Pelle, closes #1455) 相关文件: src/ex_docmd.c, src/testdir/test_cmdline.vim Patch 8.0.0325 问题: Packadd test does not clean up symlink. 解决方案: Delete the link. (Hirohito Higashi) 相关文件: src/testdir/test_packadd.vim Patch 8.0.0326 (after 8.0.0325) 问题: Packadd test uses wrong directory name. 解决方案: Use the variable name value. (Hirohito Higashi) 相关文件: src/testdir/test_packadd.vim Patch 8.0.0327 问题: The E11 error message in the command line window is not translated. 解决方案: use _(). (Hirohito Higashi) 相关文件: src/ex_docmd.c Patch 8.0.0328 问题: The "zero count" error doesn't have a number. (Hirohito Higashi) 解决方案: Give it a number and be more specific about the error. 相关文件: src/globals.h Patch 8.0.0329 问题: Xfontset and guifontwide are not tested. 解决方案: Add tests. (Kazunobu Kuriyama) 相关文件: src/testdir/test_gui.vim Patch 8.0.0330 问题: Illegal memory access after "vapo". (Dominique Pelle) 解决方案: Fix the cursor column. 相关文件: src/search.c, src/testdir/test_visual.vim Patch 8.0.0331 问题: Restoring help snapshot accesses freed memory. (Dominique Pelle) 解决方案: Don't restore a snapshot when the window closes. 相关文件: src/window.c, src/Makefile, src/testdir/Make_all.mak, src/testdir/test_help.vim Patch 8.0.0332 问题: GUI test fails on some systems. 解决方案: Try different language settings. (Kazunobu Kuriyama) 相关文件: src/testdir/test_gui.vim Patch 8.0.0333 问题: Illegal memory access when 'complete' ends in a backslash. 解决方案: Check for trailing backslash. (Dominique Pelle, closes #1478) 相关文件: src/option.c, src/testdir/test_options.vim Patch 8.0.0334 问题: Can't access b:changedtick from a dict reference. 解决方案: Make changedtick a member of the b: dict. (inspired by neovim #6112) 相关文件: src/structs.h, src/buffer.c, src/edit.c, src/eval.c, src/evalfunc.c, src/ex_docmd.c, src/main.c, src/globals.h, src/fileio.c, src/memline.c, src/misc1.c, src/syntax.c, src/proto/eval.pro, src/testdir/test_changedtick.vim, src/Makefile, src/testdir/test_alot.vim, src/testdir/test91.in, src/testdir/test91.ok, src/testdir/test_functions.vim Patch 8.0.0335 (after 8.0.0335) 问题: Functions test fails. 解决方案: Use the right buffer number. 相关文件: src/testdir/test_functions.vim Patch 8.0.0336 问题: Flags of :substitute not sufficiently tested. 解决方案: Test up to two letter flag combinations. (James McCoy, closes #1479) 相关文件: src/testdir/test_substitute.vim Patch 8.0.0337 问题: Invalid memory access in :recover command. 解决方案: Avoid access before directory name. (Dominique Pelle, closes #1488) 相关文件: src/Makefile, src/memline.c, src/testdir/test_alot.vim, src/testdir/test_recover.vim Patch 8.0.0338 (after 8.0.0337) 问题: :recover test fails on MS-Windows. 解决方案: Use non-existing directory on MS-Windows. 相关文件: src/testdir/test_recover.vim Patch 8.0.0339 问题: Illegal memory access with vi' 解决方案: For quoted text objects bail out if the Visual area spans more than one line. 相关文件: src/search.c, src/testdir/test_visual.vim Patch 8.0.0340 问题: Not checking return value of dict_add(). (Coverity) 解决方案: Handle a failure. 相关文件: src/buffer.c Patch 8.0.0341 问题: When using complete() and typing a character undo is saved after the character was inserted. (Shougo) 解决方案: Save for undo before inserting the character. 相关文件: src/edit.c, src/testdir/test_popup.vim Patch 8.0.0342 问题: Double free when compiled with EXITFREE and setting 'ttytype'. 解决方案: Avoid setting P_ALLOCED on 'ttytype'. (Dominique Pelle, closes #1461) 相关文件: src/option.c, src/testdir/test_options.vim Patch 8.0.0343 问题: b:changedtick can be unlocked, even though it has no effect. (Nikolai Pavlov) 解决方案: Add a check and error E940. (closes #1496) 相关文件: src/eval.c, src/testdir/test_changedtick.vim, runtime/doc/eval.txt Patch 8.0.0344 问题: Unlet command leaks memory. (Nikolai Pavlov) 解决方案: Free the memory on error. (closes #1497) 相关文件: src/eval.c, src/testdir/test_unlet.vim Patch 8.0.0345 问题: islocked('d.changedtick') does not work. 解决方案: Make it work. 相关文件: src/buffer.c, src/eval.c, src/evalfunc.c, src/vim.h, src/testdir/test_changedtick.vim, Patch 8.0.0346 问题: Vim relies on limits.h to be included indirectly, but on Solaris 9 it may not be. (Ben Fritz) 解决方案: Always include limits.h. 相关文件: src/os_unixx.h, src/vim.h Patch 8.0.0347 问题: When using CTRL-X CTRL-U inside a comment, the use of the comment leader may not work. (Klement) 解决方案: Save and restore did_ai. (Christian Brabandt, closes #1494) 相关文件: src/edit.c, src/testdir/test_popup.vim Patch 8.0.0348 问题: When building with a shadow directory on macOS lacks the +clipboard feature. 解决方案: Link *.m files, specifically os_macosx.m. (Kazunobu Kuriyama) 相关文件: src/Makefile Patch 8.0.0349 问题: Redrawing errors with GTK 3. 解决方案: When updating, first clear all rectangles and then draw them. (Kazunobu Kuriyama, Christian Ludwig, closes #848) 相关文件: src/gui_gtk_x11.c Patch 8.0.0350 问题: Not enough test coverage for Perl. 解决方案: Add more Perl tests. (Dominique Perl, closes #1500) 相关文件: src/testdir/test_perl.vim Patch 8.0.0351 问题: No test for concatenating an empty string that results from out of bounds indexing. 解决方案: Add a simple test. 相关文件: src/testdir/test_expr.vim Patch 8.0.0352 问题: The condition for when a typval needs to be cleared is too complicated. 解决方案: Init the type to VAR_UNKNOWN and always clear it. 相关文件: src/eval.c Patch 8.0.0353 问题: If [RO] in the status line is translated to a longer string, it is truncated to 4 bytes. 解决方案: Skip over the resulting string. (Jente Hidskes, closes #1499) 相关文件: src/screen.c Patch 8.0.0354 问题: Test to check that setting termcap key fails sometimes. 解决方案: Check for "t_k1" to exist. (Christian Brabandt, closes #1459) 相关文件: src/testdir/test_assign.vim Patch 8.0.0355 问题: Using uninitialized memory when 'isfname' is empty. 解决方案: Don't call getpwnam() without an argument. (Dominique Pelle, closes #1464) 相关文件: src/misc1.c, src/testdir/test_options.vim Patch 8.0.0356 (after 8.0.0342) 问题: Leaking memory when setting 'ttytype'. 解决方案: Get free_oldval from the right option entry. 相关文件: src/option.c Patch 8.0.0357 问题: Crash when setting 'guicursor' to weird value. 解决方案: Avoid negative size. (Dominique Pelle, closes #1465) 相关文件: src/misc2.c, src/testdir/test_options.vim Patch 8.0.0358 问题: Invalid memory access in C-indent code. 解决方案: Don't go over end of empty line. (Dominique Pelle, closes #1492) 相关文件: src/edit.c, src/testdir/test_options.vim Patch 8.0.0359 问题: 'number' and 'relativenumber' are not properly tested. 解决方案: Add tests, change old style to new style tests. (Ozaki Kiichi, closes #1447) 相关文件: src/Makefile, src/testdir/Make_all.mak, src/testdir/Make_vms.mms, src/testdir/test89.in, src/testdir/test89.ok, src/testdir/test_alot.vim, src/testdir/test_findfile.vim, src/testdir/test_number.vim Patch 8.0.0360 问题: Sometimes VimL is used, which is confusing. 解决方案: Consistently use "Vim script". (Hirohito Higashi) 相关文件: runtime/doc/if_mzsch.txt, runtime/doc/if_pyth.txt, runtime/doc/syntax.txt, runtime/doc/usr_02.txt, runtime/doc/version7.txt, src/Makefile, src/eval.c, src/ex_getln.c, src/if_py_both.h, src/if_xcmdsrv.c, src/testdir/Make_all.mak, src/testdir/runtest.vim, src/testdir/test49.vim, src/testdir/test_vimscript.vim, src/testdir/test_viml.vim Patch 8.0.0361 问题: GUI initialisation is not sufficiently tested. 解决方案: Add the gui_init test. (Kazunobu Kuriyama) 相关文件: src/Makefile, src/testdir/Make_all.mak, src/testdir/Make_dos.mak, src/testdir/Make_ming.mak, src/testdir/Makefile, src/testdir/gui_init.vim, src/testdir/setup_gui.vim, src/testdir/test_gui.vim, src/testdir/test_gui_init.vim, Filelist Patch 8.0.0362 (after 8.0.0361) 问题: Tests fail on MS-Windows. 解决方案: Use $*.vim instead of $<. 相关文件: src/testdir/Make_dos.mak Patch 8.0.0363 问题: Travis is too slow to keep up with patches. 解决方案: Increase git depth to 20 相关文件: .travis.yml Patch 8.0.0364 问题: ]s does not move cursor with two spell errors in one line. (Manuel Ortega) 解决方案: Don't stop search immediately when wrapped, search the line first. (Ken Takata) Add a test. 相关文件: src/spell.c, src/Makefile, src/testdir/test_spell.vim, src/testdir/Make_all.mak Patch 8.0.0365 问题: Might free a dict item that wasn't allocated. 解决方案: Call dictitem_free(). (Nikolai Pavlov) Use this for b:changedtick. 相关文件: src/dict.c, src/structs.h, src/buffer.c, src/edit.c, src/evalfunc.c, src/ex_docmd.c, src/fileio.c, src/main.c, src/memline.c, src/misc1.c, src/syntax.c Patch 8.0.0366 (after 8.0.0365) 问题: Build fails with tiny features. 解决方案: Add #ifdef. 相关文件: src/buffer.c Patch 8.0.0367 问题: If configure defines _LARGE_FILES some include files are included before it is defined. 解决方案: Include vim.h first. (Sam Thursfield, closes #1508) 相关文件: src/gui_at_sb.c, src/gui_athena.c, src/gui_motif.c, src/gui_x11.c, src/gui_xmdlg.c Patch 8.0.0368 问题: Not all options are tested with a range of values. 解决方案: Generate a test script from the source code. 相关文件: Filelist, src/gen_opt_test.vim, src/testdir/test_options.vim, src/Makefile Patch 8.0.0369 (after 8.0.0368) 问题: The 'balloondelay', 'ballooneval' and 'balloonexpr' options are not defined without the +balloon_eval feature. Testing that an option value fails does not work for unsupported options. 解决方案: Make the options defined but not supported. Don't test if setting unsupported options fails. 相关文件: src/option.c, src/gen_opt_test.vim Patch 8.0.0370 问题: Invalid memory access when setting wildchar empty. 解决方案: Avoid going over the end of the option value. (Dominique Pelle, closes #1509) Make option test check all number options with empty value. 相关文件: src/gen_opt_test.vim, src/option.c, src/testdir/test_options.vim Patch 8.0.0371 (after 8.0.0365) 问题: Leaking memory when setting v:completed_item. 解决方案: Or the flags instead of setting them. 相关文件: src/eval.c Patch 8.0.0372 问题: More options are not always defined. 解决方案: Consistently define all possible options. 相关文件: src/option.c, src/testdir/test_expand_dllpath.vim Patch 8.0.0373 问题: Build fails without +folding. 解决方案: Move misplaced #ifdef. 相关文件: src/option.c Patch 8.0.0374 问题: Invalid memory access when using :sc in Ex mode. (Dominique Pelle) 解决方案: Avoid the column being negative. Also fix a hang in Ex mode. 相关文件: src/ex_getln.c, src/ex_cmds.c, src/testdir/test_substitute.vim Patch 8.0.0375 问题: The "+ register is not tested. 解决方案: Add a test using another Vim instance to change the "+ register. (Kazunobu Kuriyama) 相关文件: src/testdir/test_gui.vim Patch 8.0.0376 问题: Size computations in spell file reading are not exactly right. 解决方案: Make "len" a "long" and check with LONG_MAX. 相关文件: src/spellfile.c Patch 8.0.0377 问题: Possible overflow when reading corrupted undo file. 解决方案: Check if allocated size is not too big. (King) 相关文件: src/undo.c Patch 8.0.0378 问题: Another possible overflow when reading corrupted undo file. 解决方案: Check if allocated size is not too big. (King) 相关文件: src/undo.c Patch 8.0.0379 问题: CTRL-Z and mouse click use CTRL-O unnecessary. 解决方案: Remove stuffing CTRL-O. (James McCoy, closes #1453) 相关文件: src/edit.c, src/normal.c Patch 8.0.0380 问题: With 'linebreak' set and 'breakat' includes ">" a double-wide character results in "<<" displayed. 解决方案: Check for the character not to be replaced. (Ozaki Kiichi, closes #1456) 相关文件: src/screen.c, src/testdir/test_listlbr_utf8.vim Patch 8.0.0381 问题: Diff mode is not sufficiently tested. 解决方案: Add more diff mode tests. (Dominique Pelle, closes #1515) 相关文件: src/testdir/test_diffmode.vim Patch 8.0.0382 (after 8.0.0380) 问题: Warning in tiny build for unused variable. (Tony Mechelynck) 解决方案: Add #ifdefs. 相关文件: src/screen.c Patch 8.0.0383 (after 8.0.0382) 问题: Misplaced #ifdef. (Christ van Willigen) 解决方案: Split assignment. 相关文件: src/screen.c Patch 8.0.0384 问题: Timer test failed for no apparent reason. 解决方案: Mark the test as flaky. 相关文件: src/testdir/runtest.vim Patch 8.0.0385 问题: No tests for arabic. 解决方案: Add a first test for arabic. (Dominique Pelle, closes #1518) 相关文件: src/Makefile, src/testdir/Make_all.mak, src/testdir/test_arabic.vim Patch 8.0.0386 问题: Tiny build has a problem with generating the options test. 解决方案: Change the "if" to skip over statements. 相关文件: src/gen_opt_test.vim Patch 8.0.0387 问题: compiler warnings 解决方案: Add type casts. (Christian Brabandt) 相关文件: src/channel.c, src/memline.c, Patch 8.0.0388 问题: filtering lines through "cat", without changing the line count, changes manual folds. 解决方案: Change how marks and folds are adjusted. (Matthew Malcomson, from neovim #6194. 相关文件: src/fold.c, src/testdir/test_fold.vim Patch 8.0.0389 问题: Test for arabic does not check what is displayed. 解决方案: Improve what is asserted. (Dominique Pelle, closes #1523) Add a first shaping test. 相关文件: src/testdir/test_arabic.vim Patch 8.0.0390 问题: When the window scrolls horizontally when the popup menu is displayed part of it may not be cleared. (Neovim issue #6184) 解决方案: Remove the menu when the windows scrolled. (closes #1524) 相关文件: src/edit.c Patch 8.0.0391 问题: Arabic support is verbose and not well tested. 解决方案: Simplify the code. Add more tests. 相关文件: src/arabic.c, src/testdir/test_arabic.vim Patch 8.0.0392 问题: GUI test fails with Athena and Motif. 解决方案: Add test_ignore_error(). Use it to ignore the "failed to create input context" error. 相关文件: src/message.c, src/proto/message.pro, src/evalfunc.c, src/testdir/test_gui.vim, runtime/doc/eval.txt Patch 8.0.0393 (after 8.0.0190) 问题: When the same tag appears more than once, the order is unpredictable. (Charles Campbell) 解决方案: Besides using a dict for finding duplicates, use a grow array for keeping the tags in sequence. 相关文件: src/tag.c, src/testdir/test_tagjump.vim Patch 8.0.0394 问题: Tabs are not aligned when scrolling horizontally and a Tab doesn't fit. (Axel Bender) 解决方案: Handle a Tab as a not fitting character. (Christian Brabandt) Also fix that ":redraw" does not scroll horizontally to show the cursor. And fix the test that depended on the old behavior. 相关文件: src/screen.c, src/ex_docmd.c, src/testdir/test_listlbr.vim, src/testdir/test_listlbr_utf8.vim, src/testdir/test_breakindent.vim Patch 8.0.0395 (after 8.0.0392) 问题: Testing the + register fails with Motif. 解决方案: Also ignore the "failed to create input context" error in the second gvim. Don't use msg() when it would result in a dialog. 相关文件: src/message.c, src/testdir/test_gui.vim, src/testdir/setup_gui.vim Patch 8.0.0396 问题: 'balloonexpr' only works synchronously. 解决方案: Add balloon_show(). (Jusufadis Bakamovic, closes #1449) 相关文件: runtime/doc/eval.txt, src/evalfunc.c, src/os_unix.c, src/os_win32.c Patch 8.0.0397 (after 8.0.0392) 问题: Cannot build with the viminfo feature but without the eval feature. 解决方案: Adjust #ifdef. (John Marriott) 相关文件: src/message.c, src/misc2.c Patch 8.0.0398 问题: Illegal memory access with "t". 解决方案: Use strncmp() instead of memcmp(). (Dominique Pelle, closes #1528) 相关文件: src/search.c, src/testdir/test_search.vim Patch 8.0.0399 问题: Crash when using balloon_show() when not supported. (Hirohito Higashi) 解决方案: Check for balloonEval not to be NULL. (Ken Takata) 相关文件: src/evalfunc.c, src/testdir/test_functions.vim Patch 8.0.0400 问题: Some tests have a one second delay. 解决方案: Add --not-a-term in RunVim(). 相关文件: src/testdir/shared.vim Patch 8.0.0401 问题: Test fails with missing balloon feature. 解决方案: Add check for balloon feature. 相关文件: src/testdir/test_functions.vim Patch 8.0.0402 问题: :map completion does not have <special>. (Dominique Pelle) 解决方案: Recognize <special> in completion. Add a test. 相关文件: src/getchar.c, src/testdir/test_cmdline.vim Patch 8.0.0403 问题: GUI tests may fail. 解决方案: Ignore the E285 error better. (Kazunobu Kuriyama) 相关文件: src/testdir/test_gui.vim, src/testdir/test_gui_init.vim Patch 8.0.0404 问题: Not enough testing for quickfix. 解决方案: Add some more tests. (Yegappan Lakshmanan) 相关文件: src/testdir/test_quickfix.vim Patch 8.0.0405 问题: v:progpath may become invalid after ":cd". 解决方案: Turn v:progpath into a full path if needed. 相关文件: src/main.c, src/testdir/test_startup.vim, runtime/doc/eval.txt Patch 8.0.0406 问题: The arabic shaping code is verbose. 解决方案: Shorten the code without changing the functionality. 相关文件: src/arabic.c Patch 8.0.0407 (after 8.0.0388) 问题: Filtering folds with marker method not tested. 解决方案: Also set 'foldmethod' to "marker". 相关文件: src/testdir/test_fold.vim Patch 8.0.0408 问题: Updating folds does not work properly when inserting a file and a few other situations. 解决方案: Adjust the way folds are updated. (Matthew Malcomson) 相关文件: src/fold.c, src/testdir/test_fold.vim Patch 8.0.0409 问题: set_progpath is defined but not always used 解决方案: Adjust #ifdef. 相关文件: src/main.c Patch 8.0.0410 问题: Newer gettext/iconv library has extra dll file. 解决方案: Add the file to the Makefile and nsis script. (Christian Brabandt) 相关文件: Makefile, nsis/gvim.nsi Patch 8.0.0411 问题: We can't change the case in menu entries, it breaks translations. 解决方案: Ignore case when looking up a menu translation. 相关文件: src/menu.c, src/testdir/test_menu.vim Patch 8.0.0412 (after 8.0.0411) 问题: Menu test fails on MS-Windows. 解决方案: Use a menu entry with only ASCII characters. 相关文件: src/testdir/test_menu.vim Patch 8.0.0413 (after 8.0.0412) 问题: Menu test fails on MS-Windows using gvim. 解决方案: First delete the English menus. 相关文件: src/testdir/test_menu.vim Patch 8.0.0414 问题: Balloon eval is not tested. 解决方案: Add a few balloon tests. (Kazunobu Kuriyama) 相关文件: src/testdir/test_gui.vim Patch 8.0.0415 (after 8.0.0414) 问题: Balloon test fails on MS-Windows. 解决方案: Test with 0x7fffffff instead of 0xffffffff. 相关文件: src/testdir/test_gui.vim Patch 8.0.0416 问题: Setting v:progpath is not quite right. 解决方案: On MS-Windows add the extension. On Unix use the full path for a relative directory. (partly by James McCoy, closes #1531) 相关文件: src/main.c, src/os_win32.c, src/os_unix.c Patch 8.0.0417 问题: Test for the clipboard fails sometimes. 解决方案: Add it to the flaky tests. 相关文件: src/testdir/runtest.vim Patch 8.0.0418 问题: ASAN logs are disabled and don't cause a failure. 解决方案: Enable ASAN logs and fail if not empty. (James McCoy, closes #1425) 相关文件: .travis.yml Patch 8.0.0419 问题: Test for v:progpath fails on MS-Windows. 解决方案: Expand to full path. Also add ".exe" when the path is an absolute path. 相关文件: src/os_win32.c, src/main.c Patch 8.0.0420 问题: When running :make the output may be in the system encoding, different from 'encoding'. 解决方案: Add the 'makeencoding' option. (Ken Takata) 相关文件: runtime/doc/options.txt, runtime/doc/quickfix.txt, runtime/doc/quickref.txt, src/Makefile, src/buffer.c, src/if_cscope.c, src/main.c, src/option.c, src/option.h, src/proto/quickfix.pro, src/quickfix.c, src/structs.h, src/testdir/Make_all.mak, src/testdir/test_makeencoding.py, src/testdir/test_makeencoding.vim Patch 8.0.0421 问题: Diff mode is displayed wrong when adding a line at the end of a buffer. 解决方案: Adjust marks in diff mode. (James McCoy, closes #1329) 相关文件: src/misc1.c, src/ops.c, src/testdir/test_diffmode.vim Patch 8.0.0422 问题: Python test fails with Python 3.6. 解决方案: Convert new exception messages to old ones. (closes #1359) 相关文件: src/testdir/test87.in Patch 8.0.0423 问题: The effect of adding "#" to 'cinoptions' is not always removed. (David Briscoe) 解决方案: Reset b_ind_hash_comment. (Christian Brabandt, closes #1475) 相关文件: src/misc1.c, src/Makefile, src/testdir/Make_all.mak, src/testdir/test_cindent.vim, src/testdir/test3.in Patch 8.0.0424 问题: Compiler warnings on MS-Windows. (Ajit Thakkar) 解决方案: Add type casts. 相关文件: src/os_win32.c Patch 8.0.0425 问题: Build errors when building without folding. 解决方案: Add #ifdefs. (John Marriott) 相关文件: src/diff.c, src/edit.c, src/option.c, src/syntax.c Patch 8.0.0426 问题: Insufficient testing for statusline. 解决方案: Add several tests. (Dominique Pelle, closes #1534) 相关文件: src/testdir/test_statusline.vim Patch 8.0.0427 问题: 'makeencoding' missing from the options window. 解决方案: Add the entry. 相关文件: runtime/optwin.vim Patch 8.0.0428 问题: Git and hg see new files after running tests. (Manuel Ortega) 解决方案: Add the generated file to .hgignore (or .gitignore). Delete the resulting verbose file. (Christian Brabandt) Improve dependency on opt_test.vim. Reset the 'more' option. 相关文件: .hgignore, src/gen_opt_test.vim, src/testdir/gen_opt_test.vim, src/Makefile, src/testdir/Make_all.mak, src/testdir/Makefile, src/testdir/Make_dos.mak, src/testdir/Make_ming.mak, Filelist Patch 8.0.0429 问题: Options test does not always test everything. 解决方案: Fix dependency for opt_test.vim. Give a message when opt_test.vim was not found. 相关文件: src/testdir/test_options.vim, src/testdir/gen_opt_test.vim, src/testdir/Makefile, src/testdir/Make_all.mak, src/testdir/Make_dos.mak, src/testdir/Make_ming.mak Patch 8.0.0430 问题: Options test fails or hangs on MS-Windows. 解决方案: Run it separately instead of part of test_alot. Use "-S" instead of "-u" to run the script. Fix failures. 相关文件: src/testdir/Make_all.mak, src/testdir/test_alot.vim, src/testdir/Makefile, src/testdir/Make_dos.mak, src/testdir/Make_ming.mak, src/testdir/gen_opt_test.vim Patch 8.0.0431 问题: 'cinoptions' cannot set indent for extern block. 解决方案: Add the "E" flag in 'cinoptions'. (Hirohito Higashi) 相关文件: runtime/doc/indent.txt, src/misc1.c, src/structs.h, src/testdir/test_cindent.vim Patch 8.0.0432 问题: "make shadow" creates an invalid link. 解决方案: Don't link "*.vim". (Kazunobu Kuriyama) 相关文件: src/Makefile Patch 8.0.0433 问题: Quite a few beeps when running tests. 解决方案: Set 'belloff' for these tests. (Christian Brabandt) 相关文件: src/testdir/test103.in, src/testdir/test14.in, src/testdir/test29.in, src/testdir/test30.in, src/testdir/test32.in, src/testdir/test45.in, src/testdir/test72.in, src/testdir/test73.in, src/testdir/test77.in, src/testdir/test78.in, src/testdir/test85.in, src/testdir/test94.in, src/testdir/test_alot.vim, src/testdir/test_alot_utf8.vim, src/testdir/test_close_count.in, src/testdir/test_cmdline.vim, src/testdir/test_diffmode.vim, src/testdir/test_digraph.vim, src/testdir/test_erasebackword.in, src/testdir/test_normal.vim, src/testdir/test_packadd.vim, src/testdir/test_search.vim, src/testdir/test_textobjects.vim, src/testdir/test_undo.vim, src/testdir/test_usercommands.vim, src/testdir/test_visual.vim Patch 8.0.0434 问题: Clang version not correctly detected. 解决方案: Adjust the configure script. (Kazunobu Kuriyama) 相关文件: src/configure.ac, src/auto/configure Patch 8.0.0435 问题: Some functions are not tested. 解决方案: Add more tests for functions. (Dominique Pelle, closes #1541) 相关文件: src/testdir/test_functions.vim Patch 8.0.0436 问题: Running the options test sometimes resizes the terminal. 解决方案: Clear out t_WS. 相关文件: src/testdir/gen_opt_test.vim Patch 8.0.0437 问题: The packadd test does not create the symlink correctly and does not test the right thing. 解决方案: Create the directory and symlink correctly. 相关文件: src/testdir/test_packadd.vim Patch 8.0.0438 问题: The fnamemodify test changes 'shell' in a way later tests may not be able to use system(). 解决方案: Save and restore 'shell'. 相关文件: src/testdir/test_fnamemodify.vim Patch 8.0.0439 问题: Using ":%argdel" while the argument list is already empty gives an error. (Pavol Juhas) 解决方案: Don't give an error. (closes #1546) 相关文件: src/ex_cmds2.c, src/testdir/test_arglist.vim Patch 8.0.0440 问题: Not enough test coverage in Insert mode. 解决方案: Add lots of tests. Add test_override(). (Christian Brabandt, closes #1521) 相关文件: runtime/doc/eval.txt, runtime/doc/usr_41.txt, src/edit.c, src/evalfunc.c, src/globals.h, src/screen.c, src/testdir/Make_all.mak, src/testdir/test_cursor_func.vim, src/testdir/test_edit.vim, src/testdir/test_search.vim, src/testdir/test_assert.vim, src/Makefile, src/testdir/runtest.vim Patch 8.0.0441 问题: Dead code in #ifdef. 解决方案: Remove the #ifdef and #else part. 相关文件: src/option.c Patch 8.0.0442 问题: Patch shell command uses double quotes around the argument, which allows for $HOME to be expanded. (Etienne) 解决方案: Use single quotes on Unix. (closes #1543) 相关文件: src/diff.c, src/testdir/test_diffmode.vim Patch 8.0.0443 问题: Terminal width is set to 80 in test3. 解决方案: Instead of setting 'columns' set 'wrapmargin' depending on 'columns. 相关文件: src/testdir/test3.in Patch 8.0.0444 (after 8.0.0442) 问题: Diffpatch fails when the file name has a quote. 解决方案: Escape the name properly. (zetzei) 相关文件: src/diff.c, src/testdir/test_diffmode.vim Patch 8.0.0445 问题: Getpgid is not supported on all systems. 解决方案: Add a configure check. 相关文件: src/configure.ac, src/auto/configure, src/config.h.in, src/os_unix.c Patch 8.0.0446 问题: The ";" command does not work after characters with a lower byte that is NUL. 解决方案: Properly check for not having a previous character. (Hirohito Higashi) 相关文件: src/Makefile, src/search.c, src/testdir/test_alot_utf8.vim, src/testdir/test_charsearch_utf8.vim Patch 8.0.0447 问题: Getting font name does not work on X11. 解决方案: Implement gui_mch_get_fontname() for X11. Add more GUI tests. (Kazunobu Kuriyama) 相关文件: src/gui_x11.c, src/syntax.c, src/testdir/Make_dos.mak, src/testdir/Make_ming.mak, src/testdir/Makefile, src/testdir/gui_init.vim, src/testdir/gui_preinit.vim, src/testdir/test_gui.vim, src/testdir/test_gui_init.vim, Filelist Patch 8.0.0448 问题: Some macros are in lower case, which can be confusing. 解决方案: Make a few lower case macros upper case. 相关文件: src/macros.h, src/buffer.c, src/charset.c, src/ops.c, src/diff.c, src/edit.c, src/evalfunc.c, src/ex_cmds.c, src/ex_getln.c, src/fileio.c, src/fold.c, src/gui.c, src/gui_beval.c, src/main.c, src/mark.c, src/misc1.c, src/move.c, src/normal.c, src/option.c, src/popupmnu.c, src/regexp.c, src/screen.c, src/search.c, src/spell.c, src/tag.c, src/ui.c, src/undo.c, src/version.c, src/workshop.c, src/if_perl.xs Patch 8.0.0449 (after 8.0.0448) 问题: Part of fold patch accidentally included. 解决方案: Revert that part of the patch. 相关文件: src/ex_cmds.c Patch 8.0.0450 问题: v:progpath is not reliably set. 解决方案: Read /proc/self/exe if possible. (idea by Michal Grochmal) Also fixes missing #if. 相关文件: src/main.c, src/config.h.in Patch 8.0.0451 问题: Some macros are in lower case. 解决方案: Make a few more macros upper case. Avoid lower case macros use an argument twice. 相关文件: src/macros.h, src/charset.c, src/misc2.c, src/proto/misc2.pro, src/edit.c, src/eval.c, src/ex_cmds.c, src/ex_cmds2.c, src/ex_docmd.c, src/ex_getln.c, src/fileio.c, src/fold.c, src/gui.c, src/gui_gtk.c, src/mark.c, src/memline.c, src/mbyte.c, src/menu.c, src/message.c, src/misc1.c, src/ops.c, src/option.c, src/os_amiga.c, src/os_mswin.c, src/os_unix.c, src/os_win32.c, src/popupmnu.c, src/regexp.c, src/regexp_nfa.c, src/screen.c, src/search.c, src/spell.c, src/spellfile.c, src/syntax.c, src/tag.c, src/ui.c, src/undo.c, src/window.c Patch 8.0.0452 问题: Some macros are in lower case. 解决方案: Make a few more macros upper case. 相关文件: src/vim.h, src/macros.h, src/evalfunc.c, src/fold.c, src/gui_gtk.c, src/gui_gtk_x11.c, src/charset.c, src/diff.c, src/edit.c, src/eval.c, src/ex_cmds.c, src/ex_cmds2.c, src/ex_docmd.c, src/ex_getln.c, src/fileio.c, src/getchar.c, src/gui.c, src/gui_w32.c, src/if_cscope.c, src/mbyte.c, src/menu.c, src/message.c, src/misc1.c, src/misc2.c, src/normal.c, src/ops.c, src/option.c, src/os_unix.c, src/os_win32.c, src/quickfix.c, src/regexp.c, src/regexp_nfa.c, src/screen.c, src/search.c, src/spell.c, src/syntax.c, src/tag.c, src/userfunc.c Patch 8.0.0453 问题: Adding fold marker creates new comment. 解决方案: Use an existing comment if possible. (LemonBoy, closes #1549) 相关文件: src/ops.c, src/proto/ops.pro, src/fold.c, src/testdir/test_fold.vim Patch 8.0.0454 问题: Compiler warnings for comparing unsigned char with 256 always being true. (Manuel Ortega) 解决方案: Add type cast. 相关文件: src/screen.c, src/charset.c Patch 8.0.0455 问题: The mode test may hang in Test_mode(). (Michael Soyka) 解决方案: Set 'complete' to only search the current buffer (as suggested by Michael) 相关文件: src/testdir/test_functions.vim Patch 8.0.0456 问题: Typo in MinGW test makefile. 解决方案: Change an underscore to a dot. (Michael Soyka) 相关文件: src/testdir/Make_ming.mak Patch 8.0.0457 问题: Using :move messes up manual folds. 解决方案: Split adjusting marks and folds. Add foldMoveRange(). (neovim patch #6221) 相关文件: src/ex_cmds.c, src/fold.c, src/mark.c, src/proto/fold.pro, src/proto/mark.pro src/testdir/test_fold.vim Patch 8.0.0458 问题: Potential crash if adding list or dict to dict fails. 解决方案: Make sure the reference count is correct. (Nikolai Pavlov, closes #1555) 相关文件: src/dict.c Patch 8.0.0459 (after 8.0.0457) 问题: Old fix for :move messing up folding no longer needed, now that we have a proper solution. 解决方案: Revert patch 7.4.700. (Christian Brabandt) 相关文件: src/ex_cmds.c Patch 8.0.0460 (after 8.0.0452) 问题: Can't build on HPUX. 解决方案: Fix argument names in vim_stat(). (John Marriott) 相关文件: src/misc2.c Patch 8.0.0461 (after 8.0.0457) 问题: Test 45 hangs on MS-Windows. 解决方案: Reset 'shiftwidth'. Also remove redundant function. 相关文件: src/fold.c, src/testdir/test45.in Patch 8.0.0462 问题: If an MS-Windows tests succeeds at first and then fails in a way it does not produce a test.out file it looks like the test succeeded. 解决方案: Delete the previous output file. 相关文件: src/testdir/Make_dos.mak Patch 8.0.0463 问题: Resetting 'compatible' in defaults.vim has unexpected side effects. (David Fishburn) 解决方案: Only reset 'compatible' if it was set. 相关文件: runtime/defaults.vim Patch 8.0.0464 问题: Can't find executable name on Solaris and FreeBSD. 解决方案: Check for "/proc/self/path/a.out". (Danek Duvall) And for "/proc/curproc/file". 相关文件: src/config.h.in, src/configure.ac, src/main.c, src/auto/configure Patch 8.0.0465 问题: Off-by-one error in using :move with folding. 解决方案: Correct off-by-one mistakes and add more tests. (Matthew Malcomson) 相关文件: src/fold.c, src/testdir/test_fold.vim Patch 8.0.0466 问题: There are still a few macros that should be all-caps. 解决方案: Make a few more macros all-caps. 相关文件: src/buffer.c, src/edit.c, src/ex_cmds.c, src/ex_cmds2.c, src/ex_docmd.c, src/ex_getln.c, src/farsi.c, src/fileio.c, src/getchar.c, src/gui_beval.c, src/hardcopy.c, src/if_cscope.c, src/if_xcmdsrv.c, src/mark.c, src/memline.c, src/menu.c, src/message.c, src/misc1.c, src/normal.c, src/ops.c, src/option.c, src/quickfix.c, src/screen.c, src/search.c, src/syntax.c, src/tag.c, src/term.c, src/term.h, src/ui.c, src/undo.c, src/userfunc.c, src/version.c, src/vim.h Patch 8.0.0467 问题: Using g< after :for does not show the right output. (Marcin Szamotulski) 解决方案: Call msg_sb_eol() in :echomsg. 相关文件: src/eval.c Patch 8.0.0468 问题: After aborting an Ex command g< does not work. (Marcin Szamotulski) 解决方案: Postpone clearing scrollback messages to until the command line has been entered. Also fix that the screen isn't redrawn if after g< the command line is cancelled. 相关文件: src/message.c, src/proto/message.pro, src/ex_getln.c, src/misc2.c, src/gui.c Patch 8.0.0469 问题: Compiler warnings on MS-Windows. 解决方案: Add type casts. (Christian Brabandt) 相关文件: src/fold.c Patch 8.0.0470 问题: Not enough testing for help commands. 解决方案: Add a few more help tests. (Dominique Pelle, closes #1565) 相关文件: src/testdir/test_help.vim, src/testdir/test_help_tagjump.vim Patch 8.0.0471 问题: Exit callback test sometimes fails. 解决方案: Add it to the list of flaky tests. 相关文件: src/testdir/runtest.vim Patch 8.0.0472 问题: When a test fails and test.log is created, Test_edit_CTRL_I matches it instead of test1.in. 解决方案: Match with runtest.vim instead. 相关文件: src/testdir/test_edit.vim Patch 8.0.0473 问题: No test covering arg_all(). 解决方案: Add a test expanding ##. 相关文件: src/testdir/test_arglist.vim Patch 8.0.0474 问题: The client-server feature is not tested. 解决方案: Add a test. 相关文件: src/Makefile, src/testdir/Make_all.mak, src/testdir/shared.vim, src/testdir/test_clientserver.vim, src/os_mswin.c Patch 8.0.0475 问题: Not enough testing for the client-server feature. 解决方案: Add more tests. Add the remote_startserver() function. Fix that a locally evaluated expression uses function-local variables. 相关文件: src/if_xcmdsrv.c, src/evalfunc.c, src/os_mswin.c, src/proto/main.pro, src/testdir/test_clientserver.vim, runtime/doc/eval.txt Patch 8.0.0476 (after 8.0.0475) 问题: Missing change to main.c. 解决方案: Add new function. 相关文件: src/main.c Patch 8.0.0477 问题: The client-server test may hang when failing. 解决方案: Set a timer. Add assert_report() 相关文件: src/testdir/test_clientserver.vim, src/testdir/runtest.vim, src/eval.c, src/evalfunc.c, src/proto/eval.pro, src/if_xcmdsrv.c, src/os_mswin.c, runtime/doc/eval.txt Patch 8.0.0478 问题: Tests use assert_true(0) and assert_false(1) to report errors. 解决方案: Use assert_report(). 相关文件: src/testdir/test_cscope.vim, src/testdir/test_expr.vim, src/testdir/test_perl.vim, src/testdir/test_channel.vim, src/testdir/test_cursor_func.vim, src/testdir/test_gui.vim, src/testdir/test_menu.vim, src/testdir/test_popup.vim, src/testdir/test_viminfo.vim, src/testdir/test_vimscript.vim, src/testdir/test_assert.vim Patch 8.0.0479 问题: remote_peek() is not tested. 解决方案: Add a test. 相关文件: src/testdir/test_clientserver.vim, src/testdir/runtest.vim Patch 8.0.0480 问题: The remote_peek() test fails on MS-Windows. 解决方案: Check for pending messages. Also report errors in the first run if a flaky test fails twice. 相关文件: src/os_mswin.c, src/testdir/runtest.vim Patch 8.0.0481 问题: Unnecessary if statement. 解决方案: Remove the statement. Fix "it's" vs "its" mistakes. (Dominique Pelle, closes #1568) 相关文件: src/syntax.c Patch 8.0.0482 问题: The setbufvar() function may mess up the window layout. (Kay Z.) 解决方案: Do not check the window to be valid if it is NULL. 相关文件: src/window.c, src/testdir/test_functions.vim Patch 8.0.0483 问题: Illegal memory access when using :all. (Dominique Pelle) 解决方案: Adjust the cursor position right after setting "curwin". 相关文件: src/window.c, src/testdir/test_window_cmd.vim Patch 8.0.0484 问题: Using :lhelpgrep with an argument that should fail does not produce an error if the previous :helpgrep worked. 解决方案: Use another way to detect that autocommands made the quickfix info invalid. (Yegappan Lakshmanan) 相关文件: src/quickfix.c, src/testdir/test_quickfix.vim Patch 8.0.0485 问题: Not all windows commands are tested. 解决方案: Add more tests for windows commands. (Dominique Pelle, closes #1575) Run test_autocmd separately, it interferes with other tests. Fix tests that depended on side effects. 相关文件: src/testdir/test_window_cmd.vim, src/testdir/test_alot.vim, src/testdir/test_autocmd.vim, src/testdir/test_fnamemodify.vim, src/testdir/test_functions.vim, src/testdir/test_delete.vim, src/testdir/Make_all.mak Patch 8.0.0486 问题: Crash and endless loop when closing windows in a SessionLoadPost autocommand. 解决方案: Check for valid tabpage. (partly neovim #6308) 相关文件: src/testdir/test_autocmd.vim, src/fileio.c, src/proto/window.pro, src/window.c Patch 8.0.0487 问题: The autocmd test hangs on MS-Windows. 解决方案: Skip the hanging tests for now. 相关文件: src/testdir/test_autocmd.vim Patch 8.0.0488 问题: Running tests leaves an "xxx" file behind. 解决方案: Delete the 'verbosefile' after resetting the option. 相关文件: src/testdir/gen_opt_test.vim Patch 8.0.0489 问题: Clipboard and "* register is not tested. 解决方案: Add a test for Mac and X11. (Kazunobu Kuriyama) 相关文件: src/Makefile, src/testdir/Make_all.mak, src/testdir/test_quotestar.vim, src/testdir/runtest.vim Patch 8.0.0490 问题: Splitting a 'winfixwidth' window vertically makes it one column smaller. (Dominique Pelle) 解决方案: Add one to the width for the separator. 相关文件: src/window.c, src/testdir/test_window_cmd.vim Patch 8.0.0491 问题: The quotestar test fails when a required feature is missing. 解决方案: Prepend "Skipped" to the thrown exception. 相关文件: src/testdir/test_quotestar.vim Patch 8.0.0492 问题: A failing client-server request can make Vim hang. 解决方案: Add a timeout argument to functions that wait. 相关文件: src/evalfunc.c, src/if_xcmdsrv.c, src/proto/if_xcmdsrv.pro, src/main.c, src/os_mswin.c, src/proto/os_mswin.pro, src/vim.h, runtime/doc/eval.txt, src/testdir/test_clientserver.vim Patch 8.0.0493 问题: Crash with cd command with very long argument. 解决方案: Check for running out of space. (Dominique pending, closes #1576) 相关文件: src/testdir/test_alot.vim, src/testdir/test_cd.vim, src/Makefile, src/misc2.c Patch 8.0.0494 问题: Build failure with older compiler on MS-Windows. 解决方案: Move declaration to start of block. 相关文件: src/evalfunc.c, src/main.c, src/os_mswin.c Patch 8.0.0495 问题: The quotestar test uses a timer instead of a timeout, thus it cannot be rerun like a flaky test. 解决方案: Remove the timer and add a timeout. (Kazunobu Kuriyama) 相关文件: src/testdir/test_quotestar.vim Patch 8.0.0496 问题: Insufficient testing for folding. 解决方案: Add a couple more fold tests. (Dominique Pelle, closes #1579) 相关文件: src/testdir/test_fold.vim Patch 8.0.0497 问题: Arabic support is not fully tested. 解决方案: Add more tests for the untested functions. Comment out unreachable code. 相关文件: src/arabic.c, src/testdir/test_arabic.vim Patch 8.0.0498 问题: Two autocmd tests are skipped on MS-Windows. 解决方案: Make the test pass on MS-Windows. Write the messages in a file instead of getting the output of system(). 相关文件: src/testdir/test_autocmd.vim Patch 8.0.0499 问题: taglist() does not prioritize tags for a buffer. 解决方案: Add an optional buffer argument. (Duncan McDougall, closes #1194) 相关文件: runtime/doc/eval.txt, src/evalfunc.c, src/proto/tag.pro, src/Makefile, src/tag.c, src/testdir/test_alot.vim, src/testdir/test_taglist.vim Patch 8.0.0500 问题: Quotestar test is still a bit flaky. 解决方案: Add a slower check for v:version. 相关文件: src/testdir/test_quotestar.vim Patch 8.0.0501 问题: On MS-Windows ":!start" does not work as expected. 解决方案: When creating a process fails try passing the argument to ShellExecute(). (Katsuya Hino, closes #1570) 相关文件: runtime/doc/os_win32.txt, src/os_win32.c Patch 8.0.0502 问题: Coverity complains about possible NULL pointer. 解决方案: Add an assert(), let's see if this works on all systems. 相关文件: src/window.c Patch 8.0.0503 问题: Endless loop in updating folds with 32 bit ints. 解决方案: Subtract from LHS instead of add to the RHS. (Matthew Malcomson) 相关文件: src/fold.c Patch 8.0.0504 问题: Looking up an Ex command is a bit slow. 解决方案: Instead of just using the first letter, also use the second letter to skip ahead in the list of commands. Generate the table with a Perl script. (Dominique Pelle, closes #1589) 相关文件: src/Makefile, src/create_cmdidxs.pl, src/ex_docmd.c, Filelist Patch 8.0.0505 问题: Failed window split for :stag not handled. (Coverity CID 99204) 解决方案: If the split fails skip to the end. (bstaletic, closes #1577) 相关文件: src/tag.c Patch 8.0.0506 (after 8.0.0504) 问题: Can't build with ANSI C. 解决方案: Move declarations to start of block. 相关文件: src/ex_docmd.c Patch 8.0.0507 问题: Client-server tests fail when $DISPLAY is not set. 解决方案: Check for E240 before running the test. 相关文件: src/testdir/test_quotestar.vim, src/testdir/test_clientserver.vim Patch 8.0.0508 问题: Coveralls no longer shows per-file coverage. 解决方案: Add coverage from codecov.io. (Christian Brabandt) 相关文件: .travis.yml Patch 8.0.0509 问题: No link to codecov.io results. 解决方案: Add a badge to the readme file. 相关文件: README.md Patch 8.0.0510 (after 8.0.0509) 问题: Typo in link to codecov.io results. 解决方案: Remove duplicate https:. 相关文件: README.md Patch 8.0.0511 问题: Message for skipping client-server tests is unclear. 解决方案: Be more specific about what's missing (Hirohito Higashi, Kazunobu Kuriyama) 相关文件: src/testdir/test_quotestar.vim, src/testdir/test_clientserver.vim Patch 8.0.0512 问题: Check for available characters takes too long. 解决方案: Only check did_start_blocking if wtime is negative. (Daisuke Suzuki, closes #1591) 相关文件: src/os_unix.c Patch 8.0.0513 (after 8.0.0201) 问题: Getting name of cleared highlight group is wrong. (Matt Wozniski) 解决方案: Only skip over cleared names for completion. (closes #1592) Also fix that a cleared group causes duplicate completions. 相关文件: src/syntax.c, src/proto/syntax.pro, src/evalfunc.c, src/ex_cmds.c, src/testdir/test_syntax.vim, src/testdir/test_cmdline.vim Patch 8.0.0514 问题: Script for creating cmdidxs can be improved. 解决方案: Count skipped lines instead of collecting the lines. Add "const". (Dominique Pelle, closes #1594) 相关文件: src/create_cmdidxs.pl, src/ex_docmd.c Patch 8.0.0515 问题: ml_get errors in silent Ex mode. (Dominique Pelle) 解决方案: Clear valid flags when setting the cursor. Set the topline when not in full screen mode. 相关文件: src/ex_docmd.c, src/move.c, src/testdir/test_startup.vim Patch 8.0.0516 问题: A large count on a normal command causes trouble. (Dominique Pelle) 解决方案: Make "opcount" long. 相关文件: src/globals.h, src/testdir/test_normal.vim Patch 8.0.0517 问题: There is no way to remove quickfix lists (for testing). 解决方案: Add the 'f' action to setqflist(). Add tests. (Yegappan Lakshmanan) 相关文件: runtime/doc/eval.txt, src/evalfunc.c, src/quickfix.c, src/testdir/test_quickfix.vim Patch 8.0.0518 问题: Storing a zero byte from a multi-byte character causes fold text to show up wrong. 解决方案: Avoid putting zero in ScreenLines. (Christian Brabandt, closes #1567) 相关文件: src/screen.c, src/testdir/test_display.vim Patch 8.0.0519 问题: Character classes are not well tested. They can differ between platforms. 解决方案: Add tests. In the documentation make clear which classes depend on what library function. Only use :cntrl: and :graph: for ASCII. (Kazunobu Kuriyama, Dominique Pelle, closes #1560) Update the documentation. 相关文件: src/regexp.c, src/regexp_nfa.c, runtime/doc/pattern.txt, src/testdir/test_regexp_utf8.vim Patch 8.0.0520 问题: Using a function pointer instead of the actual function, which we know. 解决方案: Change mb_ functions to utf_ functions when already checked for Unicode. (Dominique Pelle, closes #1582) 相关文件: src/message.c, src/misc2.c, src/regexp.c, src/regexp_nfa.c, src/screen.c, src/spell.c Patch 8.0.0521 问题: GtkForm handling is outdated. 解决方案: Get rid of event filter functions. Get rid of GtkForm.width and .height. Eliminate gtk_widget_size_request() calls. (Kazunobu Kuriyama) 相关文件: src/gui_gtk_f.c, src/gui_gtk_f.h Patch 8.0.0522 问题: MS-Windows: when 'clipboard' is "unnamed" yyp does not work in a :global command. 解决方案: When setting the clipboard was postponed, do not clear the register. 相关文件: src/ops.c, src/proto/ui.pro, src/ui.c, src/globals.h, src/testdir/test_global.vim, src/Makefile, src/testdir/test_alot.vim Patch 8.0.0523 问题: dv} deletes part of a multi-byte character. (Urtica Dioica) 解决方案: Include the whole character. 相关文件: src/search.c, src/testdir/test_normal.vim Patch 8.0.0524 (after 8.0.0518) 问题: Folds are messed up when 'encoding' is "utf-8". 解决方案: Also set the fold character when it's not multi-byte. 相关文件: src/screen.c, src/testdir/test_display.vim Patch 8.0.0525 解决方案: Completion for user command argument not tested. 问题: Add a test. 相关文件: src/testdir/test_cmdline.vim Patch 8.0.0526 问题: Coverity complains about possible negative value. 解决方案: Check return value of ftell() not to be negative. 相关文件: src/os_unix.c Patch 8.0.0527 问题: RISC OS support was removed long ago, but one file is still included. 解决方案: Delete the file. (Thomas Dziedzic, closes #1603) 相关文件: Filelist, src/swis.s Patch 8.0.0528 问题: When 'wildmenu' is set and 'wildmode' has "longest" then the first file name is highlighted, even though the text shows the longest match. 解决方案: Do not highlight the first match. (LemonBoy, closes #1602) 相关文件: src/ex_getln.c Patch 8.0.0529 问题: Line in test commented out. 解决方案: Uncomment the lines for character classes that were failing before 8.0.0519. (Dominique Pelle, closes #1599) 相关文件: src/testdir/test_regexp_utf8.vim Patch 8.0.0530 问题: Buffer overflow when 'columns' is very big. (Nikolai Pavlov) 解决方案: Correctly compute where to truncate. Fix translation. (closes #1600) 相关文件: src/edit.c, src/testdir/test_edit.vim Patch 8.0.0531 (after 8.0.0530) 问题: Test with long directory name fails on non-unix systems. 解决方案: Skip the test on non-unix systems. 相关文件: src/testdir/test_edit.vim Patch 8.0.0532 (after 8.0.0531) 问题: Test with long directory name fails on Mac. 解决方案: Skip the test on Mac systems. 相关文件: src/testdir/test_edit.vim Patch 8.0.0533 问题: Abbreviation doesn't work after backspacing newline. (Hkonrk) 解决方案: Set the insert start column. (closes #1609) 相关文件: src/testdir/test_mapping.vim, src/edit.c Patch 8.0.0534 问题: Defaults.vim does not work well with tiny features. (crd477) 解决方案: When the +eval feature is not available always reset 'compatible'. 相关文件: runtime/defaults.vim Patch 8.0.0535 问题: Memory leak when exiting from within a user function. 解决方案: Clear the function call stack on exit. 相关文件: src/userfunc.c Patch 8.0.0536 问题: Quickfix window not updated when freeing quickfix stack. 解决方案: Update the quickfix window. (Yegappan Lakshmanan) 相关文件: src/quickfix.c, src/testdir/test_quickfix.vim Patch 8.0.0537 问题: Illegal memory access with :z and large count. 解决方案: Check for number overflow, using long instead of int. (Dominique Pelle, closes #1612) 相关文件: src/Makefile, src/ex_cmds.c, src/testdir/test_alot.vim, src/testdir/test_ex_z.vim Patch 8.0.0538 问题: No test for falling back to default term value. 解决方案: Add a test. 相关文件: src/testdir/test_startup.vim Patch 8.0.0539 (after 8.0.0538) 问题: Startup test fails on Mac. 解决方案: Use another term name, "unknown" is known. Avoid a 2 second delay. 相关文件: src/testdir/test_startup.vim, src/main.c, src/proto/main.pro, src/term.c Patch 8.0.0540 (after 8.0.0540) 问题: Building unit tests fails. 解决方案: Move params outside of #ifdef. 相关文件: src/main.c, src/message_test.c Patch 8.0.0541 问题: Compiler warning on MS-Windows. 解决方案: Add a type cast. (Mike Williams) 相关文件: src/edit.c Patch 8.0.0542 问题: getpos() can return a negative line number. (haya14busa) 解决方案: Handle a zero topline and botline. (closes #1613) 相关文件: src/eval.c, runtime/doc/eval.txt Patch 8.0.0543 问题: Test_edit causes older xfce4-terminal to close. (Dominique Pelle) 解决方案: Reduce number of columns to 2000. Try to restore the window position. 相关文件: src/testdir/test_edit.vim, src/evalfunc.c, src/term.c, src/proto/term.pro, src/term.h Patch 8.0.0544 问题: Cppcheck warnings. 解决方案: Use temp variable. Change NUL to NULL. Swap conditions. (Dominique Pelle) 相关文件: src/channel.c, src/edit.c, src/farsi.c Patch 8.0.0545 问题: Edit test may fail on some systems. 解决方案: If creating a directory with a very long path fails, bail out. 相关文件: src/testdir/test_edit.vim Patch 8.0.0546 问题: Swap file exists briefly when opening the command window. 解决方案: Set the noswapfile command modifier before splitting the window. (James McCoy, closes #1620) 相关文件: src/ex_getln.c, src/option.c Patch 8.0.0547 问题: Extra line break in verbosefile when using ":echomsg". (Ingo Karkat) 解决方案: Don't call msg_start(). (closes #1618) 相关文件: src/eval.c, src/testdir/test_cmdline.vim Patch 8.0.0548 问题: Saving the redo buffer only works one time, resulting in the "." command not working well for a function call inside another function call. (Ingo Karkat) 解决方案: Save the redo buffer at every user function call. (closes #1619) 相关文件: src/getchar.c, src/proto/getchar.pro, src/structs.h, src/fileio.c, src/userfunc.c, src/testdir/test_functions.vim Patch 8.0.0549 问题: No test for the 8g8 command. 解决方案: Add a test. (Dominique Pelle, closes #1615) 相关文件: src/testdir/test_normal.vim Patch 8.0.0550 问题: Some etags format tags file use 0x01, breaking the parsing. 解决方案: Use 0x02 for TAG_SEP. (James McCoy, closes #1614) 相关文件: src/tag.c, src/testdir/test_taglist.vim Patch 8.0.0551 问题: The typeahead buffer is reallocated too often. 解决方案: Re-use the existing buffer if possible. 相关文件: src/getchar.c Patch 8.0.0552 问题: Toupper and tolower don't work properly for Turkish when 'casemap' is empty. (Bjorn Linse) 解决方案: Check the 'casemap' options when deciding how to upper/lower case. 相关文件: src/charset.c, src/testdir/test_normal.vim Patch 8.0.0553 (after 8.0.0552) 问题: Toupper/tolower test with Turkish locale fails on Mac. 解决方案: Skip the test on Mac. 相关文件: src/testdir/test_normal.vim Patch 8.0.0554 (after 8.0.0552) 问题: Toupper and tolower don't work properly for Turkish when 'casemap' contains "keepascii". (Bjorn Linse) 解决方案: When 'casemap' contains "keepascii" use ASCII toupper/tolower. 相关文件: src/charset.c, src/testdir/test_normal.vim Patch 8.0.0555 (after 8.0.0552) 问题: Toupper/tolower test fails on OSX without Darwin. 解决方案: Skip that part of the test also for OSX. (Kazunobu Kuriyama) 相关文件: src/testdir/test_normal.vim Patch 8.0.0556 问题: Getting the window position fails if both the GUI and term code is built in. 解决方案: Return after getting the GUI window position. (Kazunobu Kuriyama) 相关文件: src/evalfunc.c Patch 8.0.0557 问题: GTK: using static gravities is not useful. 解决方案: Remove setting static gravities. (Kazunobu Kuriyama) 相关文件: src/gui_gtk_f.c Patch 8.0.0558 问题: The :ownsyntax command is not tested. 解决方案: Add a test. (Dominique Pelle, closes #1622) 相关文件: src/testdir/test_syntax.vim Patch 8.0.0559 问题: Setting 'ttytype' to xxx does not always fail as expected. (Marvin Schmidt) 解决方案: Catch both possible errors. (closes #1601) 相关文件: src/testdir/test_options.vim Patch 8.0.0560 问题: :windo allows for ! but it's not supported. 解决方案: Disallow passing !. (Hirohito Higashi) 相关文件: src/ex_cmds.h Patch 8.0.0561 问题: Undefined behavior when using backslash after empty line. 解决方案: Check for an empty line. (Dominique Pelle, closes #1631) 相关文件: src/misc2.c, src/testdir/test_vimscript.vim Patch 8.0.0562 问题: Not enough test coverage for syntax commands. 解决方案: Add a few more tests. (Dominique Pelle, closes #1624) 相关文件: src/testdir/test_cmdline.vim, src/testdir/test_syntax.vim Patch 8.0.0563 问题: Crash when getting the window position in tmux. (Marvin Schmidt) 解决方案: Add t_GP to the list of terminal options. (closes #1627) 相关文件: src/option.c Patch 8.0.0564 问题: Cannot detect Bazel BUILD files on some systems. 解决方案: Check for BUILD after script checks. (Issue #1340) 相关文件: runtime/filetype.vim Patch 8.0.0565 问题: Using freed memory in :caddbuf after clearing quickfix list. (Dominique Pelle) 解决方案: Set qf_last to NULL. 相关文件: src/quickfix.c Patch 8.0.0566 问题: Setting 'nocompatible' for the tiny version moves the cursor. 解决方案: Use another trick to skip commands when the +eval feature is present. (Christian Brabandt, closes #1630) 相关文件: runtime/defaults.vim Patch 8.0.0567 问题: Call for requesting color and ambiwidth is too early. (Hirohito Higashi) 解决方案: Move the call down to below resetting "starting". 相关文件: src/main.c Patch 8.0.0568 问题: "1gd" may hang. 解决方案: Don't get stuck in one position. (Christian Brabandt, closes #1643) 相关文件: src/testdir/test_goto.vim, src/normal.c Patch 8.0.0569 问题: Bracketed paste is still enabled when executing a shell command. (Michael Smith) 解决方案: Disable bracketed paste when going into cooked mode. (closes #1638) 相关文件: src/term.c Patch 8.0.0570 问题: Can't run make with several jobs, creating directories has a race condition. 解决方案: Use the MKDIR_P autoconf mechanism. (Eric N. Vander Weele, closes #1639) 相关文件: src/configure.ac, src/auto/configure, src/Makefile, src/config.mk.in, src/install-sh, src/mkinstalldirs, Filelist Patch 8.0.0571 问题: The cursor line number becomes negative when using :z^ in an empty buffer. (neovim #6557) 解决方案: Correct the line number. Also reset the column. 相关文件: src/testdir/test_ex_z.vim, src/ex_cmds.c Patch 8.0.0572 问题: Building the command table requires Perl. 解决方案: Use a Vim script solution. (Dominique Pelle, closes #1641) 相关文件: src/Makefile, src/create_cmdidxs.pl, src/create_cmdidxs.vim, src/ex_cmdidxs.h, src/ex_docmd.c, Filelist Patch 8.0.0573 问题: Running parallel make after distclean fails. (Manuel Ortega) 解决方案: Instead of using targets "scratch config myself" use "reconfig". 相关文件: src/Makefile, src/config.mk.dist Patch 8.0.0574 问题: Get only one quickfix list after :caddbuf. 解决方案: Reset qf_multiline. (Yegappan Lakshmanan) 相关文件: src/quickfix.c, src/testdir/test_quickfix.vim Patch 8.0.0575 问题: Using freed memory when resetting 'indentexpr' while evaluating it. (Dominique Pelle) 解决方案: Make a copy of 'indentexpr'. 相关文件: src/misc1.c, src/testdir/test_options.vim Patch 8.0.0576 (after 8.0.0570 and 8.0.0573) 问题: Can't build when configure chooses "install-sh". (Daniel Hahler) 解决方案: Always use install-sh. Fix remaining use of mkinstalldirs. (closes #1647) 相关文件: src/installman.sh, src/installml.sh, src/config.mk.in, src/configure.ac, src/auto/configure, src/Makefile Patch 8.0.0577 (after 8.0.0575) 问题: Warning for uninitialized variable. (John Marriott) 解决方案: Initialize "indent". 相关文件: src/misc1.c Patch 8.0.0578 问题: :simalt on MS-Windows does not work properly. 解决方案: Put something in the typeahead buffer. (Christian Brabandt) 相关文件: src/gui_w32.c Patch 8.0.0579 问题: Duplicate test case for quickfix. 解决方案: Remove the function. (Yegappan Lakshmanan) 相关文件: src/testdir/test_quickfix.vim Patch 8.0.0580 问题: Cannot set the valid flag with setqflist(). 解决方案: Add the "valid" argument. (Yegappan Lakshmanan, closes #1642) 相关文件: runtime/doc/eval.txt, src/quickfix.c, src/testdir/test_quickfix.vim Patch 8.0.0581 问题: Moving folded text is sometimes not correct. 解决方案: Bail out when "move_end" is zero. (Matthew Malcomson) 相关文件: src/fold.c, src/testdir/test_fold.vim Patch 8.0.0582 问题: Illegal memory access with z= command. (Dominique Pelle) 解决方案: Avoid case folded text to be longer than the original text. Use MB_PTR2LEN() instead of MB_BYTE2LEN(). 相关文件: src/spell.c, src/testdir/test_spell.vim Patch 8.0.0583 问题: Fold test hangs on MS-Windows. 解决方案: Avoid overflow in compare. 相关文件: src/fold.c Patch 8.0.0584 问题: Memory leak when executing quickfix tests. 解决方案: Free the list reference. (Yegappan Lakshmanan) 相关文件: src/quickfix.c Patch 8.0.0585 问题: Test_options fails when run in the GUI. 解决方案: Also check the 'imactivatekey' value when the GUI is not running. Specify test values that work and that fail. 相关文件: src/option.c, src/testdir/gen_opt_test.vim Patch 8.0.0586 问题: No test for mapping timing out. 解决方案: Add a test. 相关文件: src/testdir/test_mapping.vim vim:tw=78:ts=8:ft=help:norl:

Generated by vim2html