Build part of the request containing the contents and filetypes of all dirty buffers as well as the buffer |included_buffer| with its filepath |included_filepath|.
( included_buffer, included_filepath )
| 127 | |
| 128 | |
| 129 | def GetUnsavedAndSpecifiedBufferData( included_buffer, included_filepath ): |
| 130 | """Build part of the request containing the contents and filetypes of all |
| 131 | dirty buffers as well as the buffer |included_buffer| with its filepath |
| 132 | |included_filepath|.""" |
| 133 | buffers_data = { included_filepath: GetBufferData( included_buffer ) } |
| 134 | |
| 135 | for buffer_object in vim.buffers: |
| 136 | if not BufferModified( buffer_object ): |
| 137 | continue |
| 138 | |
| 139 | filepath = GetBufferFilepath( buffer_object ) |
| 140 | if filepath in buffers_data: |
| 141 | continue |
| 142 | |
| 143 | buffers_data[ filepath ] = GetBufferData( buffer_object ) |
| 144 | |
| 145 | return buffers_data |
| 146 | |
| 147 | |
| 148 | def GetBufferNumberForFilename( filename, create_buffer_if_needed = False ): |
nothing calls this directly
no test coverage detected