Cleanup/fix some code
This commit is contained in:
parent
ac08a1fa75
commit
e74878c299
|
@ -121,7 +121,7 @@ FaceRegistry::FaceRegistry()
|
||||||
{ "StatusCursor", Face{ Color::Black, Color::Cyan } },
|
{ "StatusCursor", Face{ Color::Black, Color::Cyan } },
|
||||||
{ "Prompt", Face{ Color::Yellow, Color::Default } },
|
{ "Prompt", Face{ Color::Yellow, Color::Default } },
|
||||||
{ "MatchingChar", Face{ Color::Default, Color::Default, Attribute::Bold } },
|
{ "MatchingChar", Face{ Color::Default, Color::Default, Attribute::Bold } },
|
||||||
{ "BufferPadding", Face{ Color::Blue, Color::Default, Attribute::Bold } },
|
{ "BufferPadding", Face{ Color::Blue, Color::Default } },
|
||||||
}
|
}
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
#include "keys.hh"
|
#include "keys.hh"
|
||||||
#include "register_manager.hh"
|
#include "register_manager.hh"
|
||||||
#include "utf8_iterator.hh"
|
#include "utf8_iterator.hh"
|
||||||
#include "face_registry.hh"
|
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|
||||||
|
@ -361,7 +360,7 @@ void NCursesUI::draw(const DisplayBuffer& display_buffer,
|
||||||
++line_index;
|
++line_index;
|
||||||
}
|
}
|
||||||
|
|
||||||
set_face(m_window, { Color::Blue, Color::Default }, padding_face);
|
set_face(m_window, padding_face, default_face);
|
||||||
|
|
||||||
const DisplayLine padding_line = m_buffer_padding_str;
|
const DisplayLine padding_line = m_buffer_padding_str;
|
||||||
const DisplayLine* padding_line_ptr = m_buffer_padding_type != BufferPaddingType::None ?
|
const DisplayLine* padding_line_ptr = m_buffer_padding_type != BufferPaddingType::None ?
|
||||||
|
|
Loading…
Reference in New Issue
Block a user