}
};
-} // end of anon
+} // namespace
GuiCommandBuffer::GuiCommandBuffer(GuiView * view)
top->setMargin(0);
setFocusProxy(edit_);
- LastCommandsSection::LastCommands last_commands
+ LastCommandsSection::LastCommands last_commands
= theSession().lastCommands().getcommands();
- LastCommandsSection::LastCommands::const_iterator it
+ LastCommandsSection::LastCommands::const_iterator it
= last_commands.begin();
- LastCommandsSection::LastCommands::const_iterator end
+ LastCommandsSection::LastCommands::const_iterator end
= last_commands.end();
upPB->setEnabled(it != end);
&& history_pos_ != history_.end() - 1);
upPB->setEnabled(history_pos_ != history_.begin());
}
-
+
void GuiCommandBuffer::hideParent()
{
bool operator()(string const & s) const { return prefixIs(s, p); }
};
-} // end of anon namespace
+} // namespace
string const GuiCommandBuffer::historyUp()
}
-docstring const GuiCommandBuffer::getCurrentState() const
-{
- return view_->currentBufferView()->cursor().currentState();
-}
-
-
vector<string> const
GuiCommandBuffer::completions(string const & prefix, string & new_prefix)
{