Mercurial > vim
comparison src/quickfix.c @ 18498:9e6d5a4abb1c v8.1.2243
patch 8.1.2243: typos in comments
Commit: https://github.com/vim/vim/commit/32aa10203bd0b4b270def03311a4599f9ffdecc4
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Nov 2 22:54:41 2019 +0100
patch 8.1.2243: typos in comments
Problem: Typos in comments.
Solution: Fix the typos. (Dominique Pelle, closes https://github.com/vim/vim/issues/5160) Also adjust
formatting a bit.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 02 Nov 2019 23:00:06 +0100 |
parents | 0ac9e720a56e |
children | fbeb1bf0cea8 |
comparison
equal
deleted
inserted
replaced
18497:14e9f08eec14 | 18498:9e6d5a4abb1c |
---|---|
1859 int i; | 1859 int i; |
1860 qf_list_T *qfl; | 1860 qf_list_T *qfl; |
1861 | 1861 |
1862 // If the current entry is not the last entry, delete entries beyond | 1862 // If the current entry is not the last entry, delete entries beyond |
1863 // the current entry. This makes it possible to browse in a tree-like | 1863 // the current entry. This makes it possible to browse in a tree-like |
1864 // way with ":grep'. | 1864 // way with ":grep". |
1865 while (qi->qf_listcount > qi->qf_curlist + 1) | 1865 while (qi->qf_listcount > qi->qf_curlist + 1) |
1866 qf_free(&qi->qf_lists[--qi->qf_listcount]); | 1866 qf_free(&qi->qf_lists[--qi->qf_listcount]); |
1867 | 1867 |
1868 // When the stack is full, remove to oldest entry | 1868 // When the stack is full, remove to oldest entry |
1869 // Otherwise, add a new entry. | 1869 // Otherwise, add a new entry. |
5222 int linewise, | 5222 int linewise, |
5223 qfline_T *qfp, | 5223 qfline_T *qfp, |
5224 int *errornr) | 5224 int *errornr) |
5225 { | 5225 { |
5226 if (qf_entry_after_pos(qfp, pos, linewise)) | 5226 if (qf_entry_after_pos(qfp, pos, linewise)) |
5227 // First entry is after postion 'pos' | 5227 // First entry is after position 'pos' |
5228 return qfp; | 5228 return qfp; |
5229 | 5229 |
5230 // Find the entry just before or at the position 'pos' | 5230 // Find the entry just before or at the position 'pos' |
5231 while (qfp->qf_next != NULL | 5231 while (qfp->qf_next != NULL |
5232 && qfp->qf_next->qf_fnum == bnr | 5232 && qfp->qf_next->qf_fnum == bnr |