Browse Source

Finalized fns. For real this time.

stew
Sarah Inzerillo 4 years ago
parent
commit
0c578386e7
  1. 4
      src/Buffer.cpp

4
src/Buffer.cpp

@ -174,7 +174,7 @@ bool Buffer::go(int link)
{
string f_name = v_links_[link-1].first;
v_links_.clear();
add_to_hist_ = 1;
if(!open(f_name))
return false;
@ -192,6 +192,8 @@ bool Buffer::back()
curr_link_itr = curr_link_itr - 1;
v_hist_.erase(curr_link_itr + 1);
if(v_hist_.empty())
return false;
add_to_hist_ = 0;
open(*curr_link_itr);

Loading…
Cancel
Save