Bram Moolenaar
9ba6194d4c
patch 9.0.0338: return value of list_append_list() not always checked
...
Problem: Return value of list_append_list() not always checked.
Solution: Check return value and handle failure.
2022-08-31 11:25:06 +01:00
Yegappan Lakshmanan
04c4c5746e
patch 9.0.0335: checks for Dictionary argument often give a vague error
...
Problem: Checks for Dictionary argument often give a vague error message.
Solution: Give a useful error message. (Yegappan Lakshmanan, closes #11009 )
2022-08-30 19:48:24 +01:00
Bram Moolenaar
d61efa50f8
patch 9.0.0063: too many type casts for dict_get functions
...
Problem: Too many type casts for dict_get functions.
Solution: Change the key argument from "char_u *" to "char *".
2022-07-23 09:52:04 +01:00
Bram Moolenaar
93a1096fe4
patch 8.2.5107: some callers of rettv_list_alloc() check for not OK
...
Problem: Some callers of rettv_list_alloc() check for not OK. (Christ van
Willegen)
Solution: Use "==" instead of "!=" when checking the return value.
2022-06-16 11:42:09 +01:00
Bram Moolenaar
6ed545e797
patch 8.2.4928: various white space and cosmetic mistakes
...
Problem: Various white space and cosmetic mistakes.
Solution: Change spaces to tabs, improve comments.
2022-05-09 20:09:23 +01:00
LemonBoy
4a392d2440
patch 8.2.4814: possible to leave a popup window with win_gotoid()
...
Problem: Possible to leave a popup window with win_gotoid().
Solution: Give an error when trying to leave a popup window with
win_gotoid(). (closes #10253 )
2022-04-23 14:07:56 +01:00
LemonBoy
8530b41fd3
patch 8.2.4797: getwininfo() may get oudated values
...
Problem: getwininfo() may get oudated values.
Solution: Make sure w_botline is up-to-date. (closes #10226 )
2022-04-20 19:00:36 +01:00
Bram Moolenaar
3aca0916f0
patch 8.2.4785: Visual mode not stopped if win_gotoid() goes to other buffer
...
Problem: Visual mode not stopped early enough if win_gotoid() goes to
another buffer. (Sergey Vlasov)
Solution: Stop Visual mode before jumping to another buffer. (closes #10217 )
2022-04-18 18:32:19 +01:00
Yegappan Lakshmanan
4829c1c9e9
patch 8.2.4683: verbose check with dict_find() to see if a key is present
...
Problem: Verbose check with dict_find() to see if a key is present.
Solution: Add dict_has_key(). (Yegappan Lakshmanan, closes #10074 )
2022-04-04 15:16:54 +01:00
Bram Moolenaar
d6f27c66cc
patch 8.2.4060: win_execute() slow on systems where getcwd()/chdir() is slow
...
Problem: win_execute() is slow on systems where getcwd() or chdir() is
slow. (Rick Howe)
Solution: Avoid using getcwd() and chdir() if no local directory is used and
'acd' is not set. (closes #9504 )
2022-01-11 12:37:20 +00:00
Daniel Steinberg
ee63031b57
patch 8.2.4052: not easy to resize a window from a plugin
...
Problem: Not easy to resize a window from a plugin.
Solution: Add win_move_separator() and win_move_statusline() functions.
(Daniel Steinberg, closes #9486 )
2022-01-10 13:36:34 +00:00
Bram Moolenaar
04935fb17e
patch 8.2.4043: using int for second argument of ga_init2()
...
Problem: Using int for second argument of ga_init2().
Solution: Remove unnessary type cast (int) when using sizeof().
2022-01-08 16:19:22 +00:00
Bram Moolenaar
e664a32701
patch 8.2.4026: ml_get error with specific win_execute() command
...
Problem: ml_get error with specific win_execute() command. (Sean Dewar)
Solution: Check cursor and Visual area are OK.
2022-01-07 14:08:03 +00:00
Bram Moolenaar
18f4740f04
patch 8.2.4018: ml_get error when win_execute redraws with Visual selection
...
Problem: ml_get error when win_execute redraws with Visual selection.
Solution: Disable Visual area temporarily. (closes #9479 )
2022-01-06 13:24:51 +00:00
Bram Moolenaar
3a846e6bca
patch 8.2.3972: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move the last errors from globals.h to errors.h.
2022-01-01 16:21:00 +00:00
Bram Moolenaar
436b5adc97
patch 8.2.3961: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move more errors to errors.h.
2021-12-31 22:49:24 +00:00
Bram Moolenaar
92f246e4f9
patch 8.2.3926: build failure without the 'autochdir' option
...
Problem: Build failure without the 'autochdir' option. (John Marriott)
Solution: Add #ifdefs.
2021-12-28 20:03:43 +00:00
Bram Moolenaar
90c317f224
patch 8.2.3920: restoring directory after using another window is inefficient
...
Problem: Restoring directory after using another window is inefficient.
Solution: Only restore the directory for win_execute(). Apply 'autochdir'
only when needed.
2021-12-28 13:15:05 +00:00
Bram Moolenaar
dab17a0689
patch 8.2.3862: crash on exit with EXITFREE and using win_execute()
...
Problem: Crash on exit with EXITFREE and using win_execute().
Solution: Also save and restore tp_topframe. (issue #9374 )
2021-12-20 21:35:59 +00:00
Bram Moolenaar
cdf5fdb294
patch 8.2.3627: difficult to know where the text starts in a window
...
Problem: difficult to know where the text starts in a window. (Sergey
Vlasov)
Solution: Add the "textoff" entry in the result of getwininfo().
(closes #9163 )
2021-11-20 11:14:24 +00:00
Bram Moolenaar
7f13b24ab6
patch 8.2.3593: directory is wrong after executing "lcd" with win_execute()
...
Problem: Directory is wrong after executing "lcd" with win_execute().
Solution: Correct the directory when going back to the original window.
(closes #9132 )
2021-11-14 11:41:31 +00:00
Yegappan Lakshmanan
28d8421bfb
patch 8.2.3254: win_gettype() does not recognize a quickfix window
...
Problem: win_gettype() does not recognize a quickfix window.
Solution: Add "quickfix" and "loclist". (Yegappan Lakshmanan, closes #8676 )
2021-07-31 12:43:23 +02:00
Yegappan Lakshmanan
4490ec4e83
patch 8.2.3229: Vim9: runtime and compile time type checks are not the same
...
Problem: Vim9: runtime and compile time type checks are not the same.
Solution: Add more runtime type checks for builtin functions. (Yegappan
Lakshmanan, closes #8646 )
2021-07-27 22:00:44 +02:00
Yegappan Lakshmanan
83494b4ac6
patch 8.2.3188: Vim9: argument types are not checked at compile time
...
Problem: Vim9: argument types are not checked at compile time.
Solution: Add several more type checks, also at runtime. (Yegappan
Lakshmanan, closes #8587 )
2021-07-20 17:51:51 +02:00
Yegappan Lakshmanan
1a71d31bf3
patch 8.2.3162: Vim9: argument types are not checked at compile time
...
Problem: Vim9: argument types are not checked at compile time.
Solution: Add more type checks. (Yegappan Lakshmanan, closes #8560 )
2021-07-15 12:49:58 +02:00
Bram Moolenaar
108010aa47
patch 8.2.3069: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move some error messages to errors.h. Use clearer names.
2021-06-27 22:03:33 +02:00
Bram Moolenaar
a0c8aea479
patch 8.2.2631: commands from winrestcmd() do not always work properly
...
Problem: Commands from winrestcmd() do not always work properly. (Leonid V.
Fedorenchik)
Solution: Repeat the size commands twice. (closes #7988 )
2021-03-20 19:55:35 +01:00
Bram Moolenaar
37487e16da
patch 8.2.2340: win_execute() unexpectedly returns number zero when failing
...
Problem: win_execute() unexpectedly returns number zero when failing.
Solution: Return an empty string. (closes #7665 )
2021-01-12 22:08:53 +01:00
Bram Moolenaar
285b15fce1
patch 8.2.2245: Vim9: return value of winrestcmd() cannot be executed
...
Problem: Vim9: return value of winrestcmd() cannot be executed.
Solution: Put colons before each range. (closes #7571 )
2020-12-29 20:25:19 +01:00
Bram Moolenaar
99ca9c4868
patch 8.2.1727: a popup created with "cursorline" will ignore "firstline"
...
Problem: A popup created with "cursorline" will ignore "firstline".
Solution: When both "cursorline" and "firstline" are present put the cursor
on "firstline". (closes #7000 ) Add the "winid" argument to
getcurpos().
2020-09-22 21:55:41 +02:00
Bram Moolenaar
4b9bd692bd
patch 8.2.1617: Vim9: cannot pass "true" to win_splitmove()
...
Problem: Vim9: cannot pass "true" to win_splitmove().
Solution: Use dict_get_bool(). (closes #6862 ) Alphabetize test functions.
2020-09-05 21:57:53 +02:00
Bram Moolenaar
1f42f5a675
patch 8.2.1581: using line() for global popup window doesn't work
...
Problem: Using line() for global popup window doesn't work.
Solution: Set tabpage to "curtab". (closes #6847 )
2020-09-03 18:52:24 +02:00
Bram Moolenaar
62a232506d
patch 8.2.1401: cannot jump to the last used tabpage
...
Problem: Cannot jump to the last used tabpage.
Solution: Add g<Tab> and tabpagnr('#'). (Yegappan Lakshmanan, closes #6661 ,
neovim #11626 )
2020-08-09 14:04:42 +02:00
Bram Moolenaar
40a019f157
patch 8.2.0996: using "aucmdwin" in win_gettype() is not ideal
...
Problem: Using "aucmdwin" in win_gettype() is not ideal.
Solution: Rename to "autocmd".
2020-06-17 21:41:35 +02:00
Bram Moolenaar
0fe937fd86
patch 8.2.0991: cannot get window type for autocmd and preview window
...
Problem: Cannot get window type for autocmd and preview window.
Solution: Add types to win_gettype(). (Yegappan Lakshmanan, closes #6277 )
2020-06-16 22:42:04 +02:00
Bram Moolenaar
00d253e2b2
patch 8.2.0523: loops are repeated
...
Problem: Loops are repeated.
Solution: Use FOR_ALL_ macros. (Yegappan Lakshmanan, closes #5882 )
2020-04-06 22:13:01 +02:00
Bram Moolenaar
aeea72151c
patch 8.2.0500: using the same loop in many places
...
Problem: Using the same loop in many places.
Solution: Define more FOR_ALL macros. (Yegappan Lakshmanan, closes #5339 )
2020-04-02 18:50:46 +02:00
Bram Moolenaar
0f1563ffee
patch 8.2.0422: crash when passing popup window to win_splitmove()
...
Problem: Crash when passing popup window to win_splitmove(). (john Devin)
Solution: Disallow moving a popup window. (closes #5816 )
2020-03-20 21:15:51 +01:00
Bram Moolenaar
00f3b4e007
patch 8.2.0257: cannot recognize a terminal in a popup window
...
Problem: Cannot recognize a terminal in a popup window.
Solution: Add the win_gettype() function.
2020-02-14 14:32:22 +01:00
Bram Moolenaar
631ebc4814
patch 8.2.0204: crash when using winnr('j') in a popup window
...
Problem: Crash when using winnr('j') in a popup window.
Solution: Do not search for neighbors in a popup window. (closes #5568 )
2020-02-03 22:15:26 +01:00
Bram Moolenaar
ee93b737aa
patch 8.2.0117: crash when using gettabwinvar() with invalid arguments
...
Problem: Crash when using gettabwinvar() with invalid arguments. (Yilin
Yang)
Solution: Use "curtab" if "tp" is NULL. (closes #5475 )
2020-01-14 19:05:39 +01:00
Bram Moolenaar
7b94e77132
patch 8.2.0093: win_splitmove() can make Vim hang
...
Problem: win_splitmove() can make Vim hang.
Solution: Check windows exists in the current tab page. (closes #5444 )
2020-01-06 21:03:24 +01:00
Bram Moolenaar
05ad5ff0ab
patch 8.1.2371: FEAT_TEXT_PROP is a confusing name
...
Problem: FEAT_TEXT_PROP is a confusing name.
Solution: Use FEAT_PROP_POPUP. (Naruhiko Nishino, closes #5291 )
2019-11-30 22:48:27 +01:00
Bram Moolenaar
345f28df54
patch 8.1.2124: ruler is not updated if win_execute() moves cursor
...
Problem: Ruler is not updated if win_execute() moves cursor.
Solution: Update the status line. (closes #5022 )
2019-10-08 22:20:35 +02:00
Bram Moolenaar
a046b37c22
patch 8.1.2037: can call win_gotoid() in cmdline window
...
Problem: Can call win_gotoid() in cmdline window.
Solution: Disallow switching windows. (Yasuhiro Matsumoto, closes #4940 )
2019-09-15 17:26:07 +02:00
Bram Moolenaar
d20dcb3d01
patch 8.1.2020: it is not easy to change the window layout
...
Problem: It is not easy to change the window layout.
Solution: Add win_splitmove(). (Andy Massimino, closes #4561 )
2019-09-10 21:22:58 +02:00
Bram Moolenaar
261f346f81
patch 8.1.2001: some source files are too big
...
Problem: Some source files are too big.
Solution: Move buffer and window related functions to evalbuffer.c and
evalwindow.c. (Yegappan Lakshmanan, closes #4898 )
2019-09-07 15:45:32 +02:00