Dundar Göc
df27579f54
vim-patch:8.1.2388: using old C style comments
...
Problem: Using old C style comments.
Solution: Use // comments where appropriate.
4ba37b5833
2021-10-21 12:07:14 +02:00
Dundar Göc
38dd53c525
refactor: make commas trail in enums
2021-10-19 15:20:33 +02:00
Jan Edmund Lazo
77e6ecf85a
Merge pull request #15930 from dundargoc/vim-patch/old-style-c-comments
...
vim-patch:8.1.2396,8.1.2395,8.1.2394,8.1.2392,8.1.2368,8.1.2388,8.1.2379
2021-10-17 10:21:40 -04:00
dundargoc
5940a3415b
vim-patch:8.2.3490: superfluous return statements #15978
...
Problem: Superfluous return statements.
Solution: Remove superfluous return statements from void functions.
(closes vim/vim#8977 )
3826c0513b
2021-10-09 16:38:50 -07:00
Dundar Göc
3b3e2244db
vim-patch:8.1.2388: using old C style comments
...
Problem: Using old C style comments.
Solution: Use // comments where appropriate.
4ba37b5833
2021-10-06 11:50:10 +02:00
dundargoc
48e67b2294
refactor: format with uncrustify #15741
2021-09-22 06:25:38 -07:00
Sean Dewar
1e0d563967
vim-patch:8.2.3375: using uninitialized memory
...
Problem: Using uninitialized memory.
Solution: Initialize textprop_save_len.
df9070e300
textprop_save_len is N/A.
2021-09-17 02:10:45 +01:00
dundargoc
d5b66e8860
refactor: replace TRUE/FALSE with true/false #15647
2021-09-13 04:57:36 -07:00
Gregory Anders
4e516e53bf
fix: remove trailing slashes before making directory
...
Remove the trailing slashes from 'undofile' and 'backupdir' before
creating directories. They cause problems on Windows which doesn't
recognize these slashes as proper path separators.
2021-08-27 10:45:25 -06:00
dundargoc
db1b0ee3b3
refactor: replace TRUE/FALSE with true/false #15425
2021-08-22 07:10:57 -07:00
Dundar Göc
94120d2fd5
refactor: replace TRUE/FALSE with true/false
2021-07-30 12:29:32 +02:00
dundargoc
4547137aaf
chore: use codespell to spell check #15016
2021-07-07 15:28:44 -07:00
Jan Edmund Lazo
292037ef9b
vim-patch:8.2.2966: ml_get errors after recovering a file
...
Problem: ml_get errors after recovering a file. (Yegappan Lakshmanan)
Solution: Fix the cursor position after deleting lines.
e3f50ad640
2021-06-10 19:20:32 -04:00
Jan Edmund Lazo
c6b8598616
memline: pvs/v1071
...
"void" cast unused return value of ml_find_line().
2021-06-05 12:49:28 -04:00
Jan Edmund Lazo
effd234960
vim-patch:8.2.1507: using malloc() directly
...
Problem: Using malloc() directly.
Solution: Use ALLOC_ONE(). Remove superfluous typecast. (Hussam al-Homsi,
closes vim/vim#6768 )
51b6eb47b3
2021-03-09 18:38:04 -05:00
Jan Edmund Lazo
ab5083b5fc
pos: define MAXCOL to INT_MAX
...
Partial port of patch v8.1.0953.
Remove useless casts on MAXCOL.
2021-02-23 23:00:06 -05:00
Jan Edmund Lazo
883114e882
vim-patch:8.2.0928: many type casts are used for vim_strnsave()
...
Problem: Many type casts are used for vim_strnsave().
Solution: Make the length argument size_t instead of int. (Ken Takata,
closes vim/vim#5633 ) Remove some type casts.
df44a27b53
N/A patches for version.c:
vim-patch:8.2.0315: build failure on HP-UX system
Problem: Build failure on HP-UX system.
Solution: Use LONG_LONG_MIN instead of LLONG_MIN. Add type casts for switch
statement. (John Marriott)
c593bec412
vim-patch:8.2.1052: build failure with older compilers
Problem: Build failure with older compilers.
Solution: Move declaration to start of block.
7acde51832
vim-patch:8.2.2229: build failure without the +eval feature
Problem: build failure without the +eval feature.
Solution: Add #ifdef.
39cb2dab18
vim-patch:8.2.2232: compiler error for falling through into next case
Problem: Compiler error for falling through into next case.
Solution: Move FALLTHROUGH below the #endif
9618a25b9c
2020-12-27 14:05:41 -05:00
Jan Edmund Lazo
e2504d2192
vim-patch:8.1.0806: too many #ifdefs
...
Problem: Too many #ifdefs.
Solution: Graduate FEAT_MBYTE, part 2.
fc3abf47fb
2020-11-12 01:12:58 -05:00
Jan Edmund Lazo
a2e1bcd176
vim-patch:8.2.1219: symlink not followed if dirname ends in //
...
Problem: Symlink not followed if dirname ends in //.
Solution: Resolve symlink earlier. (Tomáš Janoušek, closes vim/vim#6454 )
5966ea105e
2020-10-17 02:23:03 -04:00
Jan Edmund Lazo
476c50903a
vim-patch:8.1.0499: :2vimgrep causes an ml_get error
...
Problem: :2vimgrep causes an ml_get error
Solution: Pass tomatch pointer instead of value. (Yegappan Lakshmanan)
1c29943416
2020-09-13 08:25:20 -04:00
Björn Linse
ef5e7b862d
memline: do not attempt to cache line2byte()
...
This is irrelevant to neovim usecases anyway.
2020-09-10 06:50:04 +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
81fa107f59
memline: cache byte offset of current line
...
When editing a line in insert mode, this value will be
used for every keypress.
2020-09-09 21:22:21 +02:00
Thomas Vigouroux
be057197d3
buffer_updates: prefer using ml_add_deleted_len_buf
2020-07-21 19:18:04 +02:00
Thomas Vigouroux
2c34780c32
buffer_updates: emit valid old_byte_size
...
Test this using treesitter highlighting, which is based on this
old_byte_size.
2020-07-21 19:18:04 +02:00
Matthieu Coudron
6da348f220
lint: fix linting issues
2020-04-24 20:33:11 +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
Jan Edmund Lazo
573671b1fb
vim-patch:8.1.1313: warnings for using localtime() and ctime()
...
Problem: Warnings for using localtime() and ctime().
Solution: Use localtime_r() if available. Avoid using ctime().
63d2555c9c
2020-03-29 09:41:17 -04:00
Jan Edmund Lazo
bde4f47eb2
vim-patch:8.1.2223: cannot see what buffer an ml_get error is for
...
Problem: Cannot see what buffer an ml_get error is for.
Solution: Add the buffer number and name in the message
cb86893114
2020-02-16 07:49:44 -05:00
Jan Edmund Lazo
94ad6652f1
Remove enc_utf8,has_mbyte dead code
2020-01-25 18:09:17 -05:00
Jan Edmund Lazo
8819b5c06e
vim-patch:8.1.0461: quickfix: change comment style #11453
...
Problem: Quickfix code uses too many /* */ comments.
Solution: Change to // comments. (Yegappan Lakshmanan)
00bf8cd211
2019-11-24 20:10:25 -08:00
Joe Hermaszewski
1ff5b60cb9
vim-patch:8.1.0251: support full paths for 'backupdir' #11269
...
Problem: Using a full path is supported for 'directory' but not for
'backupdir'. (Mikolaj Machowski)
Solution: Support 'backupdir' as well. (Christian Brabandt, closes vim/vim#179 )
b782ba475a
2019-11-17 23:38:27 -08:00
Jan Edmund Lazo
6dceaf3361
vim-patch:8.1.0014: qf_init_ext() is too long
...
Problem: qf_init_ext() is too long.
Solution: Split it into multiple functions. (Yegappan Lakshmanan,
closes vim/vim#2939 )
6053f2d29a
2019-10-23 01:33:15 -04:00
Daniel Hahler
3de4dc539a
vim-patch:8.1.2180: Error E303 is not useful when 'directory' is empty ( #11257 )
...
Problem: Error E303 is not useful when 'directory' is empty.
Solution: Skip the error message. (Daniel Hahler, vim/vim#5067 )
00e192becd
2019-10-19 14:11:31 -07:00
Jurica Bradarić
fe074611cd
vim-patch:8.1.1371: cannot recover from a swap file #11081
...
Problem: Cannot recover from a swap file.
Solution: Do not expand environment variables in the swap file name.
Do not check the extension when we already know a file is a swap
file. (Ken Takata, closes 4415, closes vim/vim#4369 )
99499b1c05
2019-10-05 20:35:48 -07:00
Justin M. Keyes
83c5701fe6
vim-patch:8.1.1498: ":write" increments b:changedtick even though nothing changed
...
Problem: ":write" increments b:changedtick even though nothing changed.
(Daniel Hahler)
Solution: Only increment b:changedtick if the modified flag is reset.
c024b46678
2019-09-04 21:21:28 +02:00
Björn Linse
14615f7f67
screen: add some documentation of internals of msg_grid implementation
2019-09-01 18:53:55 +02:00
Björn Linse
b51ba122c1
screen: use dedicated message grid
...
add proper msg_set_pos event, delet win_scroll_over_*
make compositor click through unfocusable grids
add MsgArea attribute for the message/cmdline area, and add docs and tests
2019-09-01 15:55:10 +02:00
Daniel Hahler
0e3b9ea74d
includes
2019-08-07 14:21:23 +02:00
Björn Linse
c0993ed343
lua: support getting UTF-32 and UTF-16 sizes of replaced text
2019-08-06 20:24:36 +02:00
Björn Linse
b0e26199ec
lua: add {old_byte_size} to on_lines buffer change event
2019-08-06 17:01:47 +02:00
Jan Edmund Lazo
2d6c91ab99
vim-patch:8.0.1688: some macros are used without a semicolon
...
Problem: Some macros are used without a semicolon, causing auto-indent to be
wrong.
Solution: Use the do-while(0) trick. (Ozaki Kiichi, closes vim/vim#2729 )
6f4700233f
2019-06-26 00:05:29 -04:00
Andrej Zieger
80f40f0203
lint
2019-05-26 19:32:32 +02:00
Justin M. Keyes
51a59a0f62
lint
2019-05-25 13:51:30 +02:00
Justin M. Keyes
ae846b41df
vim-patch:8.0.1496: VIM_CLEAR()
...
Problem: Clearing a pointer takes two lines.
Solution: Add VIM_CLEAR() and replace vim_clear(). (Hirohito Higashi,
closes #2629 )
vim-patch:8.0.1481
2019-05-25 10:07:05 +02:00
Jan Edmund Lazo
0e7048ae05
lint
2019-04-30 05:13:06 -04:00
Justin M. Keyes
aac731c22b
vim-patch:8.1.0642: swapinfo() leaks memory
...
Problem: swapinfo() leaks memory.
Solution: Avoid allocating the strings twice.
e6fdf79980
2019-04-29 22:41:16 +02:00
Justin M. Keyes
a01246c275
lint
2019-04-29 21:37:22 +02:00
Justin M. Keyes
3033b5a70a
vim-patch:8.1.1231: asking about existing swap file unnecessarily
...
Problem: Asking about existing swap file unnecessarily.
Solution: When it is safe, delete the swap file. Remove
HAS_SWAP_EXISTS_ACTION, it is always defined. (closes vim/vim#1237 )
67cf86bfff
N/A:
vim-patch:8.1.1232
vim-patch:8.1.1233
vim-patch:8.1.1236
2019-04-29 21:22:55 +02:00