Sean Dewar
30bf40ec4b
vim-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().
9437737833
2022-02-19 15:29:17 +00:00
zeertzjq
3c75e63bf6
vim-patch:8.2.4326: "o" and "O" copying comment not sufficiently tested
...
Problem: "o" and "O" copying comment not sufficiently tested.
Solution: Add a test case. (closes vim/vim#9718 )
51ab7c7d0d
Fix a mistake when porting Vim patch 8.2.3934
2022-02-08 21:10:32 +08:00
zeertzjq
da3b04a9e0
vim-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 vim/vim#9426 )
5ea5f37372
2022-01-31 15:44:54 +08:00
zeertzjq
eda957db10
vim-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.
6e371ecb27
2022-01-31 15:44:54 +08:00
zeertzjq
d391940b9a
vim-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 vim/vim#8638 )
53ba05b090
I changed some macros to unsigned integer literals to avoid compiler warnings.
2022-01-15 19:21:17 +08:00
Björn Linse
df54d82b7c
refactor(misc1): move out high-level input functions to a new file: input.c
...
Possibly dialog code is messages.c could be moved here as well.
misc1.c is now empty, so delete it.
2021-12-10 18:15:33 +01:00
Björn Linse
608f74a0de
refactor(misc1): move comment related functions to change.c
...
These are used in various places, but were grouped with open_line()
which has a lot of comment prefix logic originally.
2021-12-10 16:50:09 +01:00
Björn Linse
d9c1669a54
refactor(misc1): move out misc functions which obviously belong elsewhere
...
Also make some function names more descriptive/regular.
2021-12-09 23:17:29 +01:00
VVKot
c86fb824e0
vim-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.
964b3746b9
N/A commits:
vim-patch:8.1.0228: dropping files is ignored while Vim is busy
Problem: Dropping files is ignored while Vim is busy.
Solution: Postpone the effect of dropping files until it's safe.
92d147be95
vim-patch:8.2.3040: GUI: dropping files not tested
Problem: GUI: dropping files not tested.
Solution: Add test_gui_drop_files() and tests. (Yegappan Lakshmanan,
closes vim/vim#8434 )
18d46587b9
2021-11-22 05:43:00 +00:00
dundargoc
725cbe7d41
refactor: saner options for uncrustify ( #16204 )
...
* sp_enum_after_assign = force
* sp_brace_typedef = force
* nl_do_brace = remove
* sp_do_brace_open = force
* sp_brace_close_while = force
* sp_before_semi = remove
* sp_before_semi_for = remove
* sp_before_semi_for_empty = remove
* sp_between_semi_for_empty = remove
* sp_after_semi_for_empty = remove
* sp_before_square = remove
* sp_before_squares = remove
* sp_inside_square = remove
* sp_inside_fparens = remove
* sp_inside_fparen = remove
* sp_inside_tparen = remove
* sp_after_tparen_close = remove
* sp_return_paren = force
* pos_bool = lead
* sp_pp_concat = remove
* sp_pp_stringify = remove
* fixup: disable formatting for the INIT section
2021-11-19 14:21:53 -05:00
Björn Linse
54ff21a153
refactor(macros): delete multibyte macros which just are aliases
2021-11-14 16:33:12 +01:00
Björn Linse
0039ba04b0
refactor(multibyte): eliminate mb_ptr2len alias for utfc_ptr2len
2021-11-14 12:49:12 +01:00
James McCoy
e6ff154be6
vim-patch:8.1.0779: argument for message functions is inconsistent
...
Problem: Argument for message functions is inconsistent.
Solution: Make first argument to msg() "char *".
32526b3c18
2021-11-01 06:41:29 -04:00
James McCoy
efa924f66b
vim-patch:8.1.0743: giving error messages is not flexible
...
Problem: Giving error messages is not flexible.
Solution: Add semsg(). Change argument from "char_u *" to "char *", also
for msg() and get rid of most MSG macros. (Ozaki Kiichi, closes
vim/vim#3302 ) Also make emsg() accept a "char *" argument. Get rid of
an enormous number of type casts.
f9e3e09fdc
2021-11-01 06:41:28 -04:00
Björn Linse
8335e26b2d
fix(buffer_updates): handle :delete of the very last line in buffer
2021-10-07 19:35:49 +02:00
Dundar Göc
6d9dea4201
refactor: remove redundant casts
2021-10-07 13:16:55 +02:00
dundargoc
2f9b9e61d7
refactor: format with uncrustify #15778
...
* fixup: force exactly one whitespace between type and variable
2021-09-25 17:16:04 -07:00
dundargoc
853346a94d
refactor: format with uncrustify #15722
2021-09-19 13:07:42 -07:00
dundargoc
db1b0ee3b3
refactor: replace TRUE/FALSE with true/false #15425
2021-08-22 07:10:57 -07:00
Björn Linse
28b5c73bf8
refactor(plines): move horizontal size functions to plines.c
...
fix style.
2021-08-11 17:10:52 +02:00
Björn Linse
ac56a27a10
refactor(plines): remove implicit curwin chartabsize() function
2021-08-10 23:18:12 +02:00
zeertzjq
68f0670dfc
vim-patch:8.1.2214: too much is redrawn when 'cursorline' is set
...
Problem: Too much is redrawn when 'cursorline' is set.
Solution: Don't do a complete redraw. (closes vim/vim#5079 )
11a58af66f
2021-08-02 05:41:17 +08:00
zeertzjq
1666fe9dfe
vim-patch:8.1.2029: cannot control 'cursorline' highlighting well
...
Problem: Cannot control 'cursorline' highlighting well.
Solution: Add "screenline". (Christian Brabandt, closes vim/vim#4933 )
017ba07fa2
2021-08-02 05:41:17 +08:00
Dundar Göc
94120d2fd5
refactor: replace TRUE/FALSE with true/false
2021-07-30 12:29:32 +02:00
Dundar Göc
11dcf15682
refactor: replace TRUE/FALSE macros with C99 true/false
2021-07-25 21:51:50 +02:00
Björn Linse
1c41689287
Merge pull request #12971 from vigoux/decurbuf
...
Decrease reliance on curbuf in BUFEMPTY and `undo.c`
2021-07-09 10:15:18 +02:00
dundargoc
4547137aaf
chore: use codespell to spell check #15016
2021-07-07 15:28:44 -07:00
Thomas Vigouroux
763c852812
undo: reduce reliance on curbuf
2021-07-06 19:08:32 +02:00
jbyuki
7ff7ca56dd
minor fix
2021-06-09 11:58:25 +02:00
jbyuki
a1db340cea
minor fixes
2021-06-09 11:57:37 +02:00
jbyuki
d9e11f4f78
fix changed byte ranges for indented lines
2021-06-09 11:35:15 +02:00
Jan Edmund Lazo
b8c3bb6790
vim-patch:8.1.2313: debugging where a delay comes from is not easy
...
Problem: Debugging where a delay comes from is not easy.
Solution: Use different values when calling ui_delay().
eda1da0c9a
2021-04-15 18:06:51 -04:00
VVKot
6752ac4968
vim-patch:8.1.0105: all tab stops are the same
...
Problem: All tab stops are the same.
Solution: Add the variable tabstop feature. (Christian Brabandt,
closes vim/vim#2711 )
04958cbaf2
2021-03-28 08:37:01 +01:00
Jan Edmund Lazo
87aaa8e837
globals: eliminate "enc_utf8" macro
...
"enc_utf8" macro evaluates to "true".
Continue dead code removal, started in https://github.com/neovim/neovim/pull/13275 .
2020-11-14 17:23:51 -05:00
Rom Grk
743f7c8f72
fix: address issues for BufModifiedSet
2020-11-09 04:05:25 -05:00
Rom Grk
24db59ca8f
feat: implement BufModified autocmd
2020-11-07 19:02:52 -05:00
Björn Linse
c146eddc8b
api: add API for themes
...
co-author: hlpr98 <hlpr98@gmail.com > (dict2hlattrs function)
orange is sus??
NOVEMBER DAWN
erase the lie that is redraw_later()
2020-11-01 19:14:56 +01:00
Jan Edmund Lazo
2894649c2e
vim-patch:8.2.0901: formatting CJK text isn't optimal
...
Problem: Formatting CJK text isn't optimal.
Solution: Properly break CJK lines. (closes vim/vim#3875 )
e52702f003
2020-10-23 08:57:16 -04:00
Thomas Vigouroux
9a7f111db6
treesitter: filter updates on <CR>
...
This fixes an error when fo=ro, when hitting <CR> to insert a new
comment line.
2020-09-16 16:35:17 +02:00
Björn Linse
34c0f7af04
buf_attach: fix buffer updates with setline()
2020-09-16 13:50:16 +02:00
Thomas Vigouroux
f0e258cf85
fix(bytetrack): send correct events when opening lines
...
a bit of test cleanup
ärrår
feeel
SPLIT
fix: sned correct updates on <CR>
2020-09-11 14:38:58 +02:00
Thomas Vigouroux
82fb6a8818
fix lints
2020-09-09 21:22:21 +02:00
Björn Linse
bc86f76c0a
api/buffer: add "on_bytes" callback to nvim_buf_attach
...
This implements byte-resolution updates of buffer changes.
Note: there is no promise that the buffer state is valid inside
the callback!
2020-09-09 21:22:21 +02:00
Björn Linse
f42aa95fbc
extmark: separate extmark_splice_cols for column-only change
...
as the byte logic will be the same for all of these
2020-09-09 21:22:21 +02:00
Matthieu Coudron
d20142a31f
folds: decrease reliance on global 'curwin'
...
TODO in a future commit:
- remains 2 instances of changed_lines that dont take into account
buffer
2020-04-24 20:28:44 +02:00
Björn Linse
48a869dc6d
shed biking: it's always extmarks, never marks extended
2020-01-20 19:36:35 +01:00
Björn Linse
ca1a00edd6
extmarks/bufhl: reimplement using new marktree data structure
...
Add new "splice" interface for tracking buffer changes at the byte
level. This will later be reused for byte-resolution buffer updates.
(Implementation has been started, but using undocumented "_on_bytes"
option now as interface hasn't been finalized).
Use this interface to improve many edge cases of extmark adjustment.
Changed tests indicate previously incorrect behavior. Adding tests for
more edge cases will be follow-up work (overlaps on_bytes tests)
Don't consider creation/deletion of marks an undoable event by itself.
This behavior was never documented, and imposes complexity for little gain.
Add nvim__buf_add_decoration temporary API for direct access to the new
implementation. This should be refactored into a proper API for
decorations, probably involving a huge dict.
fixes #11598
2020-01-16 12:36:10 +01:00
Jan Edmund Lazo
abaabd1d03
vim-patch:8.2.0074: Python 3 unicode test someitmes fails
...
Problem: Python 3 unicode test someitmes fails.
Solution: Make 'termencoding' empty. Correct number of error message.
4b7cdca230
2020-01-01 13:11:54 -05:00
Björn Linse
2cc83c961c
refactor: use inserted_bytes pattern from vim
...
This covers all "small" inserts and deletes in insert mode, as well
as a few more cases like small normal mode deletes
vim-patch:8.1.0678: text properties as not adjusted for inserted text
2019-11-23 16:46:47 +01:00
timeyyy
a9065a5051
nsmarks: initial commit
2019-11-11 19:43:15 +01:00