]> granicus.if.org Git - vim/log
vim
7 years agopatch 8.0.1039: cannot change a line in not current buffer v8.0.1039
Bram Moolenaar [Sat, 2 Sep 2017 17:45:19 +0000 (19:45 +0200)]
patch 8.0.1039: cannot change a line in not current buffer

Problem:    Cannot change a line in a buffer other than the current one.
Solution:   Add setbufline(). (Yasuhiro Matsumoto, Ozaki Kiichi, closes #1953)

7 years agopatch 8.0.1038: strike-through text not supported v8.0.1038
Bram Moolenaar [Sat, 2 Sep 2017 16:33:56 +0000 (18:33 +0200)]
patch 8.0.1038: strike-through text not supported

Problem:    Strike-through text not supported.
Solution:   Add support for the "strikethrough" attribute. (Christian
            Brabandt, Ken Takata)

7 years agopatch 8.0.1037: "icase" of 'diffopt' is not used for highlighting v8.0.1037
Bram Moolenaar [Sat, 2 Sep 2017 16:01:50 +0000 (18:01 +0200)]
patch 8.0.1037: "icase" of 'diffopt' is not used for highlighting

Problem:    "icase" of 'diffopt' is not used for highlighting differences.
Solution:   Also use "icase". (Rick Howe)

7 years agopatch 8.0.1036: ++eof argument for terminal only available on MS-Windows v8.0.1036
Bram Moolenaar [Sat, 2 Sep 2017 15:18:35 +0000 (17:18 +0200)]
patch 8.0.1036: ++eof argument for terminal only available on MS-Windows

Problem:    ++eof argument for terminal only available on MS-Windows.
Solution:   Also support ++eof on Unix.  Add a test.

7 years agopatch 8.0.1035: sending buffer lines to terminal doesn't work on MS-Windows v8.0.1035
Bram Moolenaar [Sat, 2 Sep 2017 14:28:36 +0000 (16:28 +0200)]
patch 8.0.1035: sending buffer lines to terminal doesn't work on MS-Windows

Problem:    Sending buffer lines to terminal doesn't work on MS-Windows.
Solution:   Use CR instead of NL after every line.  Make the EOF text work
            properly.  Add the ++eof argument to :terminal.

7 years agopatch 8.0.1034: sending buffer lines to terminal doesn't work on MS-Windows v8.0.1034
Bram Moolenaar [Sat, 2 Sep 2017 12:54:21 +0000 (14:54 +0200)]
patch 8.0.1034: sending buffer lines to terminal doesn't work on MS-Windows

Problem:    Sending buffer lines to terminal doesn't work on MS-Windows.
Solution:   Send CTRL-D to mark the end of the text. (Yasuhiro Matsumoto,
            closes #2043) Add the "eof_chars" option.

7 years agopatch 8.0.1033: detecting background color does not work in screen v8.0.1033
Bram Moolenaar [Fri, 1 Sep 2017 18:24:03 +0000 (20:24 +0200)]
patch 8.0.1033: detecting background color does not work in screen

Problem:    Detecting background color does not work in screen, even when it
            is working like an xterm.
Solution:   Make "screen.xterm" use termcap entries like an xterm. (Lubomir
            Rintel, closes #2048)  When termresponse version is huge also
            recognize as not being an xterm.

7 years agopatch 8.0.1032: "make tags" doesn't work well on MS-Windows v8.0.1032
Bram Moolenaar [Fri, 1 Sep 2017 16:41:26 +0000 (18:41 +0200)]
patch 8.0.1032: "make tags" doesn't work well on MS-Windows

Problem:    "make tags" doesn't work well on MS-Windows.
Solution:   Add or fix tags target. (Ken Takata)

7 years agopatch 8.0.1031: "text" argument for getqflist() is confusing v8.0.1031
Bram Moolenaar [Fri, 1 Sep 2017 16:34:02 +0000 (18:34 +0200)]
patch 8.0.1031: "text" argument for getqflist() is confusing

Problem:    "text" argument for getqflist() is confusing. (Lcd47)
Solution:   Use "lines" instead. (Yegappan Lakshmanan)

7 years agopatch 8.0.1030: MS-Windows: wrong size computation in is_cygpty() v8.0.1030
Bram Moolenaar [Thu, 31 Aug 2017 19:35:45 +0000 (21:35 +0200)]
patch 8.0.1030: MS-Windows: wrong size computation in is_cygpty()

Problem:    MS-Windows: wrong size computation in is_cygpty().
Solution:   Compute the size properly. (Ken Takata)

7 years agopatch 8.0.1029: return value of getqflist() is inconsistent v8.0.1029
Bram Moolenaar [Thu, 31 Aug 2017 18:58:02 +0000 (20:58 +0200)]
patch 8.0.1029: return value of getqflist() is inconsistent

Problem:    Return value of getqflist() is inconsistent.  (Lcd47)
Solution:   Always return an "items" entry.

7 years agopatch 8.0.1028: MS-Windows: viminfo uses $VIM/_viminfo if $HOME not set v8.0.1028
Bram Moolenaar [Thu, 31 Aug 2017 18:42:18 +0000 (20:42 +0200)]
patch 8.0.1028: MS-Windows: viminfo uses $VIM/_viminfo if $HOME not set

Problem:    MS-Windows: viminfo uses $VIM/_viminfo if $HOME not set. (Yongwei
            Wu)
Solution:   Use vim_getenv() but check it's returning the default "C:/".

7 years agopatch 8.0.1027: more terminals can't handle requesting cursor mode v8.0.1027
Bram Moolenaar [Thu, 31 Aug 2017 18:17:59 +0000 (20:17 +0200)]
patch 8.0.1027: more terminals can't handle requesting cursor mode

Problem:    More terminals can't handle requesting cursor mode.
Solution:   Recognize Putty. (Hirohito Higashi)  Also include Xfce in the
            version check. (Dominique Pelle)  Recognize Konsole.

7 years agopatch 8.0.1026: GTK on-the-spot input has problems v8.0.1026
Bram Moolenaar [Wed, 30 Aug 2017 20:00:20 +0000 (22:00 +0200)]
patch 8.0.1026: GTK on-the-spot input has problems

Problem:    GTK on-the-spot input has problems. (Gerd Wachsmuth)
Solution:   Support over-the-spot. (Yukihiro Nakadaira, Ketn Takata, closes
            #1215)

7 years agopatch 8.0.1025: stray copy command in test v8.0.1025
Bram Moolenaar [Wed, 30 Aug 2017 19:58:03 +0000 (21:58 +0200)]
patch 8.0.1025: stray copy command in test

Problem:    Stray copy command in test.
Solution:   Remove the copy command.

7 years agopatch 8.0.1024: folds lost when session file has a buffer in two windows v8.0.1024
Bram Moolenaar [Wed, 30 Aug 2017 19:07:38 +0000 (21:07 +0200)]
patch 8.0.1024: folds lost when session file has a buffer in two windows

Problem:    Manual folds are lost when a session file has the same buffer in
            two windows. (Jeansen)
Solution:   Use ":edit" only once. (Christian Brabandt, closes #1958)

7 years agopatch 8.0.1023: it is not easy to identify a quickfix list v8.0.1023
Bram Moolenaar [Wed, 30 Aug 2017 18:33:55 +0000 (20:33 +0200)]
patch 8.0.1023: it is not easy to identify a quickfix list

Problem:    It is not easy to identify a quickfix list.
Solution:   Add the "id" field. (Yegappan Lakshmanan)

7 years agopatch 8.0.1022: test 80 is old style v8.0.1022
Bram Moolenaar [Wed, 30 Aug 2017 18:21:58 +0000 (20:21 +0200)]
patch 8.0.1022: test 80 is old style

Problem:    Test 80 is old style.
Solution:   Turn it into a new style test. (Yegappan Lakshmanan)

7 years agopatch 8.0.1021: older Gnome terminal still echoes t_RC v8.0.1021
Bram Moolenaar [Wed, 30 Aug 2017 16:59:03 +0000 (18:59 +0200)]
patch 8.0.1021: older Gnome terminal still echoes t_RC

Problem:    Older Gnome terminal still echoes t_RC. (Fracois Ingelrest)
Solution:   Check for version > 3000 instead of 4000.

7 years agopatch 8.0.1020: when a timer calls getchar(1) input is overwritten v8.0.1020
Bram Moolenaar [Wed, 30 Aug 2017 16:52:56 +0000 (18:52 +0200)]
patch 8.0.1020: when a timer calls getchar(1) input is overwritten

Problem:    When a timer calls getchar(1) input is overwritten.
Solution:   Increment tb_change_cnt in inchar(). (closes #1940)

7 years agopatch 8.0.1019: pasting in virtual edit happens in the wrong place v8.0.1019
Bram Moolenaar [Wed, 30 Aug 2017 15:01:35 +0000 (17:01 +0200)]
patch 8.0.1019: pasting in virtual edit happens in the wrong place

Problem:    Pasting in virtual edit happens in the wrong place.
Solution:   Do not adjust coladd when after the end of the line (closes #2015)

7 years agopatch 8.0.1018: warnings from 64-bit compiler v8.0.1018
Bram Moolenaar [Wed, 30 Aug 2017 13:57:33 +0000 (15:57 +0200)]
patch 8.0.1018: warnings from 64-bit compiler

Problem:    Warnings from 64-bit compiler. (Christian Brabandt)
Solution:   Add type casts.

7 years agopatch 8.0.1017: test for MS-Windows $HOME always passes v8.0.1017
Bram Moolenaar [Wed, 30 Aug 2017 12:55:42 +0000 (14:55 +0200)]
patch 8.0.1017: test for MS-Windows $HOME always passes

Problem:    Test for MS-Windows $HOME always passes.
Solution:   Rename the test function.  Make the test pass.

7 years agopatch 8.0.1016: gnome terminal echoes t_RC v8.0.1016
Bram Moolenaar [Wed, 30 Aug 2017 12:53:06 +0000 (14:53 +0200)]
patch 8.0.1016: gnome terminal echoes t_RC

Problem:    Gnome terminal echoes t_RC.
Solution:   Detect Gnome terminal by the version string.  Add v: variables for
            all the term responses.

7 years agopatch 8.0.1015: missing update to terminal test v8.0.1015
Bram Moolenaar [Wed, 30 Aug 2017 11:31:49 +0000 (13:31 +0200)]
patch 8.0.1015: missing update to terminal test

Problem:    Missing update to terminal test.
Solution:   Add the changes to the test.

7 years agopatch 8.0.1014: old compiler doesn't know uint32_t v8.0.1014
Bram Moolenaar [Wed, 30 Aug 2017 11:22:28 +0000 (13:22 +0200)]
patch 8.0.1014: old compiler doesn't know uint32_t

Problem:    Old compiler doesn't know uint32_t. Warning for using NULL instead
            of NUL.
Solution:   Use UINT32_T.  Use NUL instead of NULL.

7 years agopatch 8.0.1013: terminal window behaves different from a buffer with changes v8.0.1013
Bram Moolenaar [Tue, 29 Aug 2017 20:44:59 +0000 (22:44 +0200)]
patch 8.0.1013: terminal window behaves different from a buffer with changes

Problem:    A terminal window with a running job behaves different from a
            window containing a changed buffer.
Solution:   Do not set 'bufhidden' to "hide".  Fix that a buffer where a
            terminal used to run is listed as "[Scratch]".

7 years agopatch 8.0.1012: MS-Windows: problem with $HOME when is was set internally v8.0.1012
Bram Moolenaar [Tue, 29 Aug 2017 20:08:53 +0000 (22:08 +0200)]
patch 8.0.1012: MS-Windows: problem with $HOME when is was set internally

Problem:    MS-Windows: Problem with $HOME when is was set internally.
Solution:   Only use the $HOME default internally. (Yasuhiro Matsumoto, closes
            #2013)

7 years agopatch 8.0.1011: terminal test fails with Athena and Motif v8.0.1011
Bram Moolenaar [Tue, 29 Aug 2017 18:42:07 +0000 (20:42 +0200)]
patch 8.0.1011: terminal test fails with Athena and Motif

Problem:    Terminal test fails with Athena and Motif.
Solution:   Ignore the error for the input context. (Kazunobu Kuriyama)

7 years agopatch 8.0.1010: build failure without termresponse feature v8.0.1010
Bram Moolenaar [Mon, 28 Aug 2017 21:00:55 +0000 (23:00 +0200)]
patch 8.0.1010: build failure without termresponse feature

Problem:    Build failure without termresponse feature.
Solution:   Add #ifdef.

7 years agopatch 8.0.1009: Xterm cursor blinking status may be inverted v8.0.1009
Bram Moolenaar [Mon, 28 Aug 2017 20:43:05 +0000 (22:43 +0200)]
patch 8.0.1009: Xterm cursor blinking status may be inverted

Problem:    Xterm cursor blinking status may be inverted.
Solution:   Use another request to get the blink status and compare with the
            cursor style report

7 years agopatch 8.0.1008: slow updating of terminal window in Motif v8.0.1008
Bram Moolenaar [Sun, 27 Aug 2017 15:38:27 +0000 (17:38 +0200)]
patch 8.0.1008: slow updating of terminal window in Motif

Problem:    Slow updating of terminal window in Motif.
Solution:   Add a timeout to the wait-for-character loop.

7 years agopatch 8.0.1007: no test for filetype detection for scripts v8.0.1007
Bram Moolenaar [Sun, 27 Aug 2017 14:54:26 +0000 (16:54 +0200)]
patch 8.0.1007: no test for filetype detection for scripts

Problem:    No test for filetype detection for scripts.
Solution:   Add a first test file script filetype detection.

7 years agoUpdate runtime files
Bram Moolenaar [Sun, 27 Aug 2017 14:52:01 +0000 (16:52 +0200)]
Update runtime files

7 years agopatch 8.0.1006: quickfix list changes when parsing text with 'erroformat' v8.0.1006
Bram Moolenaar [Sun, 27 Aug 2017 13:23:41 +0000 (15:23 +0200)]
patch 8.0.1006: quickfix list changes when parsing text with 'erroformat'

Problem:    Cannot parse text with 'erroformat' without changing a quickfix
            list.
Solution:   Add the "text" argument to getqflist(). (Yegappan Lakshmanan)

7 years agopatch 8.0.1005: terminal without job updates slowly in GUI v8.0.1005
Bram Moolenaar [Sun, 27 Aug 2017 12:50:47 +0000 (14:50 +0200)]
patch 8.0.1005: terminal without job updates slowly in GUI

Problem:    Terminal without job updates slowly in GUI.
Solution:   Poll for input when a channel has the keep_open flag.

7 years agopatch 8.0.1004: matchstrpos() without a match returns too many items v8.0.1004
Bram Moolenaar [Sun, 27 Aug 2017 11:51:01 +0000 (13:51 +0200)]
patch 8.0.1004: matchstrpos() without a match returns too many items

Problem:    Matchstrpos() without a match returns too many items.
Solution:   Also remove the second item when the position is beyond the end of
            the string. (Hirohito Higashi)  Use an enum for the type.

7 years agopatch 8.0.1003: 64 bit compiler warning v8.0.1003
Bram Moolenaar [Sun, 27 Aug 2017 11:10:10 +0000 (13:10 +0200)]
patch 8.0.1003: 64 bit compiler warning

Problem:    64 bit compiler warning
Solution:   Add type cast. (Mike Williams)

7 years agopatch 8.0.1002: unnecessarily updating screen after timer callback v8.0.1002
Bram Moolenaar [Sat, 26 Aug 2017 21:43:28 +0000 (23:43 +0200)]
patch 8.0.1002: unnecessarily updating screen after timer callback

Problem:    Unnecessarily updating screen after timer callback.
Solution:   Check if calling the timer sets must_redraw.

7 years agopatch 8.0.1001: setting 'encoding' makes 'printheader' invalid v8.0.1001
Bram Moolenaar [Sat, 26 Aug 2017 20:30:15 +0000 (22:30 +0200)]
patch 8.0.1001: setting 'encoding' makes 'printheader' invalid

Problem:    Setting 'encoding' makes 'printheader' invalid.
Solution:   Do not translate the default value of 'printheader'. (Yasuhiro
            Matsumoto, closes #2026)

7 years agopatch 8.0.1000: cannot open a terminal without running a job in it v8.0.1000
Bram Moolenaar [Sat, 26 Aug 2017 20:02:51 +0000 (22:02 +0200)]
patch 8.0.1000: cannot open a terminal without running a job in it

Problem:    Cannot open a terminal without running a job in it.
Solution:   Make ":terminal NONE" open a terminal with a pty.

7 years agopatch 8.0.0999: indenting raw C++ strings is wrong v8.0.0999
Bram Moolenaar [Sat, 26 Aug 2017 15:49:01 +0000 (17:49 +0200)]
patch 8.0.0999: indenting raw C++ strings is wrong

Problem:    Indenting raw C++ strings is wrong.
Solution:   Add special handling of raw strings. (Christian Brabandt)

7 years agopatch 8.0.0998: strange error when using K while only spaces are selected v8.0.0998
Bram Moolenaar [Sat, 26 Aug 2017 14:25:32 +0000 (16:25 +0200)]
patch 8.0.0998: strange error when using K while only spaces are selected

Problem:    Strange error when using K while only spaces are selected.
            (Christian J. Robinson)
Solution:   Check for blank argument.

7 years agopatch 8.0.0997 v8.0.0997
Bram Moolenaar [Sat, 26 Aug 2017 13:29:47 +0000 (15:29 +0200)]
patch 8.0.0997
Problem:    Libvterm and Terminal.app not regognized from termresponse.
Solution:   Adjust string compare.

7 years agopatch 8.0.0996: Mac: t_RS is echoed on the screne in Terminal.app v8.0.0996
Bram Moolenaar [Sat, 26 Aug 2017 13:16:03 +0000 (15:16 +0200)]
patch 8.0.0996: Mac: t_RS is echoed on the screne in Terminal.app

Problem:    Mac: t_RS is echoed on the screne in Terminal.app.  Even though
            $TERM is set to "xterm-256colors" it cannot handle this xterm
            escape sequence.
Solution:   Recognize Terminal.app from the termresponse and skip sending t_RS
            if it looks like Terminal.app.

7 years agopatch 8.0.0995: terminal tests fail on Mac v8.0.0995
Bram Moolenaar [Fri, 25 Aug 2017 21:22:05 +0000 (23:22 +0200)]
patch 8.0.0995: terminal tests fail on Mac

Problem:    Terminal tests fail on Mac.
Solution:   Add workaround: sleep a moment in between sending keys.

7 years agopatch 8.0.0994: MS-Windows: cursor in terminal blinks undesirably v8.0.0994
Bram Moolenaar [Thu, 24 Aug 2017 19:48:26 +0000 (21:48 +0200)]
patch 8.0.0994: MS-Windows: cursor in terminal blinks undesirably

Problem:    MS-Windows: cursor in terminal blinks even though the blinking
            cursor was disabled on the system.
Solution:   Use GetCaretBlinkTime(). (Ken Takata)

7 years agopatch 8.0.0993: sometimes an xterm sends an extra CTRL-X v8.0.0993
Bram Moolenaar [Thu, 24 Aug 2017 18:21:16 +0000 (20:21 +0200)]
patch 8.0.0993: sometimes an xterm sends an extra CTRL-X

Problem:    Sometimes an xterm sends an extra CTRL-X after the response for
            the background color.  Related to t_RS.
Solution:   Check for the CTRL-X after the terminating 0x7.

7 years agopatch 8.0.0992: terminal title is wrong when 'encoding' is DBCS v8.0.0992
Bram Moolenaar [Wed, 23 Aug 2017 21:51:58 +0000 (23:51 +0200)]
patch 8.0.0992: terminal title is wrong when 'encoding' is DBCS

Problem:    Terminal title is wrong when 'encoding' is DBCS.
Solution:   Convert the title from DBCS to utf-8. (Yasuhiro Matsumoto, closes
            #2009)

7 years agopatch 8.0.0991: using wrong character conversion for DBCS v8.0.0991
Bram Moolenaar [Wed, 23 Aug 2017 21:36:25 +0000 (23:36 +0200)]
patch 8.0.0991: using wrong character conversion for DBCS

Problem:    Using wrong character conversion for DBCS.
Solution:   Use utf_char2bytes instead of mb_char2bytes. (Yasuhiro Matsumoto,
            closes #2012)

7 years agopatch 8.0.0990: with DBCS 'encoding' wrong pasting register into terminal v8.0.0990
Bram Moolenaar [Wed, 23 Aug 2017 21:10:21 +0000 (23:10 +0200)]
patch 8.0.0990: with DBCS 'encoding' wrong pasting register into terminal

Problem:    When 'encoding' is a double-byte encoding, pasting a register into
            a terminal ends up with the wrong characters.
Solution:   Convert from 'encoding' to utf-8. (Yasuhiro Matsumoto, closes
            #2007)

7 years agopatch 8.0.0989: ActiveTcl dll name has changed in 8.6.6 v8.0.0989
Bram Moolenaar [Wed, 23 Aug 2017 20:40:41 +0000 (22:40 +0200)]
patch 8.0.0989: ActiveTcl dll name has changed in 8.6.6

Problem:    ActiveTcl dll name has changed in 8.6.6.
Solution:   Adjust the makefile. (Ken Takata)

7 years agopatch 8.0.0988: warning from Covscan about using NULL pointer v8.0.0988
Bram Moolenaar [Wed, 23 Aug 2017 20:32:35 +0000 (22:32 +0200)]
patch 8.0.0988: warning from Covscan about using NULL pointer

Problem:    Warning from Covscan about using NULL pointer.
Solution:   Add extra check for NULL. (zdohnal)

7 years agopatch 8.0.0987: terminal: second byte of double-byte char wrong v8.0.0987
Bram Moolenaar [Tue, 22 Aug 2017 20:29:00 +0000 (22:29 +0200)]
patch 8.0.0987: terminal: second byte of double-byte char wrong

Problem:    terminal: second byte of double-byte char wrong
Solution:   Set the second byte to NUL only for utf-8 and non-multibyte.

7 years agopatch 8.0.0986: terminal feature always requires multi-byte feature v8.0.0986
Bram Moolenaar [Tue, 22 Aug 2017 20:21:37 +0000 (22:21 +0200)]
patch 8.0.0986: terminal feature always requires multi-byte feature

Problem:    Terminal feature always requires multi-byte feature.
Solution:   Remove #ifdef FEAT_MBYTE, disable terminal without multi-byte.

7 years agopatch 8.0.0985: libvterm has its own idea of character width v8.0.0985
Bram Moolenaar [Tue, 22 Aug 2017 20:12:17 +0000 (22:12 +0200)]
patch 8.0.0985: libvterm has its own idea of character width

Problem:    Libvterm has its own idea of character width.
Solution:   Use the Vim functions for character width and composing to avoid a
            mismatch. (idea by Yasuhiro Matsumoto)

7 years agopatch 8.0.0984: terminal blinking cursor not correct in the GUI v8.0.0984
Bram Moolenaar [Tue, 22 Aug 2017 18:33:53 +0000 (20:33 +0200)]
patch 8.0.0984: terminal blinking cursor not correct in the GUI

Problem:    Terminal blinking cursor not correct in the GUI.
Solution:   Set blinkoff correctly.  Also make the cursor blink on MS-Windows
            by default. (Ken Takata)

7 years agopatch 8.0.0983: unnecessary check for NULL pointer v8.0.0983
Bram Moolenaar [Mon, 21 Aug 2017 20:06:02 +0000 (22:06 +0200)]
patch 8.0.0983: unnecessary check for NULL pointer

Problem:    Unnecessary check for NULL pointer.
Solution:   Remove the NULL check in dialog_changed(), it already happens in
            dialog_msg(). (Ken Takata)

7 years agopatch 8.0.0982: cannot use a terminal when 'encoding' is non-utf8 multi-byte v8.0.0982
Bram Moolenaar [Mon, 21 Aug 2017 20:01:27 +0000 (22:01 +0200)]
patch 8.0.0982: cannot use a terminal when 'encoding' is non-utf8 multi-byte

Problem:    When 'encoding' is set to a multi-byte encoding other than utf-8
            the characters from ther terminal are messed up.
Solution:   Convert displayed text from utf-8 to 'encoding' for MS-Windows.
            (Yasuhiro Matsumoto, close #2000)

7 years agopatch 8.0.0981: cursor in terminal window blinks by default v8.0.0981
Bram Moolenaar [Mon, 21 Aug 2017 19:39:28 +0000 (21:39 +0200)]
patch 8.0.0981: cursor in terminal window blinks by default

Problem:    Cursor in terminal window blinks by default, while in a real xterm
            it does not blink, unless the -bc argument is used.
Solution:   Do not use a blinking cursor by default.

7 years agopatch 8.0.0980: Coverity warning for failing to open /dev/null v8.0.0980
Bram Moolenaar [Mon, 21 Aug 2017 19:07:29 +0000 (21:07 +0200)]
patch 8.0.0980: Coverity warning for failing to open /dev/null

Problem:    Coverity warning for failing to open /dev/null.
Solution:   When /dev/null can't be opened exit the child.

7 years agopatch 8.0.0979: terminal noblock test fails on MS-Windows v8.0.0979
Bram Moolenaar [Sun, 20 Aug 2017 18:21:23 +0000 (20:21 +0200)]
patch 8.0.0979: terminal noblock test fails on MS-Windows

Problem:    Terminal noblock test fails on MS-Windows. (Christian Brabandt)
Solution:   Ignore empty line below "done".

7 years agopatch 8.0.0978: writing to terminal job is not tested v8.0.0978
Bram Moolenaar [Sun, 20 Aug 2017 17:33:47 +0000 (19:33 +0200)]
patch 8.0.0978: writing to terminal job is not tested

Problem:    Writing to terminal job is not tested.
Solution:   Add a test.

7 years agopatch 8.0.0977: cannot send lines to a terminal job on MS-Windows v8.0.0977
Bram Moolenaar [Sun, 20 Aug 2017 17:22:56 +0000 (19:22 +0200)]
patch 8.0.0977: cannot send lines to a terminal job on MS-Windows

Problem:    Cannot send lines to a terminal job on MS-Windows.
Solution:   Set jv_in_buf.  Command doesn't get EOF yet though.

7 years agopatch 8.0.0976: cannot send lines to a terminal job v8.0.0976
Bram Moolenaar [Sun, 20 Aug 2017 16:09:14 +0000 (18:09 +0200)]
patch 8.0.0976: cannot send lines to a terminal job

Problem:    Cannot send lines to a terminal job.
Solution:   Make [range]terminal send selected lines to the job.
            Use ++rows and ++cols for the terminal size.

7 years agopatch 8.0.0975: using freed memory when setting 'backspace' v8.0.0975
Bram Moolenaar [Sun, 20 Aug 2017 14:11:51 +0000 (16:11 +0200)]
patch 8.0.0975: using freed memory when setting 'backspace'

Problem:    Using freed memory when setting 'backspace'.
Solution:   When changing oldval also change origval.

7 years agopatch 8.0.0974: resetting a string option does not trigger OptionSet v8.0.0974
Bram Moolenaar [Sun, 20 Aug 2017 13:47:20 +0000 (15:47 +0200)]
patch 8.0.0974: resetting a string option does not trigger OptionSet

Problem:    Resetting a string option does not trigger OptionSet. (Rick Howe)
Solution:   Set the origval.

7 years agopatch 8.0.0973: initial info about blinking cursor is wrong v8.0.0973
Bram Moolenaar [Sun, 20 Aug 2017 13:05:15 +0000 (15:05 +0200)]
patch 8.0.0973: initial info about blinking cursor is wrong

Problem:    initial info about blinking cursor is wrong
Solution:   Invert the blink flag.  Add t_VS to stop a blinking cursor.

7 years agopatch 8.0.0972: compiler warnings for unused variables v8.0.0972
Bram Moolenaar [Sat, 19 Aug 2017 21:23:43 +0000 (23:23 +0200)]
patch 8.0.0972: compiler warnings for unused variables

Problem:    Compiler warnings for unused variables. (Tony Mechelynck)
Solution:   Add #ifdefs.

7 years agopatch 8.0.0971: 'winptydll' missing from :options v8.0.0971
Bram Moolenaar [Sat, 19 Aug 2017 21:18:02 +0000 (23:18 +0200)]
patch 8.0.0971: 'winptydll' missing from :options

Problem:    'winptydll' missing from :options.
Solution:   Add the entry.

7 years agopatch 8.0.0970: passing invalid highlight id v8.0.0970
Bram Moolenaar [Sat, 19 Aug 2017 19:35:35 +0000 (21:35 +0200)]
patch 8.0.0970: passing invalid highlight id

Problem:    if there is no StatusLine highlighting and there is StatusLineNC
            or StatusLineTermNC highlighting then an invalid highlight id is
            passed to combine_stl_hlt(). (Coverity)
Solution:   Check id_S to be -1 instead of zero.

7 years agopatch 8.0.0969: Coverity warning for unused return value v8.0.0969
Bram Moolenaar [Sat, 19 Aug 2017 19:26:44 +0000 (21:26 +0200)]
patch 8.0.0969: Coverity warning for unused return value

Problem:    Coverity warning for unused return value.
Solution:   Add (void) to avoid the warning.

7 years agopatch 8.0.0968: crash when switching terminal modes v8.0.0968
Bram Moolenaar [Sat, 19 Aug 2017 19:23:05 +0000 (21:23 +0200)]
patch 8.0.0968: crash when switching terminal modes

Problem:    Crash when switching terminal modes. (Nikolai Pavlov)
Solution:   Check that there are scrollback lines.

7 years agopatch 8.0.0967: using a terminal may cause the cursor to blink v8.0.0967
Bram Moolenaar [Sat, 19 Aug 2017 19:11:57 +0000 (21:11 +0200)]
patch 8.0.0967: using a terminal may cause the cursor to blink

Problem:    Using a terminal may cause the cursor to blink.
Solution:   Do not set t_vs, since we cannot restore the old blink state.

7 years agopatch 8.0.0966: build failure without terminal feature v8.0.0966
Bram Moolenaar [Sat, 19 Aug 2017 17:57:34 +0000 (19:57 +0200)]
patch 8.0.0966: build failure without terminal feature

Problem:    Build failure without terminal feature.
Solution:   Move #endif.

7 years agopatch 8.0.0965: not restoring cursor shape after it was set in a terminal v8.0.0965
Bram Moolenaar [Sat, 19 Aug 2017 17:40:50 +0000 (19:40 +0200)]
patch 8.0.0965: not restoring cursor shape after it was set in a terminal

Problem:    The cursor shape is not reset after it was changed in a terminal.
Solution:   Request the original cursor shape and restore it.  Add t_RS.
            Do not add t_SH for now, it does not work properly.

7 years agopatch 8.0.0964: channel write buffer does not work with poll() v8.0.0964
Bram Moolenaar [Sat, 19 Aug 2017 13:51:59 +0000 (15:51 +0200)]
patch 8.0.0964: channel write buffer does not work with poll()

Problem:    Channel write buffer does not work with poll().
Solution:   Use the same mechanism as with select().

7 years agopatch 8.0.0963: terminal test fails on MacOS v8.0.0963
Bram Moolenaar [Sat, 19 Aug 2017 13:40:01 +0000 (15:40 +0200)]
patch 8.0.0963: terminal test fails on MacOS

Problem:    Terminal test fails on MacOS. (chdiza)
Solution:   Wait for the shell to echo the characters. (closes #1991)

7 years agopatch 8.0.0962: crash with virtualedit and joining lines v8.0.0962
Bram Moolenaar [Sat, 19 Aug 2017 13:05:32 +0000 (15:05 +0200)]
patch 8.0.0962: crash with virtualedit and joining lines

Problem:    Crash with virtualedit and joining lines. (Joshua T Corbin, Neovim
            #6726)
Solution:   When using a mark check that coladd is valid.

7 years agopatch 8.0.0961: the script to build the installer does not include winpty v8.0.0961
Bram Moolenaar [Sat, 19 Aug 2017 11:29:19 +0000 (13:29 +0200)]
patch 8.0.0961: the script to build the installer does not include winpty

Problem:    The script to build the installer does not include winpty.
Solution:   Add winpty32.dll and winpty-agent.exe like diff.exe

7 years agopatch 8.0.0960: job in terminal does not get CTRL-C v8.0.0960
Bram Moolenaar [Fri, 18 Aug 2017 20:57:06 +0000 (22:57 +0200)]
patch 8.0.0960: job in terminal does not get CTRL-C

Problem:    Job in terminal does not get CTRL-C, we send a SIGINT instead.
Solution:   Don't call may_send_sigint() on CTRL-C.  Make CTRL-W CTRL-C end
            the job.

7 years agopatch 8.0.0959: build failure on MS-Windows v8.0.0959
Bram Moolenaar [Fri, 18 Aug 2017 19:53:22 +0000 (21:53 +0200)]
patch 8.0.0959: build failure on MS-Windows

Problem:    Build failure on MS-Windows.
Solution:   Use ioctlsocket() instead of fcntl().

7 years agopatch 8.0.0958: terminal test fails on Windows when winpty dll is missing v8.0.0958
Bram Moolenaar [Fri, 18 Aug 2017 19:07:11 +0000 (21:07 +0200)]
patch 8.0.0958: terminal test fails on Windows when winpty dll is missing

Problem:    The terminal test fails on MS-Windows when compiled with the
            terminal feature but the winpty DLL is missing.
Solution:   Check if the terminal feature works. (Ken Takata)

7 years agopatch 8.0.0957: a terminal job can deadlock when sending many keys v8.0.0957
Bram Moolenaar [Fri, 18 Aug 2017 18:50:30 +0000 (20:50 +0200)]
patch 8.0.0957: a terminal job can deadlock when sending many keys

Problem:    When term_sendkeys() sends many keys it may get stuck in writing
            to the job.
Solution:   Make the write non-blocking, buffer keys to be sent.

7 years agopatch 8.0.0956: scrolling in a terminal window has flicker v8.0.0956
Bram Moolenaar [Thu, 17 Aug 2017 18:31:48 +0000 (20:31 +0200)]
patch 8.0.0956: scrolling in a terminal window has flicker

Problem:    Scrolling in a terminal hwindow as flicker when the Normal
            background differs from the terminal window background.
Solution:   Set the attribute to clear with.

7 years agopatch 8.0.0955: Test_existent_file() fails on some file systems v8.0.0955
Bram Moolenaar [Thu, 17 Aug 2017 15:35:36 +0000 (17:35 +0200)]
patch 8.0.0955: Test_existent_file() fails on some file systems

Problem:    Test_existent_file() fails on some file systems.
Solution:   Run the test again with a sleep when the test fails without a
            sleep. (James McCoy, closes #1984)

7 years agopatch 8.0.0954: /proc/self/exe might be a relative path v8.0.0954
Bram Moolenaar [Thu, 17 Aug 2017 15:21:05 +0000 (17:21 +0200)]
patch 8.0.0954: /proc/self/exe might be a relative path

Problem:    /proc/self/exe might be a relative path.
Solution:   Make the path a full path. (James McCoy, closes #1983)

7 years agopatch 8.0.0953: get "no write since last change" error in terminal window v8.0.0953
Bram Moolenaar [Thu, 17 Aug 2017 14:55:13 +0000 (16:55 +0200)]
patch 8.0.0953: get "no write since last change" error in terminal window

Problem:    Get "no write since last change" error in terminal window.
Solution:   Use another message when closing a terminal window. Make ":quit!"
            also end the job.

7 years agopatch 8.0.0952: has('terminal') does not check existence of dll file v8.0.0952
Bram Moolenaar [Thu, 17 Aug 2017 12:39:07 +0000 (14:39 +0200)]
patch 8.0.0952: has('terminal') does not check existence of dll file

Problem:    MS-Windows: has('terminal') does not check existence of dll file.
Solution:   Check if the winpty dll file can be loaded. (Ken Takata)

7 years agopatch 8.0.0951: another wrong #ifdef v8.0.0951
Bram Moolenaar [Thu, 17 Aug 2017 09:33:42 +0000 (11:33 +0200)]
patch 8.0.0951: another wrong #ifdef

Problem:    Another wrong #ifdef.
Solution:   Change TERMINAL to FEAT_TERMINAL. (closes #1981)

7 years agopatch 8.0.0950: MS-Windows: wrong #ifdef, compiler warnings v8.0.0950
Bram Moolenaar [Thu, 17 Aug 2017 09:22:46 +0000 (11:22 +0200)]
patch 8.0.0950: MS-Windows: wrong #ifdef, compiler warnings

Problem:    MS-Windows: wrong #ifdef, compiler warnings for signed/unsigned.
Solution:   Change variable type. Change TERMINAL to FEAT_TERMINAL.

7 years agopatch 8.0.0949: winpty.dll name is fixed v8.0.0949
Bram Moolenaar [Wed, 16 Aug 2017 21:14:08 +0000 (23:14 +0200)]
patch 8.0.0949: winpty.dll name is fixed

Problem:    winpty.dll name is fixed.
Solution:   Add the 'winptydll' option. Make the default name depend on
            whether it is a 32-bit or 64-bit build. (idea by Yasuhiro
            Matsumoto, closes #1978)

7 years agopatch 8.0.0948: crash if timer closes window while dragging status line v8.0.0948
Bram Moolenaar [Wed, 16 Aug 2017 20:46:01 +0000 (22:46 +0200)]
patch 8.0.0948: crash if timer closes window while dragging status line

Problem:    Crash if timer closes window while dragging status line.
Solution:   Check if the window still exists. (Yasuhiro Matsumoto, closes
            #1979)

7 years agopatch 8.0.0947: entering terminal using C-O C-W C-W goes to Insert mode v8.0.0947
Bram Moolenaar [Wed, 16 Aug 2017 19:09:18 +0000 (21:09 +0200)]
patch 8.0.0947: entering terminal using C-O C-W C-W goes to Insert mode

Problem:    When in Insert mode and using CTRL-O CTRL-W CTRL-W to move to a
            termainal window, get in a weird Insert mode.
Solution:   Don't go to Insert mode in a terminal window. (closes #1977)

7 years agopatch 8.0.0946: using PATH_MAX does not work well on some systems v8.0.0946
Bram Moolenaar [Mon, 14 Aug 2017 21:40:45 +0000 (23:40 +0200)]
patch 8.0.0946: using PATH_MAX does not work well on some systems

Problem:    Using PATH_MAX does not work well on some systems.
Solution:   use MAXPATHL instead. (James McCoy, closes #1973)

7 years agopatch 8.0.0945: 64-bit compiler warnings v8.0.0945
Bram Moolenaar [Mon, 14 Aug 2017 21:25:04 +0000 (23:25 +0200)]
patch 8.0.0945: 64-bit compiler warnings

Problem:    64-bit compiler warnings.
Solution:   Use "size_t" instead of "int". (Mike Williams)

7 years agopatch 8.0.0944: test_profile is a little bit flaky v8.0.0944
Bram Moolenaar [Mon, 14 Aug 2017 21:13:30 +0000 (23:13 +0200)]
patch 8.0.0944: test_profile is a little bit flaky

Problem:    Test_profile is a little bit flaky.
Solution:   Accept a match when self and total time are the same. (James
            McCoy, closes #1972)

7 years agopatch 8.0.0943: MS-Windows: Test_terminal_scrape_multibyte may fail v8.0.0943
Bram Moolenaar [Mon, 14 Aug 2017 21:07:30 +0000 (23:07 +0200)]
patch 8.0.0943: MS-Windows: Test_terminal_scrape_multibyte may fail

Problem:    Test_terminal_scrape_multibyte fails if the codepage is not utf-8.
Solution:   Start "cmd" with the utf-8 codepage. (micbou, closes #1975)

7 years agopatch 8.0.0942: using freed memory with ":terminal" v8.0.0942
Bram Moolenaar [Mon, 14 Aug 2017 20:56:27 +0000 (22:56 +0200)]
patch 8.0.0942: using freed memory with ":terminal"

Problem:    Using freed memory with ":terminal" if an autocommand changes
            'shell' when splitting the window. (Marius Gedminas)
Solution:   Make a copy of 'shell'. (closes #1974)

7 years agopatch 8.0.0941: existing color schemes don't like StatusLineTerm v8.0.0941
Bram Moolenaar [Mon, 14 Aug 2017 20:35:08 +0000 (22:35 +0200)]
patch 8.0.0941: existing color schemes don't like StatusLineTerm

Problem:    Existing color schemes don't work well with StatusLineTerm.
Solution:   Don't use "reverse", use fg and bg colors.  Also add
            StatusLineTermNC.