Commit f395f43
committed
Flip operands
This avoids accessing the b:python_modified value, which under some
circumstances cannot be set, which results in the following error:
Error detected while processing function pymode#buffer_post_write:
line 2:
E121: Undefined variable: b:pymode_modified
E15: Invalid expression: b:pymode_modified && g:pymode_rope_regenerate_on_write
Note that this does not address the core issue with why pymode_modified
if unset in the first place, but this avoids that being a problem if
g:python_rope_regenerate_on_write is not wanted anyway.1 parent 294894a commit f395f43
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| |||
0 commit comments