Mercurial > vim
comparison src/arglist.c @ 30325:58fb880f3607 v9.0.0498
patch 9.0.0498: various small issues
Commit: https://github.com/vim/vim/commit/747f110420a0b0f4c2e40e00e8456f1e45b6f0de
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Sep 18 13:06:41 2022 +0100
patch 9.0.0498: various small issues
Problem: Various small issues.
Solution: Various small fixes.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 18 Sep 2022 14:15:06 +0200 |
parents | dd97e797fffb |
children | 101f08b49ed3 |
comparison
equal
deleted
inserted
replaced
30324:0827d3d6d8c0 | 30325:58fb880f3607 |
---|---|
980 // check if the buffer in this window is in the arglist | 980 // check if the buffer in this window is in the arglist |
981 for (i = 0; i < aall->opened_len; ++i) | 981 for (i = 0; i < aall->opened_len; ++i) |
982 { | 982 { |
983 if (i < aall->alist->al_ga.ga_len | 983 if (i < aall->alist->al_ga.ga_len |
984 && (AARGLIST(aall->alist)[i].ae_fnum == buf->b_fnum | 984 && (AARGLIST(aall->alist)[i].ae_fnum == buf->b_fnum |
985 || fullpathcmp(alist_name(&AARGLIST(aall->alist)[i]), | 985 || fullpathcmp(alist_name( |
986 &AARGLIST(aall->alist)[i]), | |
986 buf->b_ffname, TRUE, TRUE) & FPC_SAME)) | 987 buf->b_ffname, TRUE, TRUE) & FPC_SAME)) |
987 { | 988 { |
988 int weight = 1; | 989 int weight = 1; |
989 | 990 |
990 if (old_curtab == curtab) | 991 if (old_curtab == curtab) |
998 { | 999 { |
999 aall->opened[i] = (char_u)weight; | 1000 aall->opened[i] = (char_u)weight; |
1000 if (i == 0) | 1001 if (i == 0) |
1001 { | 1002 { |
1002 if (aall->new_curwin != NULL) | 1003 if (aall->new_curwin != NULL) |
1003 aall->new_curwin->w_arg_idx = aall->opened_len; | 1004 aall->new_curwin->w_arg_idx = |
1005 aall->opened_len; | |
1004 aall->new_curwin = wp; | 1006 aall->new_curwin = wp; |
1005 aall->new_curtab = curtab; | 1007 aall->new_curtab = curtab; |
1006 } | 1008 } |
1007 } | 1009 } |
1008 else if (aall->keep_tabs) | 1010 else if (aall->keep_tabs) |