aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/regexp_bt.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-07-21 17:42:17 +0800
committerGitHub <noreply@github.com>2022-07-21 17:42:17 +0800
commitc15e9d3746ee0aa6a9d80596bffc19e9ac9612bc (patch)
tree63151061bb72c56bed896bb93224687524fec314 /src/nvim/regexp_bt.c
parent6a7d00469bd64e8fe63468b5c1643087432709e9 (diff)
downloadrneovim-c15e9d3746ee0aa6a9d80596bffc19e9ac9612bc.tar.gz
rneovim-c15e9d3746ee0aa6a9d80596bffc19e9ac9612bc.tar.bz2
rneovim-c15e9d3746ee0aa6a9d80596bffc19e9ac9612bc.zip
fix(mark): give correct error message when mark is in another buffer (#19454)
Diffstat (limited to 'src/nvim/regexp_bt.c')
-rw-r--r--src/nvim/regexp_bt.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/nvim/regexp_bt.c b/src/nvim/regexp_bt.c
index 272429bb91..f82006bede 100644
--- a/src/nvim/regexp_bt.c
+++ b/src/nvim/regexp_bt.c
@@ -3705,8 +3705,6 @@ static bool regmatch(char_u *scan, proftime_T *tm, int *timed_out)
int cmp = OPERAND(scan)[1];
pos_T *pos;
size_t col = REG_MULTI ? rex.input - rex.line : 0;
-
- // fm will be NULL if the mark is not set in reg_buf
fmark_T *fm = mark_get(rex.reg_buf, curwin, NULL, kMarkBufLocal, mark);
// Line may have been freed, get it again.