Use new version check
This commit is contained in:
parent
2626b5e936
commit
1f89a0ef0b
1 changed files with 1 additions and 1 deletions
|
@ -461,7 +461,7 @@ models.service('models', ['$rootScope', '$filter', function($rootScope, $filter)
|
|||
* @return active buffer pointer (WeeChat 1.0+) or fullname (older versions)
|
||||
*/
|
||||
this.getActiveBufferReference = function() {
|
||||
if (this.version !== null && parseInt(this.version.charAt(0)) >= 1) {
|
||||
if (this.version !== null && this.version[0] >= 1) {
|
||||
// pointers are being validated, they're more reliable than
|
||||
// fullName (e.g. if fullName contains spaces)
|
||||
return "0x"+activeBuffer.id;
|
||||
|
|
Loading…
Add table
Reference in a new issue