Update status message. Arguments: file_state (string): The git status of the open file. contents (tuble): The result of git_handler.diff(), with the information about the modifications of the file. Scheme: (first, last, [inserted], [mo
(self, file_state, contents)
| 102 | self._busy = False |
| 103 | |
| 104 | def _update_status(self, file_state, contents): |
| 105 | """Update status message. |
| 106 | |
| 107 | Arguments: |
| 108 | file_state (string): The git status of the open file. |
| 109 | contents (tuble): The result of git_handler.diff(), with the |
| 110 | information about the modifications of the file. |
| 111 | Scheme: (first, last, [inserted], [modified], [deleted]) |
| 112 | """ |
| 113 | if self.status_bar.is_enabled(): |
| 114 | _, _, inserted, modified, deleted = contents |
| 115 | self.status_bar.update( |
| 116 | state=file_state, |
| 117 | deleted=len(deleted), |
| 118 | inserted=len(inserted), |
| 119 | modified=len(modified), |
| 120 | ) |
| 121 | |
| 122 | def _contents_to_regions(self, contents): |
| 123 | """Convert the diff contents to gutter regions. |
no test coverage detected