mirror of
https://github.com/fltk/fltk.git
synced 2026-06-01 06:14:28 +08:00
Solves issue #882.
This commit is contained in:
@@ -1129,6 +1129,7 @@ void Fl_Terminal::init_tabstops(int newsize) {
|
|||||||
|
|
||||||
// Reset all tabstops to default 8th char
|
// Reset all tabstops to default 8th char
|
||||||
void Fl_Terminal::default_tabstops(void) {
|
void Fl_Terminal::default_tabstops(void) {
|
||||||
|
init_tabstops(ring_cols()); // issue #882
|
||||||
for (int t=1; t<tabstops_size_; t++) // t=1: skip 0
|
for (int t=1; t<tabstops_size_; t++) // t=1: skip 0
|
||||||
tabstops_[t] = ((t % 8) == 0) ? 1 : 0; // every 8th char is a tabstop
|
tabstops_[t] = ((t % 8) == 0) ? 1 : 0; // every 8th char is a tabstop
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user