@@ -4,65 +4,6 @@ import (
4
4
"io"
5
5
)
6
6
7
- // QuickfixError represents an item in a quickfix list.
8
- type QuickfixError struct {
9
- // Buffer number
10
- Bufnr int `msgpack:"bufnr,omitempty"`
11
-
12
- // Line number in the file.
13
- LNum int `msgpack:"lnum,omitempty"`
14
-
15
- // Search pattern used to locate the error.
16
- Pattern string `msgpack:"pattern,omitempty"`
17
-
18
- // Column number (first column is 1).
19
- Col int `msgpack:"col,omitempty"`
20
-
21
- // When Vcol is != 0, Col is visual column.
22
- VCol int `msgpack:"vcol,omitempty"`
23
-
24
- // Error number.
25
- Nr int `msgpack:"nr,omitempty"`
26
-
27
- // Description of the error.
28
- Text string `msgpack:"text,omitempty"`
29
-
30
- // Single-character error type, 'E', 'W', etc.
31
- Type string `msgpack:"type,omitempty"`
32
-
33
- // Name of a file; only used when bufnr is not present or it is invalid.
34
- FileName string `msgpack:"filename,omitempty"`
35
-
36
- // Valid is non-zero if this is a recognized error message.
37
- Valid int `msgpack:"valid,omitempty"`
38
-
39
- // Module name of a module. If given it will be used in quickfix error window instead of the filename.
40
- Module string `msgpack:"module,omitempty"`
41
- }
42
-
43
- // CommandCompletionArgs represents the arguments to a custom command line
44
- // completion function.
45
- //
46
- // :help :command-completion-custom
47
- type CommandCompletionArgs struct {
48
- // ArgLead is the leading portion of the argument currently being completed
49
- // on.
50
- ArgLead string `msgpack:",array"`
51
-
52
- // CmdLine is the entire command line.
53
- CmdLine string
54
-
55
- // CursorPosString is decimal representation of the cursor position in
56
- // bytes.
57
- CursorPosString int
58
- }
59
-
60
- // CursorPos returns the cursor position.
61
- func (a * CommandCompletionArgs ) CursorPos () int {
62
- n := a .CursorPosString
63
- return n
64
- }
65
-
66
7
type bufferReader struct {
67
8
v * Nvim
68
9
b Buffer
0 commit comments