resizeCol adjusts the number of columns (thread-safe)
(n int)
| 260 | |
| 261 | // resizeCol adjusts the number of columns (thread-safe) |
| 262 | func (b *Buffer) resizeCol(n int) { |
| 263 | b.mu.Lock() |
| 264 | defer b.mu.Unlock() |
| 265 | b.resizeColUnsafe(n) |
| 266 | } |
| 267 | |
| 268 | // sortByStr sorts the buffer by column in string mode |
| 269 | // colIndex: column to sort by |