Bram Moolenaar
88c89c7722
patch 8.2.3341: Vim9: function call aborted despite try/catch
...
Problem: Vim9: function call aborted despite try/catch. (Naohiro Ono)
Solution: Ignore error caught by try/catch. (closes #8755 )
2021-08-14 14:01:05 +02:00
Yegappan Lakshmanan
8ee52affe7
patch 8.2.3320: some local functions are not static
...
Problem: Some local functions are not static.
Solution: Add "static". Move snprintf() related code to strings.c.
(Yegappan Lakshmanan, closes #8734 )
2021-08-09 19:59:06 +02:00
Bram Moolenaar
cc7eb2aa7a
patch 8.2.3149: some plugins have a problem with the error check
...
Problem: Some plugins have a problem with the error check for using
:command with -complete but without -nargs.
Solution: In legacy script only give a warning message.
2021-07-11 19:12:04 +02:00
Bram Moolenaar
a97c36310f
patch 8.2.3006: crash when echoing a value very early
...
Problem: Crash when echoing a value very early. (Naruhiko Nishino)
Solution: Do not use a NUL to truncate the message, make a copy.
(closes #8388 )
2021-06-15 22:39:11 +02:00
Bram Moolenaar
599410cb3c
patch 8.2.2743: Vim9: function state stuck when compiling with ":silent!"
...
Problem: Vim9: function state stuck when compiling with ":silent!".
Solution: Check for uf_def_status to be UF_COMPILING.
2021-04-10 14:03:43 +02:00
Bram Moolenaar
eed9d46293
patch 8.2.2518: 'listchars' should be window-local
...
Problem: 'listchars' should be window-local.
Solution: Make 'listchars' global-local. (Yegappan Lakshmanan, Marco Hinz,
closes #5206 , closes #7850 )
2021-02-15 20:38:25 +01:00
Bram Moolenaar
6281815ecc
patch 8.2.2515: memory access error when truncating an empty message
...
Problem: Memory access error when truncating an empty message.
Solution: Check for an empty string. (Dominique Pellé, closes #7841 )
2021-02-14 15:37:30 +01:00
Bram Moolenaar
91478ae49a
patch 8.2.2454: leading space can not be made visible
...
Problem: Leading space can not be made visible.
Solution: Add "lead:" to 'listchars'. (closes #7772 )
2021-02-03 15:58:13 +01:00
Bram Moolenaar
56602ba153
patch 8.2.2097: Vim9: using :silent! when calling a function prevents abort
...
Problem: Vim9: using :silent! when calling a function prevents abortng that
function.
Solution: Add emsg_silent_def and did_emsg_def.
2020-12-05 21:22:08 +01:00
Bram Moolenaar
29d2f45c88
patch 8.2.2091: MS-Windows: build warnings
...
Problem: MS-Windows: build warnings.
Solution: Add a #pragma to suppress the deprecation warning. (Ken Takata)
Avoid using a non-ASCII character. (closes #7421 )
2020-12-04 19:42:52 +01:00
Bram Moolenaar
1cbfc9914d
patch 8.2.2078: illegal memory access when using :print on invalid text
...
Problem: Illegal memory access when using :print on invalid text. (Dhiraj
Mishra)
Solution: Check for more composing characters than supported. (closes #7399 )
2020-12-02 12:37:37 +01:00
Bram Moolenaar
28ee892ac4
patch 8.2.1919: assert_fails() setting emsg_silent changes normal execution
...
Problem: Assert_fails() setting emsg_silent changes normal execution.
Solution: Use a separate flag in_assert_fails.
2020-10-28 20:20:00 +01:00
Bram Moolenaar
e100440158
patch 8.2.1898: command modifier parsing always uses global cmdmod
...
Problem: Command modifier parsing always uses global cmdmod.
Solution: Pass in cmdmod_T to use. Rename struct fields consistently.
2020-10-24 20:49:43 +02:00
Bram Moolenaar
3d30af8783
patch 8.2.1844: using "q" at the more prompt doesn't stop a long message
...
Problem: Using "q" at the more prompt doesn't stop a long message.
Solution: Check for "got_int". (closes #7122 )
2020-10-13 22:15:56 +02:00
Bram Moolenaar
f4e8cdd3d2
patch 8.2.1840: Vim9: error message is not clear about compilation error
...
Problem: Vim9: error message is not clear about compilation error.
Solution: Say "compiling" instead of "processing".
2020-10-12 22:07:13 +02:00
Bram Moolenaar
4f25b1aba0
patch 8.2.1653: expand('<stack>') does not include the final line number
...
Problem: Expand('<stack>') does not include the final line number.
Solution: Add the line nuber. (closes #6927 )
2020-09-10 19:25:05 +02:00
Bram Moolenaar
9bd5d879c2
patch 8.2.1631: test_fails() does not check the context of the line number
...
Problem: test_fails() does not check the context of the line number.
Solution: Use another argument to specify the context of the line number.
2020-09-06 21:47:48 +02:00
Bram Moolenaar
1d634542cf
patch 8.2.1479: Vim9: error for list index uses wrong line number
...
Problem: Vim9: error for list index uses wrong line number.
Solution: Set source line number. (closes #6724 ) Add a way to assert the
line number of the error with assert_fails().
2020-08-18 13:41:50 +02:00
Bram Moolenaar
a5d0423fa1
patch 8.2.1297: when a test fails it's often not easy to see where
...
Problem: When a test fails it's often not easy to see what the call stack
is.
Solution: Add more entries from the call stack in the exception message.
2020-07-26 15:37:02 +02:00
Bram Moolenaar
9b7bf9e98f
patch 8.2.1183: assert_fails() checks the last error message
...
Problem: assert_fails() checks the last error message.
Solution: Check the first error, it is more relevant. Fix all the tests
that rely on the old behavior.
2020-07-11 22:14:59 +02:00
Bram Moolenaar
27321dbeed
patch 8.2.1147: :confirm may happen in cooked mode
...
Problem: :confirm may happen in cooked mode. (Jason Franklin)
Solution: Switch to raw mode before prompting. (Brandon Pfeifer)
2020-07-06 21:24:57 +02:00
Bram Moolenaar
32ee627750
patch 8.2.0943: displaying ^M or ^J depends on current buffer
...
Problem: Displaying ^M or ^J depends on current buffer.
Solution: Pass the displayed buffer to transchar(). (closes #6225 )
2020-06-10 14:16:49 +02:00
Bram Moolenaar
b42c0d5427
patch 8.2.0839: dropping modifier when putting a character back in typeahead
...
Problem: Dropping modifier when putting a character back in typeahead.
Solution: Add modifier to ins_char_typebuf(). (closes #6158 )
2020-05-29 22:41:41 +02:00
Bram Moolenaar
41f6918bf4
patch 8.2.0636: :messages does not show the maintainer when $LANG is unset
...
Problem: :messages does not show the maintainer when $LANG is unset.
Solution: Call get_mess_lang() if available. (closes #5978 )
2020-04-25 15:45:37 +02:00
Bram Moolenaar
292b90d4fa
patch 8.2.0399: various memory leaks
...
Problem: Various memory leaks.
Solution: Avoid the leaks. (Ozaki Kiichi, closes #5803 )
2020-03-18 15:23:16 +01:00
Bram Moolenaar
693e80e938
patch 8.2.0364: printf test failing on Haiku
...
Problem: Printf test failing on Haiku.
Solution: Make a difference between int and short. (Dominique Pelle,
closes #5749 )
2020-03-08 18:41:09 +01:00
Bram Moolenaar
dd58923c6b
patch 8.2.0334: abort called when using test_void()
...
Problem: Abort called when using test_void(). (Dominique Pelle)
Solution: Only give an error, don't abort.
2020-02-29 17:38:12 +01:00
Bram Moolenaar
f9706e9df0
patch 8.2.0296: mixing up "long long" and __int64 may cause problems
...
Problem: Mixing up "long long" and __int64 may cause problems. (John
Marriott)
Solution: Pass varnumber_T to vim_snprintf(). Add v:numbersize.
2020-02-22 14:27:04 +01:00
Bram Moolenaar
82f654e092
patch 8.2.0271: the "num64" feature is available everywhere
...
Problem: The "num64" feature is available everywhere and building without
it causes problems.
Solution: Graduage the "num64" feature. (James McCoy, closes #5650 )
2020-02-17 22:12:50 +01:00
Bram Moolenaar
8a7d6542b3
patch 8.2.0149: maintaining a Vim9 branch separately is more work
...
Problem: Maintaining a Vim9 branch separately is more work.
Solution: Merge the Vim9 script changes.
2020-01-26 15:56:19 +01:00
Bram Moolenaar
d0337e360e
patch 8.2.0060: message test only runs with one encoding
...
Problem: Message test only runs with one encoding. (Dominique Pelle)
Solution: Run the test with "utf-8" and "latin1". Fix underflow. (related
to #5410 )
2019-12-30 17:55:34 +01:00
Bram Moolenaar
1a47ae32cd
patch 8.2.0056: execution stack is incomplete and inefficient
...
Problem: Execution stack is incomplete and inefficient.
Solution: Introduce a proper execution stack and use it instead of
sourcing_name/sourcing_lnum. Create a string only when used.
2019-12-29 23:04:25 +01:00
Bram Moolenaar
53989554a4
patch 8.2.0035: saving and restoring called_emsg is clumsy
...
Problem: Saving and restoring called_emsg is clumsy.
Solution: Count the number of error messages.
2019-12-23 22:59:18 +01:00
Bram Moolenaar
85a2002adb
patch 8.2.0026: still some /* */ comments
...
Problem: Still some /* */ comments.
Solution: Convert to // comments.
2019-12-21 18:25:54 +01:00
Bram Moolenaar
0efd1bdcf4
patch 8.1.2419: with a long file name the hit-enter prompt appears
...
Problem: With a long file name the hit-enter prompt appears. (J. Lewis
Muir)
Solution: When checking for text to wrap don't do this when outputing a CR.
2019-12-11 19:00:04 +01:00
Bram Moolenaar
f48ee3c284
patch 8.1.2402: typos and other small things
...
Problem: Typos and other small things.
Solution: Small fixes.
2019-12-06 22:18:20 +01:00
Bram Moolenaar
32aa10203b
patch 8.1.2243: typos in comments
...
Problem: Typos in comments.
Solution: Fix the typos. (Dominique Pelle, closes #5160 ) Also adjust
formatting a bit.
2019-11-02 22:54:41 +01:00
Bram Moolenaar
a1cb1d1dce
patch 8.1.2171: mouse support not always available
...
Problem: Mouse support not always available.
Solution: Enable mouse support also in tiny version. Do not define
FEAT_MOUSE_XTERM on MS-Windows (didn't really work).
2019-10-17 23:00:07 +02:00
Bram Moolenaar
e3a22cb1ba
patch 8.1.2149: crash when running out of memory very early
...
Problem: Crash when running out of memory very early.
Solution: Do not use IObuff when it's NULL. (closes #5052 )
2019-10-14 22:01:57 +02:00
Bram Moolenaar
e8070987c6
patch 8.1.2141: :tselect has an extra hit-enter prompt
...
Problem: :tselect has an extra hit-enter prompt.
Solution: Do not set need_wait_return when only moving the cursor.
(closes #5040 )
2019-10-12 17:07:06 +02:00
Bram Moolenaar
ce0fac2897
patch 8.1.2083: multi-byte chars do not work properly with "%.*S" in printf()
...
Problem: Multi-byte chars do not work properly with "%.*S" in printf().
Solution: Use mb_ptr2cells(). Daniel Hahler, closes #4989 )
2019-09-27 13:32:06 +02:00
Bram Moolenaar
b20b9e14dd
patch 8.1.2062: the mouse code is spread out
...
Problem: The mouse code is spread out.
Solution: Move all the mouse code to mouse.c. (Yegappan Lakshmanan,
closes #4959 )
2019-09-21 20:48:04 +02:00
Bram Moolenaar
e5fbd73930
patch 8.1.2018: using freed memory when out of memory and displaying message
...
Problem: Using freed memory when out of memory and displaying message.
Solution: Make a copy of the message first.
2019-09-09 20:04:13 +02:00
Bram Moolenaar
b005cd80cf
patch 8.1.1979: code for handling file names is spread out
...
Problem: Code for handling file names is spread out.
Solution: Move code to new filepath.c file. Graduate FEAT_MODIFY_FNAME.
2019-09-04 15:54:55 +02:00
Bram Moolenaar
6f10c70b59
patch 8.1.1895: using NULL pointer when out of memory
...
Problem: Using NULL pointer when out of memory.
Solution: Bail out or skip the code using the pointer. (Zu-Ming Jiang,
closes #4805 , closes #4843 , closes #4939 , closes #4844 )
2019-08-20 22:58:37 +02:00
Bram Moolenaar
5843f5f37b
patch 8.1.1891: functions used in one file are global
...
Problem: Functions used in one file are global.
Solution: Add "static". (Yegappan Lakshmanan, closes #4840 )
2019-08-20 20:13:45 +02:00
Bram Moolenaar
e809a4ed30
patch 8.1.1630: various small problems
...
Problem: Various small problems.
Solution: Various small improvements.
2019-07-04 17:35:05 +02:00
Bram Moolenaar
c799fe206e
patch 8.1.1414: alloc() returning "char_u *" causes a lot of type casts
...
Problem: Alloc() returning "char_u *" causes a lot of type casts.
Solution: Have it return "void *". (Mike Williams) Define ALLOC_ONE() to
check the simple allocations.
2019-05-28 23:08:19 +02:00
Bram Moolenaar
51e14387f1
patch 8.1.1393: unnecessary type casts
...
Problem: Unnecessary type casts.
Solution: Remove type casts from alloc() and lalloc() calls. (Mike Williams)
2019-05-25 20:21:28 +02:00
Bram Moolenaar
964b3746b9
patch 8.1.1384: using "int" for alloc() often results in compiler warnings
...
Problem: Using "int" for alloc() often results in compiler warnings.
Solution: Use "size_t" and remove type casts. Remove alloc_check(), Vim
only works with 32 bit ints anyway.
2019-05-24 18:54:09 +02:00