Commit Graph

24528 Commits

Author SHA1 Message Date
Lewis Russell
b693d65171 refactor(optionstr.c): break up did_set_string_option 33 2023-01-25 11:48:52 +00:00
Lewis Russell
8ef464aeb4 refactor(optionstr.c): break up did_set_string_option 32 2023-01-25 11:48:52 +00:00
Lewis Russell
0522dc35af refactor(optionstr.c): break up did_set_string_option 31 2023-01-25 11:48:52 +00:00
Lewis Russell
59746d228e refactor(optionstr.c): break up did_set_string_option 30 2023-01-25 11:48:52 +00:00
Lewis Russell
5024ac8eb5 refactor(optionstr.c): break up did_set_string_option 29 2023-01-25 11:48:52 +00:00
Lewis Russell
655292586a refactor(optionstr.c): break up did_set_string_option 28 2023-01-25 11:48:52 +00:00
Lewis Russell
f9e15db27d refactor(optionstr.c): break up did_set_string_option 27 2023-01-25 11:48:52 +00:00
Lewis Russell
700a02bd83 refactor(optionstr.c): break up did_set_string_option 26 2023-01-25 11:48:52 +00:00
Lewis Russell
7fa7c758e2 refactor(optionstr.c): break up did_set_string_option 25 2023-01-25 11:48:52 +00:00
Lewis Russell
12d065dceb refactor(optionstr.c): break up did_set_string_option 24 2023-01-25 11:48:52 +00:00
Lewis Russell
3fbc5f9860 refactor(optionstr.c): break up did_set_string_option 23 2023-01-25 11:48:52 +00:00
Lewis Russell
ccaed94475 refactor(optionstr.c): break up did_set_string_option 22 2023-01-25 11:48:52 +00:00
Lewis Russell
6dc62f2fe2 refactor(optionstr.c): break up did_set_string_option 21 2023-01-25 11:48:52 +00:00
Lewis Russell
2cea568a7c refactor(optionstr.c): break up did_set_string_option 20 2023-01-25 11:48:52 +00:00
Lewis Russell
c2fa39e026 refactor(optionstr.c): break up did_set_string_option 19 2023-01-25 11:48:52 +00:00
Lewis Russell
fec41d5f15 refactor(optionstr.c): break up did_set_string_option 18 2023-01-25 11:48:52 +00:00
Lewis Russell
fca3053a3e refactor(optionstr.c): break up did_set_string_option 17 2023-01-25 11:48:52 +00:00
Lewis Russell
5adf8f9276 refactor(optionstr.c): break up did_set_string_option 16 2023-01-25 11:48:52 +00:00
Lewis Russell
db6461b6ad refactor(optionstr.c): break up did_set_string_option 15 2023-01-25 11:48:52 +00:00
Lewis Russell
f6eac7fdf9 refactor(optionstr.c): break up did_set_string_option 14
squash me
2023-01-25 11:48:52 +00:00
Lewis Russell
b3272031f7 refactor(optionstr.c): break up did_set_string_option 13 2023-01-25 11:48:52 +00:00
Lewis Russell
9d12b07405 refactor(optionstr.c): break up did_set_string_option 12 2023-01-25 11:48:52 +00:00
Lewis Russell
fb8dd1bac7 refactor(optionstr.c): break up did_set_string_option 11 2023-01-25 11:48:52 +00:00
Lewis Russell
3f2c72d873 refactor(optionstr.c): break up did_set_string_option 10 2023-01-25 11:48:52 +00:00
Lewis Russell
696c470e68 refactor(optionstr.c): break up did_set_string_option 9 2023-01-25 11:48:52 +00:00
Lewis Russell
47145eb3cd refactor(optionstr.c): break up did_set_string_option 8 2023-01-25 11:48:52 +00:00
Lewis Russell
a22702b5d5 refactor(optionstr.c): break up did_set_string_option 7 2023-01-25 11:48:52 +00:00
Lewis Russell
632bc7954e refactor(optionstr.c): break up did_set_string_option 6 2023-01-25 11:48:52 +00:00
Lewis Russell
5ec8bb73c2 refactor(optionstr.c): break up did_set_string_option 5 2023-01-25 11:48:52 +00:00
Lewis Russell
e334f5a57d refactor(optionstr.c): break up did_set_string_option 4 2023-01-25 11:48:52 +00:00
Lewis Russell
2a665736c1 refactor(optionstr.c): break up did_set_string_option 3 2023-01-25 11:48:52 +00:00
Lewis Russell
e93d9df4ec refactor(optionstr.c): break up did_set_string_option 2 2023-01-25 11:48:52 +00:00
Lewis Russell
d5119db2fa refactor(optionstr.c): break up did_set_string_option 1 2023-01-25 11:48:52 +00:00
Lewis Russell
8fd3d2b61f refactor(optionstr.c): reduce scope of locals 2023-01-25 11:48:52 +00:00
Lewis Russell
db87807983 refactor(option.c): use intermediate for options ref 2023-01-25 11:48:52 +00:00
Lewis Russell
29215d3a49 refactor(option.c): de-nest set_option_value 2023-01-25 11:48:51 +00:00
Lewis Russell
f90d78654a refactor(option.c): add get_varp_from and get_varp_scope_from 2023-01-25 11:48:48 +00:00
Lewis Russell
00a7c40f4f refactor(option.c): reduce scope of locals 2023-01-24 13:15:40 +00:00
zeertzjq
c6ab8dfc15 revert: "refactor(win_close): remove "force", don't pass on "free_buf" (#21921)" (#21979)
This reverts commit 0371d0f7af.

> 'bufhidden' option exists. I don't think we should assume autoclosing
windows are fine just because 'hidden' is set.
2023-01-24 18:31:07 +08:00
dundargoc
39630265c4 build: remove GNU make check (#21977)
The entire thing is incorrect. It checks the wrong variable and tries to
unset a cache variable without using the CACHE keyword, which doesn't work.
2023-01-24 10:40:50 +01:00
dundargoc
34a16209bb build: delete pthreads import (#21732)
We shouldn't need this as all threading should already be handled by
libuv. Furthermore, it wasn't even used correctly as
CMAKE_THREAD_PREFER_PTHREAD has been removed from cmake a long time ago.
2023-01-24 10:40:18 +01:00
dundargoc
993dc6e97e build: use upstream CMakeLists.txt for unibilium (#21976)
Also remove UnibiliumCMakeLists.txt as it's not necessary anymore.
2023-01-24 09:36:32 +01:00
dundargoc
bcbdb94185 build: simplify treesitter installation (#21969) 2023-01-24 08:55:56 +01:00
dundargoc
20a932cb72 build: use cmake for all platforms for unibilium and libtermkey (#21926)
It's simpler to rely on the same build file, especially if there aren't
any platform-specific workarounds like in this case.
2023-01-24 08:55:38 +01:00
zeertzjq
fca39eeabb fix(api): don't allow hiding aucmd_win from another tabpage (#21975) 2023-01-24 15:39:43 +08:00
Sean Dewar
bcdbf77537 fix(lsp): check method is supported when range formatting (#21970)
`vim.lsp.buf.format()` silently did nothing if no servers supported
`textDocument/rangeFormatting` when formatting with a range.

Issue found by `@hwrd:matrix.org` in the Matrix chat.
2023-01-24 07:15:43 +01:00
zeertzjq
7126d9b8c7 refactor(window): remove aucmd_win check from one_window() (#21972)
In most places where one_window() or last_window() is called, aucmd_win
has already been checked, so there is no need to check for it again.

The only place where this isn't checked is when using `:wincmd T`.
Before this PR using `:wincmd T` in an aucmd_win will give a warning
when there is only one non-floating window, but E813 error if there are
multiple. Now it consistently gives E813 error.
2023-01-24 11:29:37 +08:00
zeertzjq
fa12b9ca2b vim-patch:partial:9.0.1237: code is indented more than necessary (#21971)
Problem:    Code is indented more than necessary.
Solution:   Use an early return where it makes sense. (Yegappan Lakshmanan,
            closes vim/vim#11858)

6ec6666047

Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
2023-01-24 08:43:51 +08:00
zeertzjq
dbb6c7f1b8 vim-patch:9.0.1236: code in same_leader() can be simplified (#21968)
Problem:    Code in same_leader() can be simplified.
Solution:   Simplify code that is executed only once. (closes vim/vim#11867)

9cbf791995
2023-01-24 07:40:22 +08:00
dundargoc
322c83896d build: remove unnecessary unit test code (#21940)
The files generated by test/includes/CMakeLists.txt have been unused
since commit c49e22d396. The unittests include the headers in
test/includes directly without any processing, meaning that the
CMakeLists.txt file is no longer necessary.
2023-01-24 00:03:25 +01:00