Bram Moolenaar [Mon, 24 Dec 2018 19:23:49 +0000 (20:23 +0100)]
patch 8.1.0632: using sign group names is inefficient
Problem: Using sign group names is inefficient.
Solution: Store group names in a hash table and use a reference to them.
Also remove unnecessary use of ":exe" from the tests. (Yegappan
Lakshmanan, closes #3715)
Bram Moolenaar [Sat, 22 Dec 2018 17:59:06 +0000 (18:59 +0100)]
patch 8.1.0627: Python cannot handle function name of script-local function
Problem: Python cannot handle function name of script-local function.
Solution: Use <SNR> instead of the special byte code. (Ozaki Kiichi, closes
#3681)
Bram Moolenaar [Sat, 22 Dec 2018 17:44:53 +0000 (18:44 +0100)]
patch 8.1.0626: MS-Windows: no resize to fit parent when using --windowid
Problem: MS-Windows: no resize to fit parent when using --windowid.
Solution: Pass FALSE for "mustset" in gui_set_shellsize(). (Agorgianitis
Loukas, closes #3616)
Bram Moolenaar [Sat, 22 Dec 2018 12:28:07 +0000 (13:28 +0100)]
patch 8.1.0619: :echomsg and :echoerr do not handle List and Dict
Problem: :echomsg and :echoerr do not handle List and Dict like :echo does.
(Daniel Hahler)
Solution: Be more tolerant about the expression result type.
Bram Moolenaar [Fri, 21 Dec 2018 14:17:36 +0000 (15:17 +0100)]
patch 8.1.0614: placing signs can be complicated
Problem: Placing signs can be complicated.
Solution: Add functions for defining and placing signs. Introduce a group
name to avoid different plugins using the same signs. (Yegappan
Lakshmanan, closes #3652)
Bram Moolenaar [Fri, 21 Dec 2018 12:03:28 +0000 (13:03 +0100)]
patch 8.1.0613: when executing an insecure function the secure flag is stuck
Problem: When executing an insecure function the secure flag is stuck.
(Gabriel Barta)
Solution: Restore "secure" instead of decrementing it. (closes #3705)
Bram Moolenaar [Thu, 20 Dec 2018 19:47:32 +0000 (20:47 +0100)]
patch 8.1.0611: crash when using terminal with long composing characters
Problem: Crash when using terminal with long composing characters.
Solution: Make space for all characters. (Yasuhiro Matsumoto, closes #3619,
closes #3703)
Bram Moolenaar [Wed, 19 Dec 2018 19:48:46 +0000 (20:48 +0100)]
patch 8.1.0609: MS-Windows: unused variable, depending on the Ruby version
Problem: MS-Windows: unused variable, depending on the Ruby version.
Solution: Put ruby_sysinit and NtInitialize inside #ifdef and make them
consistent. (Ken Takata)
Bram Moolenaar [Sun, 16 Dec 2018 14:38:02 +0000 (15:38 +0100)]
patch 8.1.0602: DirChanged is also triggered when directory didn't change
Problem: DirChanged is also triggered when the directory didn't change.
(Daniel Hahler)
Solution: Compare the current with the new directory. (closes #3697)
Bram Moolenaar [Fri, 14 Dec 2018 17:53:02 +0000 (18:53 +0100)]
patch 8.1.0586: :digraph output is not easy to read
Problem: :digraph output is not easy to read.
Solution: Add highlighting for :digraphs. (Marcin Szamotulski, closes #3572)
Also add section headers for :digraphs!.
Bram Moolenaar [Fri, 14 Dec 2018 14:47:03 +0000 (15:47 +0100)]
patch 8.1.0584: with search CTRL-L does not pick up composing characters
Problem: With search CTRL-L does not pick up composing characters.
Solution: Check for composing characters. (Christian Brabandt, closes #3682)
[code change was accidentally included in 8.1.0579]
Bram Moolenaar [Sun, 9 Dec 2018 14:53:01 +0000 (15:53 +0100)]
patch 8.1.0575: Termdebug: clearing multi-breakpoint does not work
Problem: Termdebug: clearing multi-breakpoint does not work.
Solution: Delete all X.Y breakpoints. Keep more information about placed
breakpoints. (Ozaki Kiichi, closes #3641)
Bram Moolenaar [Sat, 8 Dec 2018 13:39:05 +0000 (14:39 +0100)]
patch 8.1.0572: stopping a job does not work properly on OpenBSD
Problem: Stopping a job does not work properly on OpenBSD.
Solution: Do not use getpgid() to check the process group of the job
processs ID, always pass the negative process ID to kill().
(George Koehler, closes #3656)
Bram Moolenaar [Fri, 7 Dec 2018 20:08:49 +0000 (21:08 +0100)]
patch 8.1.0570: 'commentstring' not used when adding fold marker
Problem: 'commentstring' not used when adding fold marker. (Maxim Kim)
Solution: Only use empty 'comments' middle when leader is empty. (Christian
Brabandt, closes #3670)
Bram Moolenaar [Sun, 2 Dec 2018 17:21:49 +0000 (18:21 +0100)]
patch 8.1.0560: cannot use address type "other" with with user command
Problem: Cannot use address type "other" with with user command.
Solution: Add "other" to the list. (Daniel Hahler, closes #3655) Also
reject "%" for commands with "other". Add some more tests.
Bram Moolenaar [Sun, 2 Dec 2018 12:58:00 +0000 (13:58 +0100)]
patch 8.1.0558: some MS-Windows instructions are outdated
Problem: Some MS-Windows instructions are outdated.
Solution: Update the uninstall instructions and the NSIS README. (Ken
Takata, closes #3614) Also update remark about diff.exe.
Problem: Saving/restoring search patterns share saved last_idx.
Solution: Use a separate saved last_idx for saving search patterns for
functions and incremental search.
Bram Moolenaar [Sat, 1 Dec 2018 12:14:45 +0000 (13:14 +0100)]
patch 8.1.0555: crash when last search pat is set but not last substitute pat
Problem: Crash when last search pat is set but not last substitute pat.
Solution: Do not mix up last search pattern and last subtitute pattern.
(closes #3647)
Bram Moolenaar [Fri, 30 Nov 2018 21:48:32 +0000 (22:48 +0100)]
patch 8.1.0553: it is not easy to edit a script that was sourced
Problem: It is not easy to edit a script that was sourced.
Solution: Add a count to ":scriptnames", so that ":script 40" edits the
script with script ID 40.
Bram Moolenaar [Fri, 30 Nov 2018 20:57:55 +0000 (21:57 +0100)]
patch 8.1.0552: saved last search pattern may not be restored
Problem: Saved last search pattern may not be restored.
Solution: Call restore_last_search_pattern(). Add a check for balancing
saving and restoring the last search pattern.
Bram Moolenaar [Wed, 28 Nov 2018 20:20:38 +0000 (21:20 +0100)]
patch 8.1.0551: expression evaluation may repeat an error message
Problem: Expression evaluation may repeat an error message. (Jason
Franklin)
Solution: Check for the value of did_emsg when giving an error
for the :execute command.
Bram Moolenaar [Wed, 28 Nov 2018 19:38:37 +0000 (20:38 +0100)]
patch 8.1.0550: expression evaluation may repeat an error message
Problem: Expression evaluation may repeat an error message. (Jason
Franklin)
Solution: Increment did_emsg and check for the value when giving an error
for the echo command.
Bram Moolenaar [Sun, 25 Nov 2018 01:18:29 +0000 (02:18 +0100)]
patch 8.1.0544: setting 'filetype' in a modeline causes an error
Problem: Setting 'filetype' in a modeline causes an error (Hirohito
Higashi).
Solution: Don't add the P_INSECURE flag when setting 'filetype' from a
modeline. Also for 'syntax'.
Bram Moolenaar [Sat, 24 Nov 2018 13:27:44 +0000 (14:27 +0100)]
patch 8.1.0543: Coverity warns for leaking memory and using wrong struct
Problem: Coverity warns for leaking memory and using wrong struct.
Solution: Free pointer when allocation fails. Change "boff" to "loff".
(closes #3634)
Bram Moolenaar [Thu, 22 Nov 2018 02:08:29 +0000 (03:08 +0100)]
patch 8.1.0542: shiftwidth() does not take 'vartabstop' into account
Problem: shiftwidth() does not take 'vartabstop' into account.
Solution: Use the cursor position or a position explicitly passed.
Also make >> and << work better with 'vartabstop'. (Christian
Brabandt)
Bram Moolenaar [Tue, 20 Nov 2018 13:27:07 +0000 (14:27 +0100)]
patch 8.1.0540: may evaluate insecure value when appending to option
Problem: May evaluate insecure value when appending to option.
Solution: Set the secure flag when changing an option that was previously
set insecurely. Also allow numbers for the characters from
'spelllang' that are used for LANG.vim.
Bram Moolenaar [Tue, 20 Nov 2018 12:32:36 +0000 (13:32 +0100)]
patch 8.1.0539: cannot build without the sandbox
Problem: Cannot build without the sandbox.
Solution: Set the secure option instead of using the sandbox. Also restrict
the characters from 'spelllang' that are used for LANG.vim.
(suggested by Yasuhiro Matsumoto)