Bram Moolenaar [Tue, 27 Jun 2023 20:51:07 +0000 (21:51 +0100)]
patch 9.0.1670: resetting local option to global value is inconsistent
Problem: Resetting local option to global value is inconsistent.
Solution: Handle "<" specifically for 'scrolloff' and 'sidescrolloff'.
(closes #12594)
patch 9.0.1669: Crash syncing swapfile in new buffer when using sodium crypt
Problem: Crash syncing swapfile in new buffer when using sodium crypt.
(James McCoy)
Solution: Add checks for sodium encryption. (Christian Brabandt,
closes #12591, closes #12585)
patch 9.0.1663: Termdebug on MS-Windows: some file names are not recognized
Problem: Termdebug on MS-Windows: some file names are not recognized.
Solution: Do not always change \t and \n. (Christian Brabandt,
closes #12565, closes #12560, closes #12550)
patch 9.0.1660: error for using matchfuzzy() returning a list of dicts
Problem: Error for using matchfuzzy() in Vim9 script returning a list of
dicts.
Solution: Make return type of matchfuzzy() list<any>. (Yegappan Lakshmanan,
closes #12574)
patch 9.0.1658: autoload files for "zig" are not installed
Problem: Autoload files for "zig" are not installed.
Solution: Add install and uninstall rules in the makefile. (Christian
Brabandt, closes #12577, closes #12567)
Bram Moolenaar [Fri, 23 Jun 2023 23:56:50 +0000 (00:56 +0100)]
patch 9.0.1656: syntax test fails when detected shell type differs
Problem: Syntax test fails when detected shell type differs.
Solution: Avoid using "/bin/sh", it depends on the system. Add a check that
the shell type detection is correct.
Bram Moolenaar [Thu, 22 Jun 2023 20:57:51 +0000 (21:57 +0100)]
patch 9.0.1647: insufficient testing for syntax plugins
Problem: Insufficient testing for syntax plugins.
Solution: Add shell file examples. (Charles Campbell) Create a messages
file for easier debugging and reporting the test results.
patch 9.0.1637: compiler warning for uninitialized variable
Problem: Compiler warning for uninitialized variable.
Solution: Move the variable to an inner block and initialize it. (Christian
Brabandt, closes #12549)
Ben Jackson [Wed, 14 Jun 2023 14:10:02 +0000 (15:10 +0100)]
patch 9.0.1630: "make clean" at the toplevel fails
Problem: "make clean" at the toplevel fails.
Solution: Clean the indent and syntax directories in a sub-shell. (Ben
Jackson, closes #12536, closes #12526)
Bram Moolenaar [Sat, 10 Jun 2023 18:40:30 +0000 (19:40 +0100)]
patch 9.0.1626: Visual area not shown when using 'showbreak'
Problem: Visual area not shown when using 'showbreak' and start of line is
not visible. (Jaehwang Jung)
Solution: Adjust "fromcol" for the space taken by 'showbreak'.
(closes #12514)
Bram Moolenaar [Thu, 8 Jun 2023 21:16:23 +0000 (22:16 +0100)]
patch 9.0.1621: FILETYPE_FILE is defined to the same value multiple times
Problem: FILETYPE_FILE is defined to the same value multiple times. Same
for a few similar macros.
Solution: Define FILETYPE_FILE and others in feature.h only
Bram Moolenaar [Thu, 8 Jun 2023 17:44:01 +0000 (18:44 +0100)]
patch 9.0.1619: the focus gained/lost escape sequences cause trouble
Problem: The focus gained/lost escape sequences cause trouble for a
terminal where Vim does not expect them.
Solution: Always recognize the codes for focus gained/lost. (closes #12499)
patch 9.0.1617: charidx() result is not consistent with byteidx()
Problem: charidx() and utf16idx() result is not consistent with byteidx().
Solution: When the index is equal to the length of the text return the
lenght of the text instead of -1. (Yegappan Lakshmanan,
closes #12503)
zeertzjq [Mon, 5 Jun 2023 17:41:35 +0000 (18:41 +0100)]
patch 9.0.1610: display is wrong when 'smoothscroll' is set
Problem: Display is wrong when 'smoothscroll' is set and scrolling multiple
lines.
Solution: Redraw with UPD_NOT_VALID when "skipcol" is or was set.
(closes #12490, closes #12468)
zeertzjq [Sun, 4 Jun 2023 18:29:22 +0000 (19:29 +0100)]
patch 9.0.1607: screenpos() returns wrong row with diff filler lines
Problem: screenpos() returns wrong row with diff filler lines.
Solution: Only add filler lines when appropriate. Also don't add the
'smoothscroll' marker when w_skipcol is zero. (closes #12485,
closes #12484)
Ernie Rael [Sun, 4 Jun 2023 17:11:35 +0000 (18:11 +0100)]
patch 9.0.1605: crash when calling method on super in child constructor
Problem: Crash when calling method on super in child constructor. (Israel
Chauca Fuentes)
Solution: Clear the type list. (Ernie Rael, closes #12489, closes #12471)
Bram Moolenaar [Sun, 4 Jun 2023 15:55:27 +0000 (16:55 +0100)]
patch 9.0.1604: errors from the codestyle test are a bit confusing
Problem: Errors from the codestyle test are a bit confusing.
Solution: Use assert_report() with a clearer message. Avoid a warning for
an existing swap file.
zeertzjq [Sat, 3 Jun 2023 18:45:06 +0000 (19:45 +0100)]
patch 9.0.1602: stray character visible if marker on top of double-wide char
Problem: Stray character is visible if 'smoothscroll' marker is displayed
on top of a double-wide character.
Solution: When overwriting a double-width character with the 'smoothscroll'
marker clear the second half. (closes #12469)
zeertzjq [Sat, 3 Jun 2023 16:56:30 +0000 (17:56 +0100)]
patch 9.0.1601: filetype detection fails for *.conf file without comments
Problem: Filetype detection fails for *.conf file without comments.
(Dmitrii Tcyganok)
Solution: Use "conf" filetype as a fallback for an empty .conf file.
(closes #12487, closes #12483)
Luuk van Baal [Fri, 2 Jun 2023 13:16:35 +0000 (14:16 +0100)]
patch 9.0.1599: Cursor not adjusted when 'splitkeep' is not "cursor"
Problem: Cursor not adjusted when near top or bottom of window and
'splitkeep' is not "cursor".
Solution: Move boundary checks to outer cursor move functions, inner
functions should only return valid cursor positions. (Luuk van
Baal, closes #12480)
zeertzjq [Thu, 1 Jun 2023 19:26:55 +0000 (20:26 +0100)]
patch 9.0.1598: screenchar() and others are wrong with DBCS 'encoding'
Problem: screenchar(), screenchars() and screenstring() do not work
properly when 'encoding' is set to a double-byte encoding.
Solution: Fix the way the bytes of the characters are obtained.
(issue #12469)
Omar El Halabi [Mon, 29 May 2023 18:59:45 +0000 (19:59 +0100)]
patch 9.0.1591: some "gomod" files are not recognized
Problem: Some "gomod" files are not recognized.
Solution: Check for "go.mod" file name before checking out the contents.
(Omar El Halabi, closes #12462)
K.Takata [Mon, 29 May 2023 15:08:08 +0000 (16:08 +0100)]
patch 9.0.1588: Incsearch not triggered when pasting clipboard register
Problem: Incsearch not triggered when pasting clipboard register on the
command line.
Solution: Also set "literally" when using a clipboard register. (Ken Takata,
closes #12460)
Bram Moolenaar [Sun, 28 May 2023 17:39:55 +0000 (18:39 +0100)]
patch 9.0.1586: error for using two messages with ngettext() differing in "%"
Problem: Checking translations gives an error for using two messages with
ngettext() that differ in "%" items.
Solution: Adjust the check script to tolerate omitting one "%" item.
Luuk van Baal [Sat, 27 May 2023 21:22:10 +0000 (22:22 +0100)]
patch 9.0.1585: weird use of static variables for spell checking
Problem: Weird use of static variables for spell checking.
Solution: Move the variables to a structure and pass them from win_update()
to win_line(). (Luuk van Baal, closes #12448)
Bram Moolenaar [Sat, 27 May 2023 17:02:55 +0000 (18:02 +0100)]
patch 9.0.1583: get E304 when using 'cryptmethod' "xchacha20v2"
Problem: Get E304 when using 'cryptmethod' "xchacha20v2". (Steve Mynott)
Solution: Add 4th crypt method to block zero ID check. Avoid syncing a swap
file before reading the file. (closes #12433)
zeertzjq [Sat, 27 May 2023 13:10:08 +0000 (14:10 +0100)]
patch 9.0.1582: :stopinsert may not work in a popup close handler
Problem: :stopinsert may not work in a popup close handler. (Ben Jackson)
Solution: Restore stop_insert_mode when appropriate. (closes #12452,
closes #12434)