Bram Moolenaar
702bd6c7c6
patch 9.0.0464: with virtual text "above" indenting doesn't work well
...
Problem: With virtual text "above" indenting doesn't work well.
Solution: Ignore text properties while adjusting indent. (issue #11084 )
2022-09-14 16:09:57 +01:00
Maxim Kim
119167265e
patch 9.0.0358: 'breakindent' does not indent non-lists
...
Problem: 'breakindent' does not indent non-lists with
"breakindentopt=list:-1".
Solution: Adjust indent computation. (Maxim Kim, closes #11038 )
2022-09-02 14:08:53 +01:00
Bram Moolenaar
8a77d208ff
patch 9.0.0215: not passing APC_INDENT flag
...
Problem: Not passing APC_INDENT flag.
Solution: Pass the flag where it's needed.
2022-08-15 16:29:37 +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
7f9969c559
patch 9.0.0067: cannot show virtual text
...
Problem: Cannot show virtual text.
Solution: Initial changes for virtual text support, using text properties.
2022-07-25 18:13:54 +01:00
Bram Moolenaar
c2a79b87fc
patch 9.0.0016: comparing line pointer for 'breakindent' is not reliable
...
Problem: Comparing line pointer for 'breakindent' is not reliable.
Solution: Make a copy of the line.
2022-07-01 13:15:35 +01:00
Bram Moolenaar
8eba2bd291
patch 8.2.5151: reading beyond the end of the line with lisp indenting
...
Problem: Reading beyond the end of the line with lisp indenting.
Solution: Avoid going over the NUL at the end of the line.
2022-06-22 19:59:28 +01:00
Bram Moolenaar
0e8e938d49
patch 8.2.5122: lisp indenting my run over the end of the line
...
Problem: Lisp indenting my run over the end of the line.
Solution: Check for NUL earlier.
2022-06-18 12:51:11 +01:00
Bram Moolenaar
308660bd26
patch 8.2.5108: retab test disabled because it hangs on MS-Windows
...
Problem: Retab test disabled because it hangs on MS-Windows.
Solution: Also set got_int at the other place a overlong text is detected.
2022-06-16 12:10:48 +01:00
Bram Moolenaar
34f99584c7
patch 8.2.5103: build fails with small features
...
Problem: Build fails with small features.
Solution: Add #ifdef. Skip test on MS-Windows.
2022-06-15 21:08:09 +01:00
Bram Moolenaar
8bea171f15
patch 8.2.5102: interrupt not caught in test
...
Problem: Interrupt not caught in test.
Solution: Consider an exception thrown in the current try/catch when got_int
is set. Also catch early exit when not using try/catch.
2022-06-15 20:49:35 +01:00
Bram Moolenaar
a7ac4c9c39
patch 8.2.5080: when indenting gets out of hand it is hard to stop
...
Problem: When indenting gets out of hand it is hard to stop.
Solution: When line gets too long set got_int.
2022-06-12 21:11:03 +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
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
Bram Moolenaar
2e444bbef0
patch 8.2.4953: with 'si' inserting '}' after completion goes wrong
...
Problem: With 'smartindent' inserting '}' after completion goes wrong.
Solution: Check the cursor is in indent. (closes #10420 )
2022-05-14 12:54:23 +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
Bram Moolenaar
6ed545e797
patch 8.2.4928: various white space and cosmetic mistakes
...
Problem: Various white space and cosmetic mistakes.
Solution: Change spaces to tabs, improve comments.
2022-05-09 20:09:23 +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
Christian Brabandt
e7d6dbc572
patch 8.2.4882: cannot make 'breakindent' use a specific column
...
Problem: Cannot make 'breakindent' use a specific column.
Solution: Add the "column" entry in 'breakindentopt'. (Christian Brabandt,
closes #10362 , closes #10325 )
2022-05-06 12:21:04 +01:00
Bram Moolenaar
4c84dd33ad
patch 8.2.4794: compiler warning for not initialized variable
...
Problem: Compiler warning for not initialized variable.
Solution: Initialize the variable. (John Marriott)
2022-04-20 10:22:54 +01:00
Bram Moolenaar
e468698994
patch 8.2.4792: indent operator creates an undo entry for every line
...
Problem: Indent operator creates an undo entry for every line.
Solution: Create one undo entry for all lines. (closes #10227 )
2022-04-19 18:28:45 +01:00
Bram Moolenaar
4e889f98e9
patch 8.2.4436: crash with weird 'vartabstop' value
...
Problem: Crash with weird 'vartabstop' value.
Solution: Check for running into the end of the line.
2022-02-21 19:36:12 +00:00
Bram Moolenaar
4549166078
patch 8.2.4364: MS-Windows: still running out of memory for a very long line
...
Problem: MS-Windows: still running out of memory for a very long line.
Solution: Check for negative length.
2022-02-12 21:59:51 +00:00
Bram Moolenaar
33f3c59854
patch 8.2.4362: :retab may allocate too much memory
...
Problem: :retab may allocate too much memory.
Solution: Bail out when allocating more than MAXCOL bytes.
2022-02-12 20:46:15 +00:00
Bram Moolenaar
6e28703a8e
patch 8.2.4359: crash when repeatedly using :retab
...
Problem: crash when repeatedly using :retab.
Solution: Bail out when the line is getting too long.
2022-02-12 15:42:18 +00:00
Bram Moolenaar
fc88df42f1
patch 8.2.4298: divide by zero with huge tabstop value
...
Problem: Divide by zero with huge tabstop value.
Solution: Reject tabstop value that overflows to zero.
2022-02-05 11:13:05 +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
652dee4486
patch 8.2.4245: ":retab 0" may cause illegal memory access
...
Problem: ":retab 0" may cause illegal memory access.
Solution: Limit the value of 'tabstop' to 10000.
2022-01-28 20:47:49 +00:00
Bram Moolenaar
28e60cc088
patch 8.2.4185: cannot use an import in 'indentexpr'
...
Problem: Cannot use an import in 'indentexpr'.
Solution: Set the script context when evaluating 'indentexpr'
2022-01-22 20:32:00 +00:00
Christian Brabandt
c53b467473
patch 8.2.4093: cached breakindent values not initialized properly
...
Problem: Cached breakindent values not initialized properly.
Solution: Initialize and cache formatlistpat. (Christian Brabandt,
closes #9526 , closes #9512 )
2022-01-15 10:01:05 +00:00
Bram Moolenaar
b2d85e3784
patch 8.2.4029: debugging NFA regexp my crash, cached indent may be wrong
...
Problem: Debugging NFA regexp my crash, cached indent may be wrong.
Solution: Fix some debug warnings in the NFA regexp code. Make sure log_fd
is set when used. Fix breakindent and indent caching. (Christian
Brabandt, closes #9482 )
2022-01-07 16:55:32 +00:00
Bram Moolenaar
460ae5dfca
patch 8.2.3967: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move more errors to errors.h.
2022-01-01 14:19:49 +00:00
Bram Moolenaar
436b5adc97
patch 8.2.3961: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move more errors to errors.h.
2021-12-31 22:49:24 +00:00
Bram Moolenaar
8dac2acd6a
patch 8.2.3916: no error for passing an invalid line number to append()
...
Problem: No error for passing an invalid line number to append().
Solution: In Vim9 script check for a non-negative number. (closes #9417 )
2021-12-27 20:57:06 +00:00
Bram Moolenaar
2ddb89f8a9
patch 8.2.3403: memory leak for :retab with invalid argument
...
Problem: Memory leak for :retab with invalid argument.
Solution: Free the memory. Make error messages consistent.
2021-09-04 21:20:41 +02:00
Bram Moolenaar
b7081e135a
patch 8.2.3402: invalid memory access when using :retab with large value
...
Problem: Invalid memory access when using :retab with large value.
Solution: Check the number is positive.
2021-09-04 18:47:28 +02:00
Dominique Pelle
a918712626
patch 8.2.3386: using uninitialized memory
...
Problem: Using uninitialized memory.
Solution: Initialize the rm_ic field. (Dominique Pellé, closes #8800 )
2021-08-29 22:12:56 +02:00
Bram Moolenaar
620c959c6c
patch 8.2.3259: when 'indentexpr' causes an error did_throw may hang
...
Problem: When 'indentexpr' causes an error the did_throw flag may remain
set.
Solution: Reset did_throw and show the error. (closes #8677 )
2021-07-31 21:32:31 +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
Maxim Kim
f674b358fc
patch 8.2.3198: cannot use 'formatlistpat' for breakindent
...
Problem: Cannot use 'formatlistpat' for breakindent.
Solution: Use a negative list indent. (Maxim Kim, closes #8594 )
2021-07-22 11:46:59 +02:00
Christian Brabandt
4a0b85ad01
patch 8.2.3160: 'breakindent' does not work well for bulleted lists
...
Problem: 'breakindent' does not work well for bulleted and numbered lists.
Solution: Add the "list" entry to 'breakindentopt'. (Christian Brabandt,
closes #8564 , closes #1661 )
2021-07-14 20:00:27 +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
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
0dcd39bad5
patch 8.2.2458: Coverity warns for :retab using freed memory
...
Problem: Coverity warns for :retab using freed memory.
Solution: Use the updated line pointer when moving text properties.
2021-02-03 19:44:25 +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
cf30643ae6
patch 8.2.1086: possibly using freed memory when text properties used
...
Problem: Possibly using freed memory when text properties used when
changing indent of a line.
Solution: Compute the offset before calling ml_replace().
2020-06-29 20:40:37 +02:00
Bram Moolenaar
6adb9ea0a6
patch 8.2.0670: cannot change window when evaluating 'completefunc'
...
Problem: Cannot change window when evaluating 'completefunc'.
Solution: Make a difference between not changing text or buffers and also
not changing window.
2020-04-30 22:31:18 +02:00
Bram Moolenaar
b81f56fb57
patch 8.2.0309: window-local values have confusing name
...
Problem: Window-local values have confusing name.
Solution: Rename w_p_bri* to w_briopt_*.
2020-02-23 15:29:46 +01:00
Bram Moolenaar
aa2f0ee639
patch 8.2.0027: still some /* */ comments
...
Problem: Still some /* */ comments.
Solution: Convert to // comments.
2019-12-21 18:47:26 +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