naohiro ono
75c30e96cf
patch 8.2.3537: mode() does not return the right value in 'operatorfunc'
...
Problem: mode() does not return the right value in 'operatorfunc'.
Solution: Reset finish_op while calling 'operatorfunc'.
2021-10-19 11:15:41 +01:00
Christian Brabandt
78eb9cce91
patch 8.2.3439: deleted lines go to wrong yank register
...
Problem: Deleted lines go to wrong yank register.
Solution: Reset y_append when not calling get_yank_register(). (Christian
Brabandt, closes #8872 )
2021-09-14 18:55:51 +02:00
Bram Moolenaar
6b36d2a16d
patch 8.2.3369: auto formatting after "cw" leaves cursor in wrong spot
...
Problem: Auto formatting after "cw" leaves cursor in wrong spot.
Solution: Do not auto-format after the delete. (closes #8789 )
2021-08-23 21:19:01 +02:00
Gary Johnson
51ad850f5f
patch 8.2.3280: 'virtualedit' local to buffer is not the best solution
...
Problem: 'virtualedit' local to buffer is not the best solution.
Solution: Make it window-local. (Gary Johnson, closes #8685 )
2021-08-03 18:33:08 +02:00
Gary Johnson
53ba05b090
patch 8.2.3227: 'virtualedit' can only be set globally
...
Problem: 'virtualedit' can only be set globally.
Solution: Make 'virtualedit' global-local. (Gary Johnson, closes #8638 )
2021-07-26 22:19:10 +02:00
Bram Moolenaar
4067bd3604
patch 8.2.3073: when cursor is move for block append wrong text is inserted
...
Problem: When cursor is move for block append wrong text is inserted.
Solution: Calculate an offset. (Christian Brabandt, closes #8433 ,
closes #8288 )
2021-06-29 18:54:35 +02:00
Bram Moolenaar
108010aa47
patch 8.2.3069: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move some error messages to errors.h. Use clearer names.
2021-06-27 22:03:33 +02:00
Christian Brabandt
544a38e44d
patch 8.2.2971: cannot yank a block without trailing spaces
...
Problem: Cannot yank a block without trailing spaces.
Solution: Add the "zy" command. (Christian Brabandt, closes #8292 )
2021-06-10 19:39:11 +02:00
K.Takata
eeec254878
patch 8.2.2922: computing array length is done in various ways
...
Problem: Computing array length is done in various ways.
Solution: Use ARRAY_LENGTH everywhere. (Ken Takata, closes #8305 )
2021-06-02 13:28:16 +02:00
Yegappan Lakshmanan
2ac7184d34
patch 8.2.2916: operators are not fully tested
...
Problem: Operators are not fully tested.
Solution: Add a few more tests. (Yegappan Lakshmanan, closes #8290 )
2021-05-31 19:23:01 +02:00
Dominique Pelle
4781d6fd86
patch 8.2.2871: unnessary VIM_ISDIGIT() calls, badly indented code
...
Problem: Unnessary VIM_ISDIGIT() calls, badly indented code.
Solution: Call skipdigits() on the next character. Improve indenting.
(Dominique Pellé, closes #8227 )
2021-05-18 21:46:31 +02:00
Bram Moolenaar
032a2d050b
patch 8.2.2189: cannot repeat a command that uses the small delete register
...
Problem: Cannot repeat a command that uses the small delete register.
Solution: Store the register name instead of the contents. (Christian
Brabandt, closes #7527 )
2020-12-22 17:59:35 +01:00
Bram Moolenaar
5b3d1bb0f5
patch 8.2.2186: Vim9: error when using 'opfunc'
...
Problem: Vim9: error when using 'opfunc'.
Solution: Do not expect a return value from 'opfunc'. (closes #7510 )
2020-12-22 12:20:08 +01:00
Bram Moolenaar
d0a1dee3f1
patch 8.2.2166: auto format doesn't work when deleting text
...
Problem: Auto format doesn't work when deleting text.
Solution: Make "x" trigger auto format. (closes #7504 )
2020-12-20 13:07:48 +01:00
Bram Moolenaar
5546688fb6
patch 8.2.2029: Coverity warns for not checking return value
...
Problem: Coverity warns for not checking return value.
Solution: Check that u_save_cursor() returns OK.
2020-11-21 14:16:22 +01:00
Bram Moolenaar
c77534c303
patch 8.2.2005: redoing a mapping with <Cmd> doesn't work properly
...
Problem: Redoing a mapping with <Cmd> doesn't work properly.
Solution: Fill the redo buffer. Use "<SNR>" instead of a key code.
(closes #7282 )
2020-11-18 11:34:37 +01:00
Bram Moolenaar
957cf67d50
patch 8.2.1978: making a mapping work in all modes is complicated
...
Problem: Making a mapping work in all modes is complicated.
Solution: Add the <Cmd> special key. (Yegappan Lakshmanan, closes #7282 ,
closes 4784, based on patch by Bjorn Linse)
2020-11-12 14:21:06 +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
573545a55a
patch 8.2.1694: compiler warning for loss if data
...
Problem: Compiler warning for loss if data.
Solution: Add typecast.
2020-09-16 15:46:08 +02:00
Bram Moolenaar
8b51b7f0f1
patch 8.2.1690: text properties not adjusted for "I" in Visual block mode
...
Problem: Text properties not adjusted for "I" in Visual block mode.
Solution: Call inserted_bytes().
2020-09-15 21:34:18 +02:00
Bram Moolenaar
c8f12c9856
patch 8.2.1688: increment/decrement removes text property
...
Problem: Increment/decrement removes text property.
Solution: Insert the new number before deleting the old one. (closes #6962 )
2020-09-15 20:34:10 +02:00
Bram Moolenaar
71ccd03ee8
patch 8.2.0967: unnecessary type casts for vim_strnsave()
...
Problem: Unnecessary type casts for vim_strnsave().
Solution: Remove the type casts.
2020-06-12 22:59:11 +02:00
Bram Moolenaar
6c6be9e88d
patch 8.2.0963: number increment/decrement does not work with 'virtualedit'
...
Problem: Number increment/decrement does not work with 'virtualedit'.
Solution: Handle coladd changing. (Christian Brabandt, closes #6240 ,
closes #923 )
2020-06-12 20:19:44 +02:00
Bram Moolenaar
e52702f003
patch 8.2.0901: formatting CJK text isn't optimal
...
Problem: Formatting CJK text isn't optimal.
Solution: Properly break CJK lines. (closes #3875 )
2020-06-04 18:22:13 +02:00
Bram Moolenaar
d6a77f95ee
patch 8.2.0881: compiler warning for argument type
...
Problem: Compiler warning for argument type.
Solution: Add type cast. (Mike Williams)
2020-06-01 19:14:12 +02:00
Bram Moolenaar
aaad995f83
patch 8.2.0860: cannot use CTRL-A and CTRL-X on unsigned numbers
...
Problem: Cannot use CTRL-A and CTRL-X on unsigned numbers.
Solution: Add "unsigned" to 'nrformats'. (Naruhiko Nishino, closes #6144 )
2020-05-31 15:08:59 +02:00
Bram Moolenaar
87be9be1db
patch 8.2.0845: text properties crossing lines not handled correctly
...
Problem: Text properties crossing lines not handled correctly.
Solution: When joining lines merge text properties if possible.
(Axel Forsman, closes #5839 , closes #5683 )
2020-05-30 15:32:02 +02:00
Bram Moolenaar
11abd09521
patch 8.2.0674: some source files are too big
...
Problem: Some source files are too big.
Solution: Move text formatting functions to a new file. (Yegappan
Lakshmanan, closes #6021 )
2020-05-01 14:26:37 +02:00
Bram Moolenaar
a80faa8930
patch 8.2.0559: clearing a struct is verbose
...
Problem: Clearing a struct is verbose.
Solution: Define and use CLEAR_FIELD() and CLEAR_POINTER().
2020-04-12 19:37:17 +02:00
Bram Moolenaar
45fffdf10b
patch 8.2.0443: clipboard code is spread out
...
Problem: Clipboard code is spread out.
Solution: Move clipboard code to its own file. (Yegappan Lakshmanan,
closes #5827 )
2020-03-24 21:42:01 +01:00
Bram Moolenaar
db99f9f29a
patch 8.2.0436: no warnings for incorrect printf arguments
...
Problem: No warnings for incorrect printf arguments.
Solution: Fix attribute in declaration. Fix uncovered mistakes. (Dominique
Pelle, closes #5834 )
2020-03-23 22:12:22 +01:00
Bram Moolenaar
e4fc746d13
patch 8.2.0389: delayed redraw when shifting text from Insert mode
...
Problem: Delayed redraw when shifting text from Insert mode.
Solution: Use msg_attr_keep() instead of msg(). (closes #5782 )
2020-03-15 19:17:50 +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
4b96df5a01
patch 8.2.0156: various typos in source files and tests
...
Problem: Various typos in source files and tests.
Solution: Fix the typos. (Emir Sari, closes #5532 )
2020-01-26 22:00:26 +01:00
Bram Moolenaar
03c3bd9fd0
patch 8.2.0147: block Visual mode operators not correct when 'linebreak' set
...
Problem: Block Visual mode operators not correct when 'linebreak' set.
Solution: Set w_p_lbr to lbr_saved more often. (Ken Takata, closes #5524 )
2020-01-23 20:58:09 +01:00
Bram Moolenaar
08b28b7ad5
patch 8.2.0063: wrong size argument to vim_snprintf()
...
Problem: Wrong size argument to vim_snprintf(). (Dominique Pelle)
Solution: Reduce the size by the length. (related to #5410 )
2019-12-30 20:42:39 +01:00
Bram Moolenaar
91b65e4944
patch 8.2.0018: :join does not add white space where it should
...
Problem: :join does not add white space where it should. (Zdenek Dohnal)
Solution: Handle joining multiple lines propely.
2019-12-17 22:10:58 +01:00
Bram Moolenaar
3b68123cd2
patch 8.2.0002: "dj" only deletes first line of closed fold
...
Problem: "dj" only deletes first line of closed fold.
Solution: Adjust last line of operator for linewise motion. (closes #5354 )
2019-12-13 19:35:55 +01:00
Bram Moolenaar
6e0ce171e1
patch 8.1.2392: using old C style comments
...
Problem: Using old C style comments.
Solution: Use // comments where appropriate.
2019-12-05 20:12:41 +01:00
Bram Moolenaar
05ad5ff0ab
patch 8.1.2371: FEAT_TEXT_PROP is a confusing name
...
Problem: FEAT_TEXT_PROP is a confusing name.
Solution: Use FEAT_PROP_POPUP. (Naruhiko Nishino, closes #5291 )
2019-11-30 22:48:27 +01:00
Bram Moolenaar
f4a1d1c054
patch 8.1.2302: :lockmarks does not work for '[ and ']
...
Problem: :lockmarks does not work for '[ and '].
Solution: save and restore '[ and '] marks. (James McCoy, closes #5222 )
2019-11-16 13:50:25 +01:00
Bram Moolenaar
cc184cfb09
patch 8.1.2293: join adds trailing space when second line is empty
...
Problem: Join adds trailing space when second line is empty. (Brennan
Vincent)
Solution: Do not add a trailing space.
2019-11-12 20:31:20 +01:00
Bram Moolenaar
ee85702c10
patch 8.1.2281: 'showbreak' cannot be set for one window
...
Problem: 'showbreak' cannot be set for one window.
Solution: Make 'showbreak' global-local.
2019-11-09 23:26:40 +01:00
Bram Moolenaar
77ccc00340
patch 8.1.2235: "C" with 'virtualedit' set does not include multi-byte char
...
Problem: "C" with 'virtualedit' set does not include multi-byte char.
Solution: Include the whole multi-byte char. (Nobuhiro Takasaki,
closes #5152 )
2019-10-31 03:21:25 +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
14c01f8348
patch 8.1.2127: the indent.c file is a bit big
...
Problem: The indent.c file is a bit big.
Solution: Move C-indent code a a new cindent.c file. Move other
indent-related code to indent.c. (Yegappan Lakshmanan,
closes #5031 )
2019-10-09 22:53:08 +02:00
Bram Moolenaar
1614a14901
patch 8.1.2120: some MB_ macros are more complicated than necessary
...
Problem: Some MB_ macros are more complicated than necessary. (Dominique
Pelle)
Solution: Simplify the macros. Expand inline.
2019-10-06 22:00:13 +02:00
Bram Moolenaar
792cf5e1be
patch 8.1.2104: the normal.c file is too big
...
Problem: The normal.c file is too big.
Solution: Move do_pending_operator() to ops.c. (Yegappan Lakshmanan,
closes #4999 ).
2019-09-30 23:12:16 +02:00
Bram Moolenaar
8c96af9c05
patch 8.1.2096: too many #ifdefs
...
Problem: Too many #ifdefs.
Solution: Graduate FEAT_COMMENTS.
2019-09-28 19:05:57 +02:00
Bram Moolenaar
4aea03eb87
patch 8.1.2077: the ops.c file is too big
...
Problem: The ops.c file is too big.
Solution: Move code for dealing with registers to a new file. (Yegappan
Lakshmanan, closes #4982 )
2019-09-25 22:37:17 +02:00