mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
vim-patch:8.2.3795: too many #ifdefs
Problem: Too many #ifdefs.
Solution: Graduate the jumplist feature.
739f13a55b
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
@@ -248,7 +248,7 @@ int u_save_cursor(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Save the lines between "top" and "bot" for both the "u" and "U" command.
|
/// Save the lines between "top" and "bot" for both the "u" and "U" command.
|
||||||
/// "top" may be 0 and bot may be curbuf->b_ml.ml_line_count + 1.
|
/// "top" may be 0 and "bot" may be curbuf->b_ml.ml_line_count + 1.
|
||||||
/// Careful: may trigger autocommands that reload the buffer.
|
/// Careful: may trigger autocommands that reload the buffer.
|
||||||
/// Returns FAIL when lines could not be saved, OK otherwise.
|
/// Returns FAIL when lines could not be saved, OK otherwise.
|
||||||
int u_save(linenr_T top, linenr_T bot)
|
int u_save(linenr_T top, linenr_T bot)
|
||||||
|
@@ -2,10 +2,6 @@
|
|||||||
|
|
||||||
" Tests for the getjumplist() function
|
" Tests for the getjumplist() function
|
||||||
func Test_getjumplist()
|
func Test_getjumplist()
|
||||||
if !has("jumplist")
|
|
||||||
return
|
|
||||||
endif
|
|
||||||
|
|
||||||
%bwipe
|
%bwipe
|
||||||
clearjumps
|
clearjumps
|
||||||
call assert_equal([[], 0], getjumplist())
|
call assert_equal([[], 0], getjumplist())
|
||||||
|
Reference in New Issue
Block a user