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
Justin M. Keyes
035a41c218
vim-patch:8.1.0325: strings in swap file may not be NUL terminated
...
Problem: Strings in swap file may not be NUL terminated. (Coverity)
Solution: Limit the length of the used string.
7c60505e10
2019-04-29 21:19:45 +02:00
Justin M. Keyes
39e3783c69
vim-patch:8.1.0314: add swapinfo() "dirty" item
...
Problem: Build failure without the +eval feature. (Brenton Horne)
Solution: Add #ifdef. Also add the "dirty" item.
47ad5656e1
2019-04-29 21:19:45 +02:00
Justin M. Keyes
24b7462b3c
vim-patch:8.1.0313: information about a swap file is unavailable
...
Problem: Information about a swap file is unavailable.
Solution: Add swapinfo(). (Enzo Ferber)
00f123a565
2019-04-29 19:55:42 +02:00
Björn Linse
0f96a21e3f
multigrid: reset win scrolling after swap message
2019-02-02 16:31:49 +01:00
raffitz
95fa71c6d2
:recover : Fix crash on non-existent *.swp #9504
...
Reverts d2944e6a29
. mf_open() _can_ fail if the file does not exist.
closes #9503
closes #9504
2019-01-15 00:47:53 +01:00
Björn Linse
c40f992e10
api: simplify nvim_buf_get_offset function
2018-11-01 22:00:40 +01:00
Jan Edmund Lazo
f9fe903579
vim-patch:8.1.0501: cppcheck warns for using array index before bounds check ( #9178 )
...
Problem: Cppcheck warns for using array index before bounds check.
Solution: Swap the conditions. (Dominique Pelle)
a9a8e04eab
2018-11-01 09:53:46 +01:00
Jan Edmund Lazo
12376cc01c
memline: process_still_running is bool
2018-10-13 17:16:42 -04:00
Jan Edmund Lazo
726baefdf7
vim-patch:8.1.0473: user doesn't notice file does not exist when swap file does
...
Problem: User doesn't notice file does not exist when swap file does.
Solution: Add a note that the file cannot be found. Make the "still
running" notice stand out.
d6105cb408
2018-10-13 17:13:47 -04:00
Jan Edmund Lazo
f181efdeaf
vim-patch:8.1.0466: autocmd test fails
...
Problem: Autocmd test fails.
Solution: Do call inchar() when flushing typeahead.
6a2633b00b
2018-10-08 21:14:07 -04:00
Jan Edmund Lazo
573567aef6
vim-patch:8.1.0463: "simalt ~x" in .vimrc blocks swap file prompt
...
Problem: "simalt ~x" in .vimrc blocks swap file prompt.
Solution: Flush buffers before prompting. (Yasuhiro Matsumoto,
closes vim/vim#3518 , closes vim/vim#2192 )
798184cc67
2018-10-08 17:58:35 -04:00