Brandon Simmons
da3dd7d857
patch 9.0.1213: adding a line below the last one does not expand fold
...
Problem: Adding a line below the last one does not expand fold.
Solution: Do not skip mark_adjust() when adding lines below the last one.
(Brandon Simmons, closes #11832 , closes #10698 )
2023-01-17 19:48:07 +00:00
Bram Moolenaar
c96b7f5d2a
patch 9.0.0990: callback name argument is changed by setqflist()
...
Problem: Callback name argument is changed by setqflist().
Solution: Use the expanded function name for the callback, do not store it
in the argument. (closes #11653 )
2022-12-02 15:58:38 +00:00
dundargoc
c57b5bcd22
patch 9.0.0828: various typos
...
Problem: Various typos.
Solution: Correct typos. (closes #11432 )
2022-11-02 13:30:51 +00:00
Bram Moolenaar
1577537f10
patch 9.0.0819
2022-10-29 20:01:52 +01:00
Yegappan Lakshmanan
3f0092c141
patch 9.0.0777: code is indented too much
...
Problem: Code is indented too much.
Solution: Use an early return. (Yegappan Lakshmanan, closes #11386 )
2022-10-16 21:43:07 +01:00
Bram Moolenaar
49846fb1a3
patch 9.0.0761: cannot use 'indentexpr' for Lisp indenting
...
Problem: Cannot use 'indentexpr' for Lisp indenting.
Solution: Add the 'lispoptions' option.
2022-10-15 16:05:33 +01:00
Bram Moolenaar
a79b35b578
patch 9.0.0754: 'indentexpr' overrules lisp indenting in one situation
...
Problem: 'indentexpr' overrules lisp indenting in one situation.
Solution: Add "else" to keep the lisp indent. (issue #11327 )
2022-10-15 10:49:36 +01:00
Bram Moolenaar
f3ef026c98
patch 9.0.0664: bad redrawing with spell checking, using "C" and "$" in 'cpo'
...
Problem: Bad redrawing with spell checking, using "C" and "$" in 'cpo'.
Solution: Do not redraw the next line when "$" is in 'cpo'. (closes #11285 )
2022-10-05 13:29:15 +01:00
Bram Moolenaar
26f09ea54b
patch 9.0.0608: with spelling, deleting a full stop does not update next line
...
Problem: With spell checking, deleting a full stop at the end of a line
does not update SpellCap at the start of the next line.
Solution: Update the next line when characters have been deleted. Also when
using undo.
2022-09-27 16:29:38 +01:00
Bram Moolenaar
ebd0e8bb85
patch 9.0.0466: virtual text wrong after adding line break after line
...
Problem: Virtual text wrong after adding line break after line.
Solution: Pass an "eol" flag to where text properties are adjusted.
(closes #11131 )
2022-09-14 22:13:59 +01:00
Yegappan Lakshmanan
956be4678f
patch 9.0.0361: removing a listener may result in a memory leak
...
Problem: Removing a listener may result in a memory leak and remove
subsequent listerns.
Solution: Init the "prev" pointer only once. (Yegappan Lakshmanan,
closes #11039 )
2022-09-02 17:12:07 +01:00
Bram Moolenaar
6d4b2f54df
patch 9.0.0263: too many #ifdefs
...
Problem: Too many #ifdefs.
Solution: Make some functions always available.
2022-08-25 15:11:15 +01:00
Bram Moolenaar
471c0fa3ee
patch 9.0.0245: mechanism to prevent recursive screen updating is incomplete
...
Problem: Mechanism to prevent recursive screen updating is incomplete.
Solution: Add "redraw_not_allowed" and set it in build_stl_str_hl().
(issue #10952 )
2022-08-22 15:19:16 +01:00
Bram Moolenaar
a4d158b3c8
patch 9.0.0206: redraw flags are not named specifically
...
Problem: Redraw flags are not named specifically.
Solution: Prefix "UPD_" to the flags, for UPDate_screen().
2022-08-14 14:17:45 +01:00
Bram Moolenaar
326c5d36e7
patch 9.0.0194: cursor displayed in wrong position after removing text prop
...
Problem: Cursor displayed in wrong position after removing text prop. (Ben
Jackson)
Solution: Invalidate the cursor position. (closes #10898 )
2022-08-12 13:05:49 +01:00
Bram Moolenaar
113d9dec99
patch 9.0.0170: various minor code formatting issues
...
Problem: Various minor code formatting issues.
Solution: Improve code formatting.
2022-08-08 15:49:18 +01:00
Bram Moolenaar
d61efa50f8
patch 9.0.0063: too many type casts for dict_get functions
...
Problem: Too many type casts for dict_get functions.
Solution: Change the key argument from "char_u *" to "char *".
2022-07-23 09:52:04 +01:00
Bram Moolenaar
fa4873ccfc
patch 9.0.0013: reproducing memory access errors can be difficult
...
Problem: Reproducing memory access errors can be difficult.
Solution: When testing, copy each line to allocated memory, so that valgrind
can detect accessing memory before and/or after it. Fix uncovered
problems.
2022-06-30 22:13:59 +01:00
Bram Moolenaar
368137aa52
patch 8.2.5047: CurSearch highlight is often wrong
...
Problem: CurSearch highlight is often wrong.
Solution: Remember the last highlighted position and redraw when needed.
2022-05-31 13:43:12 +01:00
zeertzjq
cfe456543e
patch 8.2.5029: "textlock" is always zero
...
Problem: "textlock" is always zero.
Solution: Remove "textlock" and rename "textwinlock" to "textlock".
(closes #10489 )
2022-05-27 17:26:55 +01:00
Bram Moolenaar
7e66778815
patch 8.2.5008: when 'formatoptions' contains "/" wrongly wrapping comment
...
Problem: When 'formatoptions' contains "/" wrongly wrapping a long trailing
comment.
Solution: Pass the OPENLINE_FORMAT flag.
2022-05-23 13:10:48 +01:00
Bram Moolenaar
8e145b8246
patch 8.2.4993: smart/C/lisp indenting is optional
...
Problem: smart/C/lisp indenting is optional, which makes the code more
complex, while it only reduces the executable size a bit.
Solution: Graduate FEAT_CINDENT, FEAT_SMARTINDENT and FEAT_LISP.
2022-05-21 20:17:31 +01:00
LemonBoy
0d534d9cf2
patch 8.2.4988: textprop in wrong position when replacing multi-byte chars
...
Problem: Textprop in wrong position when replacing multi-byte chars.
Solution: Adjust textprop position. (closes #10461 )
2022-05-21 11:20:42 +01:00
Bram Moolenaar
7ce5b2b590
patch 8.2.4969: changing text in Visual mode may cause invalid memory access
...
Problem: Changing text in Visual mode may cause invalid memory access.
Solution: Check the Visual position after making a change.
2022-05-16 19:40:59 +01:00
LemonBoy
788c06a249
patch 8.2.4955: text property in wrong position after auto-indent
...
Problem: Text property in wrong position after auto-indent.
Solution: Adjust text property columns. (closes #10422 , closes #7719 )
2022-05-14 18:48:05 +01:00
Bram Moolenaar
de5cf28781
patch 8.2.4951: smart indenting done when not enabled
...
Problem: Smart indenting done when not enabled.
Solution: Check option values before setting can_si. (closes #10420 )
2022-05-14 11:52:23 +01:00
LemonBoy
d0b1a09f44
patch 8.2.4944: text properties are wrong after "cc"
...
Problem: Text properties are wrong after "cc". (Axel Forsman)
Solution: Pass the deleted byte count to inserted_bytes(). (closes #10412 ,
closes #7737 , closes #5763 )
2022-05-12 18:45:18 +01:00
Bram Moolenaar
249591057b
patch 8.2.4911: the mode #defines are not clearly named
...
Problem: The mode #defines are not clearly named.
Solution: Prepend MODE_. Renumber them to put the mapped modes first.
2022-05-07 20:01:16 +01:00
Bram Moolenaar
2bf875f881
patch 8.2.4907: some users do not want a line comment always inserted
...
Problem: Some users do not want a line comment always inserted.
Solution: Add the '/' flag to 'formatoptions' to not repeat the comment
leader after a statement when using "o".
2022-05-07 14:54:11 +01:00
Bram Moolenaar
1655619717
patch 8.2.4737: // in JavaScript string recognized as comment
...
Problem: // in JavaScript string recognized as comment.
Solution: Only check for linecomment if 'cindent' is set. (closes #10151 )
2022-04-11 17:36:37 +01:00
zeertzjq
8c97960850
patch 8.2.4707: redrawing could be a bit more efficient
...
Problem: Redrawing could be a bit more efficient.
Solution: Optimize redrawing. (closes #10105 )
2022-04-07 15:08:01 +01:00
Lewis Russell
1624639ec8
patch 8.2.4644: redrawing too often when 'relativenumber' is set
...
Problem: Redrawing too often when 'relativenumber' is set.
Solution: Only redraw when the cursor line changed. (Lewis Russell,
closes #10040 )
2022-03-29 11:38:17 +01:00
Bram Moolenaar
8329ab79b2
patch 8.2.4405: compiler warning for unused variable without +folding
...
Problem: Compiler warning for unused variable without the +folding feature.
(Tony Mechelynck)
Solution: Add #ifdef.
2022-02-16 21:51:00 +00:00
Bram Moolenaar
9437737833
patch 8.2.4403: ml_get error with nested folds and deleting lines
...
Problem: ml_get error with nested folds and deleting lines.
Solution: Correct the last line number before calling hasFoldingWin().
2022-02-16 20:30:52 +00:00
Bram Moolenaar
55737c2a31
patch 8.2.4379: an empty change is reported to a listener
...
Problem: An empty change is reported to a listener.
Solution: Do not report an empty change. (closes #9768 ) Remove unused
return value.
2022-02-14 14:51:22 +00:00
K.Takata
6e1d31e9e3
patch 8.2.4288: preprocessor indents are inconsistent
...
Problem: Preprocessor indents are inconsistent.
Solution: Fix preprocessor indents. (Ken Takata, closes #9691 )
2022-02-03 13:05:32 +00:00
Bram Moolenaar
9a846fbaa5
patch 8.2.3977: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move more error messages to errors.h.
2022-01-01 21:59:18 +00:00
Bram Moolenaar
5ea5f37372
patch 8.2.3934: repeating line comment is undesired for "O" command
...
Problem: Repeating line comment is undesired for "O" command.
Solution: Do not copy line comment leader for "O". (closes #9426 )
2021-12-29 15:15:47 +00:00
Bram Moolenaar
739f13a55b
patch 8.2.3795: too many #ifdefs
...
Problem: Too many #ifdefs.
Solution: Graduate the jumplist feature.
2021-12-13 13:12:53 +00:00
Bram Moolenaar
d2439e0443
patch 8.2.3791: build error with +cindent but without +smartindent
...
Problem: Build error with +cindent but without +smartindent.
Solution: Move declaration of "do_cindent". (John Marriott)
2021-12-12 19:10:44 +00:00
Bram Moolenaar
6e371ecb27
patch 8.2.3787: no proper formatting of a C line comment after a statement
...
Problem: No proper formatting of a C line comment after a statement.
Solution: Find the start of the line comment, insert the comment leader and
indent the comment properly.
2021-12-12 14:16:39 +00:00
Bram Moolenaar
651fca85c7
patch 8.2.3699: the +title feature adds a lot of #ifdef but little code
...
Problem: The +title feature adds a lot of #ifdef but little code.
Solution: Graduate the +title feature.
2021-11-29 20:39:38 +00:00
Bram Moolenaar
4b4b1b84ee
patch 8.2.3426: crash when deleting a listener in a listener callback
...
Problem: Crash when deleting a listener in a listener callback. (Naohiro
Ono)
Solution: Mark the listener and delete it later.
2021-09-11 15:06:44 +02:00
Yegappan Lakshmanan
4490ec4e83
patch 8.2.3229: Vim9: runtime and compile time type checks are not the same
...
Problem: Vim9: runtime and compile time type checks are not the same.
Solution: Add more runtime type checks for builtin functions. (Yegappan
Lakshmanan, closes #8646 )
2021-07-27 22:00:44 +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
Yegappan Lakshmanan
5bca906b30
patch 8.2.3215: Vim9: argument types are not checked at compile time
...
Problem: Vim9: argument types are not checked at compile time.
Solution: Add several more type checks. Sort the argument lists.
(Yegappan Lakshmanan, closes #8626 )
2021-07-24 21:33:26 +02:00
Bram Moolenaar
5bea41dea3
patch 8.2.3159: cursor displayed in wrong position after deleting line
...
Problem: Cursor displayed in wrong position after deleting line.
Solution: When deleting lines do not approximate botline. (fixes #8559 )
2021-07-13 22:21:44 +02:00
Bram Moolenaar
1764faa386
patch 8.2.2860: adding a text property causes the whole window to be redawn
...
Problem: Adding a text property causes the whole window to be redawn.
Solution: Use changed_lines_buf() to only redraw the affected lines.
2021-05-16 20:18:57 +02: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