patch 178

165 から 178 へ。

Patch 7.0.165
Problem:    Using CTRL-L at the search prompt adds a "/" and other characters without escaping, causing the pattern not to match.
Solution:   Escape special characters with a backslash.
Files:	    src/ex_getln.c
Patch 7.0.166
Problem:    Crash in cscope code when connection could not be opened. (Kaya Bekiroglu)
Solution:   Check for the file descriptor to be NULL.
Files:	    src/if_cscope.c
Patch 7.0.167
Problem:    ":function" redefining a dict function doesn't work properly.
	    (Richard Emberson)
Solution:   Allow a function name to be a number when it's a function reference.
Files:	    src/eval.c
Patch 7.0.168
Problem:    Using uninitialized memory and memory leak. (Dominique Pelle)
Solution:   Use alloc_clear() instead of alloc() for w_lines.  Free b_ml.ml_stack after recovery.
Files:	    src/memline.c, src/window.c
Patch 7.0.169
Problem:    With a Visual block selection, with the cursor in the left upper
	    corner, pressing "I" doesn't remove the highlighting. (Guopeng Wen)
Solution:   When checking if redrawing is needed also check if Visual selection is still active.
Files:	    src/screen.c
Patch 7.0.170 (extra)
Problem:    Win32: Using "gvim --remote-tab foo" when gvim is minimized while it previously was maximized, un-maximizing doesn't work properly.
	    And the labels are not displayed properly when 'encoding' is utf-8.
Solution:   When minimized check for SW_SHOWMINIMIZED.	When updating the tab pages line use TCM_SETITEMW instead of TCM_INSERTITEMW. (Liu Yubao)
Files:	    src/gui_w48.c
Patch 7.0.171 (extra)
Problem:    VMS: A file name with multiple paths is written in the wrong file.
Solution:   Get the actually used file name. (Zoltan Arpadffy)
	    Also add info to the :version command about compilation.
Files:	    src/Make_vms.mms, src/buffer.c, src/os_unix.c, src/version.c
Patch 7.0.172
Problem:    Crash when recovering and quitting at the "press-enter" prompt.
Solution:   Check for "msg_list" to be NULL. (Liu Yubao)
Files:	    src/ex_eval.c
Patch 7.0.173
Problem:    ":call f().TT()" doesn't work.  (Richard Emberson)
Solution:   When a function returns a Dictionary or another composite continue evaluating what follows.
Files:	    src/eval.c	  
Patch 7.0.174
Problem:    ":mksession" doesn't restore window layout correctly in tab pages other than the current one. (Zhibin He)
Solution:   Use the correct topframe for producing the window layout commands.
Files:	    src/ex_docmd.c
Patch 7.0.175
Problem:    The result of tr() is missing the terminating NUL. (Ingo Karkat)
Solution:   Add the NUL.
Files:	    src/eval.c
Patch 7.0.176
Problem:    ":emenu" isn't executed directly, causing the encryption key prompt to fail. (Life Jazzer)
Solution:   Fix wrong #ifdef.
Files:	    src/menu.c
Patch 7.0.177
Problem:    When the press-enter prompt gets a character from a non-remappable mapping, it's put back in the typeahead buffer as remappable, which may cause an endless loop.
Solution:   Restore the non-remappable flag and the silent flag when putting a char back in the typeahead buffer.
Files:	    src/getchar.c, src/message.c, src/normal.c
Patch 7.0.178
Problem:    When 'enc' is "utf-8" and 'ignorecase' is set the result of ":echo ("\xe4" == "\xe4")" varies.
Solution:   In mb_strnicmp() avoid looking past NUL bytes.
Files:	    src/mbyte.cPatch 7.0.178