Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Always set the TM_SOFT_TABS variable

Backwards compatibility for commands that expect the variable to always exist or match the NO state, this matches the behavior of 1.x.
  • Loading branch information...
commit ac8f88b33eca38eda9c9c6477a72870a3602761d 1 parent d983d5a
@infininight infininight authored sorbits committed
Showing with 1 addition and 2 deletions.
  1. +1 −2  Frameworks/editor/src/editor.cc
View
3  Frameworks/editor/src/editor.cc
@@ -1356,8 +1356,7 @@ namespace ng
else map = variables_for_path(NULL_STR, "", map);
map.insert(std::make_pair("TM_TAB_SIZE", text::format("%zu", _buffer.indent().tab_size())));
- if(_buffer.indent().soft_tabs())
- map.insert(std::make_pair("TM_SOFT_TABS", "YES"));
+ map.insert(std::make_pair("TM_SOFT_TABS", _buffer.indent().soft_tabs() ? "YES" : "NO"));
map.insert(std::make_pair("TM_SELECTION", to_s(_buffer, _selections)));
if(_selections.size() == 1)
Please sign in to comment.
Something went wrong with that request. Please try again.